Hypothesis testing and intervals
Problems
- Multiple comparisons problem
Testing many hypotheses at once inflates the chance of false rejections. The problem is to control an error rate over the whole family while keeping power.
intro - Sample size determination
Find the smallest sample size for which a level-alpha test reaches a target power at a stated effect, or an interval reaches a target width. Closed form for z; numerical for t.
1 languagescore
Algorithms
- Binomial test
Tests H_0 p = p_0 from x successes in n independent trials with the exact Binomial(n, p_0) law. Valid for every n; size at most alpha; O(n) time.
1 languagesintro - Bonferroni correction
Tests each of m hypotheses at level alpha / m. By the union bound the family-wise error rate is at most alpha under any dependence.
1 languagesintro - Chi-squared test of independence
Tests whether two categorical variables are independent by comparing a contingency table with the product of its margins, with (r - 1)(c - 1) degrees of freedom.
1 languagesintro - Pearson's chi-squared goodness-of-fit test
Compares observed category counts with expected counts by the sum of (O - E)^2 / E, which is asymptotically chi-squared under the null.
1 languagesintro - Student t confidence interval
The interval x-bar plus or minus t_(n-1, 1-alpha/2) S/sqrt(n) for a normal mean with unknown variance. Exact coverage 1 - alpha under normal iid data; asymptotic otherwise. O(n).
1 languagesintro - Student's t-test
Tests a normal mean, or two means, by the estimate over its estimated standard error. Exact t null law under normal iid data; the pooled form needs equal variances. O(n).
1 languagesintro - Z-test
Tests a mean or proportion with a statistic that is standard normal under the null. Exact for normal data with known sigma, asymptotic for proportions. O(n) time.
1 languagesintro - Benjamini-Hochberg procedure
Sort the p-values and reject the k smallest, for the largest k with p_(k) <= k q / m. With independent null p-values the FDR is exactly (m_0/m) q, so at most q.
1 languagescore - Clopper-Pearson interval
A confidence interval for a binomial p that inverts two one-sided exact tests. Its endpoints are Beta quantiles, and its coverage is at least 1 - alpha for every p.
1 languagescore - Fisher's exact test
Tests independence in a 2 x 2 table exactly, from the hypergeometric distribution of one cell given the margins. It stays valid for small counts.
1 languagescore - Fisher's method
Combines k independent p-values into minus two times the sum of their logs, which has a chi-squared law with 2k degrees of freedom under the global null.
1 languagescore - Hochberg procedure
A step-up form of Holm: find the largest k with p_(k) <= alpha / (m - k + 1) and reject H_(1) to H_(k). It controls the FWER when the Simes inequality holds, as under independence or MTP2.
1 languagescore - Holm-Bonferroni method
Sort the p-values and reject while the k-th smallest is at most alpha / (m - k + 1). It controls the FWER under any dependence and is uniformly more powerful than Bonferroni.
1 languagescore - Likelihood ratio test
Compares the maximized likelihood under the null with that under the full model, and rejects when twice the log ratio is large. Wilks' theorem gives its null distribution.
1 languagescore - McNemar's test
Tests a change in a paired binary outcome using only the discordant pairs, whose split is binomial with p = 1/2 under the null.
1 languagescore - Score test
Tests a null by the size of the score at the restricted estimate, scaled by the Fisher information. It needs only the fit under the null.
1 languagescore - Shapiro-Wilk test
Tests normality by the squared correlation of the ordered sample with weights built from the means and covariances of normal order statistics. It is a powerful omnibus test.
1 languagescore - Wald test
Tests a parameter by the squared distance of its estimate from the null value, scaled by the estimated variance. It needs only the unrestricted fit.
1 languagescore - Welch's t-test
Compares two normal means without assuming equal variances, using separate variance estimates and Welch-Satterthwaite degrees of freedom. Approximate, not exact. O(m + n).
1 languagescore - Wilson score interval
A confidence interval for a binomial p that inverts the score test by solving a quadratic. Coverage is near 1 - alpha on average but dips below it for some p.
1 languagescore - Benjamini-Yekutieli procedure
Run Benjamini-Hochberg at level q / (1 + 1/2 + ... + 1/m). This controls the FDR at (m_0/m) q under any dependence, at a level about ln m times smaller.
1 languagesadvanced - Storey's q-value method
Estimate the share of true nulls as #{p > lambda} / (m (1 - lambda)) and run BH at q / pi0. The q-value of a test is the smallest estimated FDR at which it is rejected.
1 languagesadvanced - Westfall-Young procedure
Compare each statistic, largest first, with the permutation law of the maximum over the hypotheses not yet rejected. This controls the FWER strongly and gains power from the dependence.
1 languagesadvanced - Knockoff filter
Build copies of the features that keep their correlations but not their link to the response, and select features that beat their copies. Knockoff+ keeps the FDR at most q in finite samples.
1 languagesresearch
Concepts
- Statistical hypothesis test
A rule that decides from data whether to reject a null hypothesis in favour of an alternative, with a bound alpha on the chance of rejecting a true null.
intro
Definitions
- Confidence interval
A random interval computed from the data that contains the true parameter with a stated probability, such as 95 percent, over repeated samples.
intro - Effect size
A scale-free measure of how large an effect is, such as a mean difference divided by a standard deviation. Unlike a p-value it does not grow with n.
intro - P-value
The probability, under the null hypothesis, of a test statistic at least as extreme as the one observed. Rejecting when it is at most alpha gives a level-alpha test.
intro - Statistical power
The probability that a test rejects the null hypothesis when a given alternative is true. It grows with the sample size and the effect size.
intro - Type I and type II errors
A type I error rejects a true null hypothesis and a type II error keeps a false one. The size of a test bounds the first; its power is one minus the second.
intro - False discovery rate
The expected proportion of false rejections among all rejections, taken as zero when there are none. It is less strict and more powerful to control than the FWER.
core - Family-wise error rate
The probability of at least one false rejection among a family of tests. Strong control bounds it under every configuration of true and false nulls.
core - Pivotal quantity
A function of the data and the parameter whose distribution does not depend on the parameter. Inverting its quantiles gives an exact confidence interval.
core - Prediction interval
An interval that contains a future observation, not a parameter, with a stated probability. It is wider than the confidence interval for the mean.
core - Uniformly most powerful test
A level-alpha test whose power is at least that of every other level-alpha test at every parameter value in the alternative. It exists for one-sided problems with a monotone likelihood ratio.
core - Local false discovery rate
Efron's posterior probability that a hypothesis is null given its z-value, from a two-group mixture of null and non-null densities estimated from all the tests.
advanced - E-variable
A nonnegative statistic with expected value at most one under the null. By Markov's inequality, rejecting when it exceeds 1 / alpha gives a level-alpha test that survives optional continuation.
research
Theorems
- Duality of tests and confidence sets
The parameter values that a level-alpha test does not reject form a confidence set of level 1 - alpha, and every confidence set defines a test this way.
core - Neyman-Pearson lemma
For a simple null against a simple alternative, the test that rejects when the likelihood ratio exceeds a threshold is the most powerful test of its size.
core - Wilks' theorem
Under regularity and a true null, twice the log likelihood ratio tends to a chi-squared law with degrees of freedom equal to the number of constrained parameters.
core - Closed testing principle
Reject an elementary hypothesis when every intersection hypothesis that contains it is rejected by a level-alpha test. This controls the FWER strongly, and Holm is a case.
advanced - Fieller's theorem
Gives an exact confidence set for the ratio of two normal means by inverting a t-test. The set can be an interval, the union of two rays, or the whole line.
advanced - Karlin-Rubin theorem
If a one-parameter family has a monotone likelihood ratio in a statistic T, then the test that rejects for large T is uniformly most powerful for a one-sided hypothesis.
advanced