ENH: power and sample size if null distribution is also noncentral
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
Start by reading the current power classes and the discussion in pull request #6526, especially the linked comment. Map how null and alternative distributions are currently represented, then define the expected behavior for cases with noncentral distributions under both hypotheses and verify it against the power and sample-size use cases described here.
Written by the indexing model from the issue text.
Description
see
https://github.com/statsmodels/statsmodels/pull/6526#issuecomment-628328101
This is not really clear to me, but I guess that there is a general pattern that we will eventually need.
In the effect size and meta-analysis literature there are many cases where non-central distributions are important, e.g. standardized mean difference has a non-central t distribution, but meta-analysis works mostly with a normal approximation.
We get a noncentral t distribution if we don't remove the mean of the normal numerator, i.e.
A normally distributed random variable with unit variance and non-zero mean divided by a Chi-squared distributed random variable is noncentral t-distributed, where the noncentrality parameter is equal to the mean of the normal random variable.
https://en.wikipedia.org/wiki/Noncentral_t-distribution#Characterization
power computation would have noncentral distribution both under the null and under the alternative.
In equivalence testing for anova, we have noncentral F under the null and central F under the alternative (defined as all means equal).
The current power classes assume we have central distributions under the null and noncentral under the alternative, except for normal distribution case where both are the same.
- Dominant language
- Python
- Stars
- 11.6k
- Forks
- 3.6k
- Avg merge
- 7h 37m
- Merged PRs (30d)
- 96
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from statsmodels/statsmodels
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
statsmodels/statsmodels#10271 ·
-
type-bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
statsmodels/statsmodels#10269 ·
-
Documentation
Difficulty 2/5 1-3 hours Newbie friendliness 92/100
statsmodels/statsmodels#10266 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
statsmodels/statsmodels#9627 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
statsmodels/statsmodels#9293 · 1 comment ·
All issues in statsmodels/statsmodels
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
bancolombia/sentinel#23 ·
-
test md OpenCI
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
bug client
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100