Statistical hypothesis testing compares data against a null hypothesis using a controlled rejection probability.
For independent effect estimates with standard error , and with standard error , one two-sided Wald test is significant at five percent and the other is not. But their difference is with standard error , giving a negligible test statistic. Hence different significance labels do not establish an interaction or between-study heterogeneity; compare the effects directly.
Generate independent replicated datasets under a fully specified null hypothesis and calculate the same predictive discrepancy statistic for them and the observation. Their null exchangeability gives a finite-simulation rank test. The displayed add-one tail probability is valid with conservative treatment of ties, and avoids reporting zero solely because no replicate exceeds the observation.
A measurable summary of a possible dataset is chosen to detect disagreement with a specified predictive model. Compare its observed value with its distribution under replicated datasets. Large-discrepancy statistics can be checked with . A posterior predictive check integrates over posterior parameter uncertainty; a fully specified null instead supplies a fixed reference law.
A scan statistic searches a family of candidate locations or subsets and reports the largest local statistic. Under a null hypothesis, a union bound converts a tail estimate for each candidate into a bound for the maximum; no independence between local statistics is required. Structured alternatives often permit a chi-squared testing lower bound using the overlap geometry of two candidates.
For independent uniformly placed cyclic intervals of length , an overlap is possible at at most starting-point offsets, or at all offsets if that number exceeds . Thus the overlap probability is at most . If , then and for . The overlap law is not the hypergeometric distribution for unrestricted random subsets.
A quadratic scan statistic maximizes a directional empirical second moment over candidate unit vectors. For a Gaussian random vector sample with a rank-one covariance spike in one of those directions, the matching statistic has its scale multiplied by the spike's eigenvalue. A chi-squared concentration inequality controls each direction.
A least-favourable configuration maximizes a test procedure’s Type I error probability over allowed null hypothesis parameters. For one-sided normal comparisons with a fixed covariance matrix, coupling by common centered variables shows monotonicity in the means. For the familywise error rate, mixed true and false null configurations must also be checked.
The Pearson chi-squared test of homogeneity tests whether several independent categorical samples have the same category probabilities. Under the null, expected cell counts equal the product of the corresponding row and column totals divided by the total sample size. The Pearson chi-squared statistic for contingency tables has an asymptotic chi-squared distribution with degrees of freedom, when expected counts are sufficiently large. The sampling design differs from a Pearson chi-squared test of independence, though the statistic has the same form.
For observed counts and positive expected counts in a contingency table, the statistic is . Under common category probabilities or statistical independence, estimate by the product of the row and column totals divided by the grand total. With large expected counts, this gives the test statistic for the Pearson chi-squared test of homogeneity or the Pearson chi-squared test of independence, with asymptotic chi-squared distribution on degrees of freedom.
A statistical test is a measurable rule for deciding whether to reject a null hypothesis. Allowing randomisation, it is represented by a function giving the conditional rejection probability after observing . A deterministic test takes only values zero and one. Under a simple null, is its size of a statistical test; under an alternative, is its statistical power. Randomisation on a likelihood ratio equality set allows a Neyman-Pearson lemma threshold test to attain a prescribed size even for discrete data.
At level , a most powerful test against a specified simple alternative maximises statistical power among statistical tests whose size of a statistical test is at most . The Neyman-Pearson lemma constructs it by a likelihood ratio threshold. A uniformly most powerful test is most powerful simultaneously against every member of the specified alternative family; maximising power at one alternative alone need not give uniform optimality.
A test statistic is a measurable function of the sample whose observed value is compared with a null distribution or resampling distribution to decide whether to reject a hypothesis.
Student's t-test divides a normally distributed estimated effect by its estimated standard error. Under its null hypothesis the statistic has a Student's t-distribution, with degrees of freedom determined by the variance estimate.
In a fixed full-rank normal linear model, the studentized estimator of one coefficient has a noncentral t-distribution with noncentrality equal to that coefficient divided by its standard deviation. The fitted and residual orthogonal projections of the Gaussian noise are independent. Therefore the statistical power of its exact Student's t-test does not depend on the other regression coefficients, with design and variance fixed.
A fixed alternative keeps a non-null data-generating distribution unchanged as sample size grows. A consistent test rejects with probability tending to one under every fixed alternative in its stated class.
A local alternative approaches the null as sample size grows, commonly at distance . It reveals the nontrivial limiting power of a test near the null.
A randomization test compares a statistic with values obtained by applying transformations that preserve the joint distribution under the null hypothesis.
A conditional randomization test resamples a tested variable from its known or estimated conditional distribution given covariates. Under conditional independence from the outcome, the observed and resampled test statistics are exchangeable conditional on those covariates and outcomes.
A permutation test uses relabelings of observations as its null-preserving transformations and computes a p-value from the resulting orbit of the test statistic.
A sign-flip randomization test independently multiplies observations by signs in . It is finite-sample exact for a zero-centered null when the joint distribution is invariant under those sign changes.
The null hypothesis is the set of parameter values or probability distributions against which a statistical test controls its probability of rejection.
A simple hypothesis specifies one probability distribution completely. A composite hypothesis permits more than one distribution or parameter value.
The size of a test is the supremum, over distributions in its null hypothesis, of its rejection probability. For a simple null it is just the null rejection probability; a level- test has size at most .
The significance level is the chosen upper bound on a test's probability of rejecting the null hypothesis when it is true.
A p-value is the probability, computed under a null hypothesis, of obtaining a test statistic at least as unfavorable to that hypothesis as the observed value.
A random variable is super-uniform when for every . A valid p-value is super-uniform under its null hypothesis.
Fisher's exact test conditions on the margins of a two-by-two contingency table and compares one cell count with its hypergeometric null distribution.
For two independent binomial counts, form the Fisher exact test rejection region from their conditional null hypergeometric distribution. Summing alternative joint binomial probabilities over that region gives its exact power. For equal group sizes, the null allocation is symmetric, so the two-sided probability-ordering test agrees with doubled lower-tail probabilities. Conservative test discreteness can make a normal-approximation sample size underpowered even when both samples are large but event counts are low.
A maximin test maximizes the smallest power over a composite alternative subject to controlling the largest rejection probability over a composite null.
Multiple hypothesis testing applies tests to a family of null hypotheses while controlling an aggregate error criterion.
For a nonempty finite index set , this hypothesis asserts that every member is true simultaneously. A valid local test must have its stated size under every parameter satisfying the entire intersection. The Bonferroni correction within always supplies such a test from valid elementary p-values.
The closure is the collection of all nonempty intersection hypotheses from the original elementary family, including singletons. It is not a topological closure. The closed testing procedure requires local level- tests for these intersections and rejects an elementary hypothesis only when all intersections containing it reject.
Order p-values and reject the first hypotheses, where , with for an empty set. Under independent valid true-null p-values, this step-up procedure controls the familywise error rate. One proof embeds its rejections in the closed testing procedure with Simes tests: every intersection containing a rejected hypothesis passes its local Simes test, so closed-testing control of the familywise error rate applies.
For independent valid null p-values, the displayed inequality follows by applying the Benjamini-Hochberg procedure with all nulls true. Its false discovery rate then equals the probability of at least one rejection. Valid means for ; independence is a sufficient hypothesis, and arbitrary dependence is not covered by this proof.
For the intersection of null hypotheses, reject when . The Simes inequality establishes a level- test under independence of valid true-null p-values. The displayed quantity is its combined p-value.
Given valid p-values for constancy on intervals of length at least two, reject when . Every rejected true interval forces rejection of its maximal constant block. A union bound over the non-singleton maximal blocks gives familywise error rate at most , since their lengths sum to at most . Singleton blocks have no tested interval in this formulation.
For a null hypothesis that is a union , an intersection-union test rejects only when every component is rejected. If each component test has level , then under any point of at least one component null is true, so the combined test also has level at most .
The Bonferroni correction tests each of hypotheses at level . The union bound then controls the familywise error rate by under arbitrary dependence.
For positive deterministic weights , the weighted Bonferroni correction rejects when
The union bound over the true nulls controls the familywise error rate without an independence assumption.
Order increasingly. At rank , reject the corresponding hypothesis when
and otherwise stop. The first ordered true null reduces FWER control to a weighted union bound; the shrinking denominator makes this procedure at least as powerful as the Weighted Bonferroni correction.
The Holm–Bonferroni method orders p-values and compares the th smallest with , stopping at the first failed comparison. It controls the familywise error rate under arbitrary dependence.
If the Holm step-down procedure makes a false rejection, it must reject the first true null in the ordered list. All true nulls remain at that step, so its cutoff is at most . The union bound on their marginally valid p-values gives familywise error rate at most . This proves strong control under arbitrary dependence, and super-uniformity suffices.
Order p-values as and take the largest with . The Benjamini-Hochberg procedure rejects the hypotheses corresponding to and controls the false discovery rate under independence and several forms of positive dependence.
Let be the number of rejections by the Benjamini-Hochberg procedure at level , and let be the rejection count after replacing by zero. Then and
If was rejected, lowering its p-value does not change any ordered p-value beyond rank , so . Conversely, if , the other rejected values together with satisfy the original threshold; monotonicity gives . For a valid true-null p-value independent of the others, conditioning on bounds the expectation of the right side by . Summing over true nulls proves false discovery rate at most .
For the Benjamini-Hochberg procedure, replace a true-null p-value by zero and call the new rejection count . The Benjamini-Hochberg leave-one-out identity identifies rejection with with the event and . If is uniform and independent of all the other p-values, each possible rejection count contributes to its expected false-discovery fraction. Summation gives per true null and the displayed exact false discovery rate. Super-uniform independent nulls yield the corresponding upper bound.
The false discovery rate is , where is the number of rejected true null hypotheses and is the total number of rejections.
The familywise error rate is the probability of making at least one false rejection in a family of hypothesis tests.
For nonempty index sets forming a laminar family of sets, reject an intersection hypothesis when the displayed adjusted value is at most . The inclusion-maximal true sets are disjoint and have total size at most . Any false rejection forces some maximal true to have . Validity and the union bound control the familywise error rate by , without independence or a complete closure.
Choose a level- local test for every nonempty intersection . The closed testing procedure rejects an elementary hypothesis exactly when every intersection hypothesis containing it is rejected by its local test.
If any true elementary hypothesis is rejected by a closed testing procedure, then the intersection of all true null hypotheses must also be rejected. Its local test has level , so the familywise error rate is at most under arbitrary dependence.
A joint hypothesis test imposes several parameter restrictions simultaneously and accounts for dependence among their estimators; separate one-parameter confidence intervals do not generally determine its result.
For a test with rejection region , its power function is
Its supremum over the null parameter space is the size of the test.
A level- test is uniformly most powerful when its power is at least that of every other level- test at every parameter value in the alternative.
If two tests have the same size and each has strictly greater power than the other at some alternative, neither test is uniformly most powerful.
For observed cell counts and null expected counts , the statistic is
With specified null cell probabilities and sufficiently large expected counts, its null limit is .
For an by contingency table, the statistic
has asymptotically a chi-squared distribution with degrees of freedom under independence.
For observed counts and fitted counts under independence, the likelihood-ratio statistic is
Under independence and standard large-sample regularity conditions, converges in distribution to .
Combining levels of a categorical variable changes both the null hypothesis and the degrees of freedom of an independence test. Association that is coherent across the combined levels may become easier to detect because the grouped table has fewer degrees of freedom, while associations that cancel within groups may disappear. Conclusions from the original and aggregated tables therefore need not agree.
For a two-way contingency table whose row and column variables are ordinal categorical variables, assign row scores and column scores . The linear-by-linear association statistic measures the weighted covariance
After normalization, its square is asymptotically under independence. A signed, one-sided version tests a specified direction of ordinal association and can have greater statistical power than an omnibus independence test against a monotone alternative.
For an approximately normal estimator, the one-parameter Wald statistic
is approximately standard normal under . A two-sided test reports .
For an independent normal sample with known standard deviation , the signed Wald statistic for testing mean zero is . It has the standard normal distribution under the null hypothesis and distribution under mean . Its square has a chi-squared distribution; retaining the sign permits a one-sided test.
Independent normal arm means with variances give treatment-contrast Wald test statistics whose correlation coefficient is . The common control mean creates positive dependence between comparisons.
For a regular -parameter model, the Wald statistic for a candidate is
Under the true parameter it converges in distribution to .
For a full-row-rank matrix and the null hypothesis , put
Under the null, asymptotic normality and Slutsky theorem give .
In a regular scalar model under the null, Taylor expansion about the MLE gives
A uniform law of large numbers for the observed information makes
and the Fisher information used in the Wald statistic converge to the same positive limit. Their ratio therefore converges in probability to one.
For under , the two-sided level- test rejects when , and the observed p-value is
A likelihood-ratio test rejects where the alternative likelihood is sufficiently large relative to the null likelihood.
For a scalar parameter restricted to , test against with identifiable interior nuisance parameters. A locally quadratic regular likelihood has an efficient null score , and the constrained fit projects the unconstrained local maximizer onto the nonnegative half-line. Consequently
For a positive statistic, its asymptotic upper-tail p-value is half the ordinary one-degree chi-squared tail. Its 5% critical value is the 90th chi-squared percentile, approximately 2.7055. Additional boundary nuisance parameters or nonidentified mixture parameters can change this law.
Testing a single nonnegative random-effect variance against zero puts the null on the boundary of the parameter space. In the usual regular increasing-independent-groups limit, the likelihood-ratio test statistic has limit , rather than . A finite-sample simulation calibrated for the actual design avoids relying on this asymptotic approximation.
With fixed , compare and by maximizing the ordinary likelihood function in both models. Their likelihood-ratio test statistic is unchanged by , , because both maximized log-likelihoods change by the same . Its null law can therefore be simulated using independent responses. Comparing the observed statistic with simulated statistics by gives a conservative finite-sample Monte Carlo p-value, subject to correctly maximizing both likelihoods.
For two parameter values and , the likelihood ratio is .
For nested null and alternative parameter spaces, the likelihood-ratio test statistic is
Under the regularity conditions of Wilks theorem, its null limit is a chi-squared distribution whose degrees of freedom equal the difference in model dimensions.
A generalized likelihood-ratio test compares the likelihood maximized under the null with the likelihood maximized over the full parameter space.
Two equally numerous groups of independent counts with Poisson distributions have areas and . Under common density their group means are in ratio . With group sums and , the maximized alternative-to-null likelihood ratio is
Use zero-count limits and when . The regular Wilks theorem calibration has one degree of freedom. Exactly conditioning on gives under the null; this supports small-count testing without the large-sample approximation.
The deviance of a fitted generalized linear model is
For regular nested models, the deviance reduction is asymptotically chi-squared with degrees of freedom equal to the difference in fitted dimensions.
The unscaled residual deviance of an exponential dispersion family compares its fitted mean with the saturated statistical model at a common dispersion parameter. Its normalization removes the factor in the log-likelihood. In Poisson regression and binomial regression, , so it is twice the saturated-minus-fitted log-likelihood. Under suitable regularity, has approximately a chi-squared distribution with the residual degrees of freedom; this is not an automatic accurate approximation for sparse responses. Nested deviance reductions with estimated dispersion lead to approximate F-tests after scaling by the dispersion estimate.
For independent unit-variance samples, testing equal means uses and rejects for large .
Likelihood-ratio tests of different null subspaces can have crossing rejection regions; comparing their quadratic-form geometry exhibits observations accepted by one and rejected by another.
The score test evaluates the likelihood gradient at the restricted estimator and scales its quadratic form by inverse Fisher information.
A restricted maximum-likelihood estimator maximizes likelihood over the null parameter space rather than the full model.
Under a regular simple -parameter null, the normalized score converges to , so its information-standardized squared norm converges to .
If , then .
For independent observations, has the distribution.
If , then converges in distribution to .
For testing one simple hypothesis against another, a test that rejects for sufficiently large likelihood ratio has greatest power among all tests of no greater size.
For independent samples from an exponential distribution, a test of rate at most against rate greater than rejects for small sample sums. All simple-alternative likelihood ratios against decrease with that sum; its gamma distribution calibrates the size at . Monotonicity of the rejection probability in the rate proves that this is a uniformly most powerful test for the composite hypotheses.
A one-parameter family has a monotone likelihood ratio in a statistic when is nondecreasing in whenever .
For a family with a monotone likelihood ratio in , a level- upper-tail test in is a uniformly most powerful test for the corresponding one-sided hypothesis.
For one observation from the logistic distribution, the size- test of against rejects when

Articles by others on the same topic (1)

Statistical hypothesis testing is a method used in statistics to assess the evidence provided by data against a specific claim or hypothesis about a population parameter. The primary goal of hypothesis testing is to determine whether there is enough statistical evidence in a sample of data to support a particular hypothesis about the population from which the sample is drawn.