Alternative hypothesis Created 2026-10-14 Updated 2026-11-05
The alternative hypothesis specifies the parameter values or distributions against which a null hypothesis is tested. If the null is , the alternative is with . For example an upper one-sided comparison uses , while a two-sided comparison uses . The alternative determines the relevant rejection tail. A p-value is computed under the null; it is not the probability that the alternative is false.
Egon Pearson 2026-11-05
Egon Pearson developed the theory of statistical hypothesis testing with Jerzy Neyman. Their framework distinguishes controlling type I error under a null hypothesis from maximizing statistical power against a specified alternative hypothesis. University College London's institutional history identifies this collaboration as a central contribution.[ref]
The Neyman-Pearson lemma makes the tradeoff precise for two simple hypotheses with densities and . At a fixed allowed type I error, the most powerful test rejects where the likelihood ratio is largest, with boundary randomization if needed. To see the principle, compare its test function with another admissible : the product is nonpositive pointwise. Integrating and using the size constraint shows that cannot have greater statistical power.
Equivalence test 2026-10-25
An equivalence test asks whether an effect lies strictly inside a prespecified negligible-effect range, such as for . Its null hypothesis is that the effect lies outside that range, including its boundary; its alternative hypothesis is . This differs from a test with a zero-effect null hypothesis: failing to reject zero does not establish that the effect is sufficiently small.
One construction performs two level- one-sided tests, rejecting and rejecting , and declares equivalence only if both reject. If the equivalence null hypothesis is true, at least one component null is true. The probability of rejecting both cannot exceed the probability of rejecting that true component, which is at most . Thus the combined procedure controls Type I error at level . In a continuous symmetric t-based location model with a common standard error, this is equivalent to putting the central confidence interval wholly inside . At that is a 90% interval, not the 95% interval used for the usual two-sided zero-effect test. The margin must be chosen for substantive reasons rather than selected afterward to accommodate an observed interval.
Noncentral t-distribution Created 2026-10-05 Updated 2026-11-05
If and are independent, then has the noncentral t-distribution with statistical degrees of freedom and noncentrality . It describes the test statistic of a Student's t-test under a shifted alternative hypothesis. At it reduces to the Student's t-distribution. This is different from adding a constant to a central Student t-distribution: here the shift is inside the random denominator. For a normal distribution sample tested against null hypothesis , the noncentrality is .
For the same normal distribution model, a two-sided test compares the null hypothesis with the alternative hypothesis . Under the null hypothesis, the standardized test statistic has standard normal distribution. Write for the standard normal distribution function. With , , and , the observed test statistic is . Its p-value is
Thus the p-value is a tail probability computed under the null hypothesis, including departures in both directions. It is not , the posterior probability of the null hypothesis, nor the probability that the observations arose "by chance". The normal distribution test statistic and its calibration appear in NIST's teaching reference for testing a process mean; the tail interpretation is stated in Penn State's hypothesis-testing notes.
Choose the significance level before observing the sample. The rejection region is , whose probability under is exactly 0.05. Here , so reject . This agrees with zero lying outside . More generally, a proposed belongs to the unrounded 95% confidence interval precisely when its two-sided test does not reject under this strict cutoff. The equality boundary has probability zero in this continuous statistical model.
Figure 1.
The chosen 5% rejection tails and the observed two-sided p-value
. Details.
The significance level and statistical power describe different repeated-experiment probabilities. At a specified alternative , put and . Then
The first is the Type I error probability; the second is the Type II error probability at that alternative. For a planning alternative , keeping , and gives , and statistical power . At , and statistical power rises to . These are model calculations for specified alternatives, not posterior probabilities inferred from a nonsignificant result. They explain why failure to reject cannot establish equality and why choosing sample size before an experiment is useful.
Historically, Ronald Fisher's 1925 book discusses the normal cutoff and tail probability 0.05 as a convenient convention on page 47, rather than a mathematically compulsory threshold: [ref].
Conditional on the printed two-group test output, the male-coded group has higher mean efficacy by about 1.034 scale points, with a 95% confidence interval of about 0.785 to 1.282 points. This is strong evidence against equal population means under the test's assumptions. It does not establish a causal effect, and the accompanying overall mean is inconsistent with the group summaries.
Here the coding identifies group 0 as male and group 1 as female in this dataset. The counts are 1215 and 1251, respectively, or approximately 49.27% and 50.73% of 2466 observations. These are sample compositions, not evidence that the sample represents every population of interest. The continuous efficacy scale runs from 0 to 16, with higher scores indicating stronger efficacy. Its printed sample median is 10 and its quartiles are 8 and 12, so its interquartile range is 4 points. The printed overall sample mean, 9.348, requires the separate consistency qualification below.
Let and denote the two population means. The null hypothesis is , and the alternative hypothesis is the two-sided test . The two sample means give
The positive sign means higher mean efficacy in group 0, given this coding; it does not say that every member of that group has higher efficacy than every member of group 1.
Welch's t-test estimates uncertainty from the two groups separately rather than assuming equal population variances:
The printed implies a standard error of approximately points. The noninteger 2277.4 statistical degrees of freedom comes from the Welch approximation; it is not a count of fractional observations. Using the corresponding Student t-distribution gives the displayed p-value, approximately . The test and interval calculations agree to the precision of the printed numbers.[ref]
A p-value is the probability, under the null hypothesis and the assumed sampling model, of a test result at least as incompatible with equal means as the observed result. It is not the probability that the null hypothesis is true, the probability that the finding is a chance mistake, or the size of the mean difference. At a prespecified significance level such as , this result rejects the equal-mean null hypothesis; it also rejects at 1%. A Type I error is rejection when that hypothesis is true, and a valid level- procedure controls its long-run probability. A Type II error is failure to reject a false hypothesis; statistical power is the probability of rejection under a specified alternative. Neither error probability for this one realized claim is supplied by its p-value.
The 95% confidence interval comes from , with critical value about 1.961. Its positive endpoints support the same direction and exclude zero. The frequentist 95% statement concerns coverage over repeated samples, not a 95% posterior probability assigned to this fixed interval. Reporting the difference in scale points supplies an effect size; its practical importance also depends on what a point means substantively. A very small p-value alone does not answer that question.
The inferential calculation requires independent observations and an appropriate sampling model. With these large groups, approximately normal sampling distributions of the means can be more plausible than normality of individual bounded scores, but a large sample size does not correct dependence, clustering, selection bias or measurement problems. The output does not establish random assignment or remove possible confounding, so the estimated difference is an association.
There is a material source inconsistency. For exhaustive groups with complete outcome data, the sample mean must be the sample-size-weighted mean of the group means:
which cannot round to 9.348. Figure 7 independently reports all 2466 efficacy values present and again gives 9.348; Question 6 refers back to the same continuous scale. The pooled-mean compatibility under rounding rules out explaining the discrepancy by the displayed decimal precision. Thus the two-group test supports the stated conclusion if its own group summaries and test fields are trusted, while the overall mean cannot simultaneously be accepted as a coherent summary of those groups. No unprinted exclusion or uniquely correct replacement mean is established.
Taken at face value, the printed two-sided p-value rejects equality of average political efficacy at the 5% level, with the non-employed group scoring higher. The effect magnitude and strength of evidence cannot be reported as one coherent result because the estimates, interval, test statistic and p-value contradict one another.
Let and be the expected political efficacy scores in the two employment groups in the target population. The null hypothesis is and the two-sided alternative hypothesis is . A Welch's t-test compares the difference of sample means with its standard error, estimating the two group variances separately:
The reference Student t-distribution has approximate, generally noninteger statistical degrees of freedom; it does not require equality of the two variances. Observations should be independent, with finite group variances; normal distributions give the usual small-sample rationale, while large samples permit an approximate normal sampling distribution under suitable conditions. A large sample cannot correct a biased sampling procedure or dependence between observations.[ref]
A p-value is a probability calculated under the null hypothesis and the sampling assumptions: for this two-sided test it measures the probability of an absolute test statistic at least as large as the observed one. It is not the probability that the null hypothesis is true, the probability that chance caused the observed difference, or a measure of the effect size. If the significance level was chosen in advance, the printed falls just below it. This would reject at 5%, but not at 1%. The significance level describes the long-run probability of a type I error, rejecting a true null hypothesis; a type II error instead fails to reject a false null hypothesis. Statistical power is the rejection probability under a specified alternative hypothesis. None of these errors for this particular realised study can be read as a posterior probability from .
Both the printed sample means and the positive confidence interval point toward greater political efficacy in group 0, the non-employed group. Their magnitudes disagree. Subtracting the printed sample means gives scale units. Yet the printed 95% confidence interval has midpoint , not . A two-sided Welch interval is centred on the difference of sample means. This violates the consistency identities for a two-sided t-test; the interval and estimates cannot describe the same reported comparison. If the interval alone were trusted, it would exclude zero and indicate an increase between about and units, but that is explicitly a conditional interpretation. A 95% confidence interval refers to repeated-sample coverage of a fixed statistical parameter, not a 95% posterior probability for that realised interval.[ref]
There are additional arithmetic warnings. The printed at statistical degrees of freedom gives a two-sided p-value about , not . Thus taking the test statistic as authoritative would imply much stronger evidence, not merely a marginal 5% result. The employment counts sum to , but their percentages are and , not and . If those counts also apply to the two political efficacy sample means, their weighted arithmetic mean would be about , not the reported overall ; separate complete-case group sizes are not supplied, so that last cross-output comparison is conditional on a common sample. No uniquely corrected difference, standard error or interval follows from these contradictory fields.
The political efficacy summary describes a bounded observed scale from to , with median and middle quartiles and . The interquartile range is ; the overall sample mean being below the median does not, by itself, establish a particular distributional shape. These descriptive statistics cannot supply the missing coherent group variances or a standardized effect size. Even a corrected small p-value would establish an association under a statistical model, rather than a causal effect of employment. Age, other background covariates, selection bias and the quality of the political efficacy measurement remain relevant. A defensible report gives the conditional 5% decision and direction, identifies the contradictions, and withholds a single numerical effect-and-uncertainty claim until the output is checked.
A null hypothesis specifies the population comparison to be tested, for example equality of the population means for women and their complement. The alternative hypothesis for a two-sided test is a nonzero difference. A Student's t-test measures an estimated difference in units of its estimated standard error:
On the reported calibration, the sampling distribution under the null hypothesis is Student's t-distribution with statistical degrees of freedom. Consequently the two-sided test has p-value
With this many statistical degrees of freedom, the Student t-distribution is close to the standard normal distribution: exceeds the approximate two-sided critical value , but falls short of the value . Using the supplied calibration, reject at the significance level, but not at . The large statistical degrees of freedom justify this comparison; a value need not be significant for an arbitrary very small number of statistical degrees of freedom.
The p-value is the probability, under the specified null hypothesis and sampling assumptions, of a test statistic at least as discrepant as the observed one. It is not the probability that the null hypothesis is true, nor the probability that the observed difference happened “by chance”. A significance level of controls the long-run type I error rate of the testing procedure when its assumptions hold. Failing to reject at does not prove equality. Statistical significance also does not measure the substantive size or importance of a difference.
The reported sample means place the women's mean scale units above the overall mean. The negative test statistic can reflect the order of subtraction; it does not reverse that observed ordering. An appropriate pre-specified directional one-sided test would have a tail p-value approximately on the supplied calibration, but one cannot choose that direction after inspecting the results simply to halve a p-value.
There is a design issue behind the numerical calculation: the women are included in the overall sample. Comparing a subgroup mean with its containing sample mean requires accounting for shared observations. If is the women's sample fraction and the mean for the remaining respondents, then
These two estimates are not independent. An ordinary independent-two-sample Student's t-test of women against the entire respondent sample would therefore use an inappropriate standard error. The interpretation above accepts the supplied test statistic and its stated null calibration; a valid analysis of the underlying data should compare disjoint groups, or calculate the shared-sample covariance correctly. The summary alone cannot establish which calculation was used. Simple random sampling supports sampling inference under the stated design, but an observed gender association does not establish a causal effect.
Test the null hypothesis against the alternative hypothesis that the two rate parameters differ. Under , the pooled maximum-likelihood estimate is . Under the alternative, the estimates are and .
In the likelihood-ratio test statistic, the data-only terms cancel, and both fitted models have total . Consequently,
The alternative hypothesis adds one parameter, so Wilks theorem gives an approximate chi-squared distribution with one degree of freedom. Do not reject the common-rate model at the 5% level, since . The corresponding approximate p-value is . The fitted expected values are and days, but four observations per group supply little evidence that the underlying expected values differ; failure to reject does not establish equality. The chi-squared distribution calibration is asymptotic and should be treated cautiously for these small samples.
For a specified change, use the log-likelihood-ratio score. A log-likelihood ratio accumulates comparable evidence for the alternative hypothesis against the null hypothesis, includes the changing expected number of deaths, and yields the standard CUSUM designed to detect that alternative. Under the null its expected increment is negative; under the target increase it is positive.
By contrast, raw has zero null drift and does not specify which increase is being sought. Its noise scale changes with expected exposure, since a Poisson count with mean has variance . A reset-at-zero chart with this zero-drift score can wander upwards through chance variation, and its threshold has no direct likelihood-evidence interpretation. An chart can be redesigned with an allowance and appropriately calibrated limits, but unadjusted is not the same as the Poisson likelihood-ratio CUSUM.
For a CUSUM threshold , define the first signalling time
The average run length is under a specified distribution of the observations and specified initial state, here . The in-control value is computed under the null hypothesis; a large value means false signals occur infrequently. The out-of-control value is computed under a specified alternative hypothesis; a small value means rapid detection when that alternative holds from monitoring's start. If a change occurs later, its detection delay depends also on the chart state at change time, so the zero-state alternative average run length is not every possible delay.
A fixed-horizon statistical hypothesis test is characterized by Type I error probability under its null and Type II error probability under a specified alternative. Continuous monitoring repeatedly offers opportunities to signal: over an indefinitely long run its probability of eventually signalling can be one even under the null. The average run length quantifies waiting time rather than that eventual probability. It replaces the single-test emphasis on a false-rejection probability with a false-signal timescale, and compares detection speed rather than only a fixed-horizon miss probability. However, a mean run length alone does not determine either finite-horizon error probability; those require the run-length distribution.
True, with the test's rejection rule fixed. If its rejection region in the space of the test statistic is , its statistical power against the specified simple hypothesis is
Thus the probability distribution of under the alternative hypothesis determines the statistical power of this test. The null distribution is used to choose a rule with the desired test size, but statistical power is evaluated under the alternative hypothesis. Different rejection rules can have different statistical power even for the same probability distribution of .
False. A test size constrains the probability of rejection conditional on the null hypothesis being true:
for an exact size- test of a simple hypothesis. It does not assign a posterior probability to that statistical hypothesis after observing nonrejection. In the frequentist interpretation, the statistical parameter is fixed and the data are random. Nonrejection can occur even when the alternative hypothesis is true; for example, it is particularly likely for an alternative against which the test has low statistical power. A posterior probability would require a prior distribution and a Bayesian model.
For any fixed , the alternative-to-null likelihood ratio is
which is strictly increasing in for . Consequently the Neyman-Pearson lemma selects the same upper-tail ordering for every such alternative hypothesis. At the null hypothesis value,
Therefore
is a uniformly most powerful test of the required exact test size. Its power function is . At its statistical power is one, so including that boundary alternative preserves the conclusion.
For a critical region , the size of a statistical test of the simple null hypothesis is , the Type I error probability. Its statistical power against the simple alternative hypothesis is , the probability of correctly rejecting that null. For a randomized test function , replace these by and .
Statistical hypothesis Created 2026-10-14 Updated 2026-10-18
A statistical hypothesis is a specified set of possible data-generating probability distributions, usually expressed as a restriction on model parameters. A simple statistical hypothesis specifies one distribution; a composite statistical hypothesis permits several. A hypothesis test compares a null hypothesis with an alternative hypothesis using a statistic calibrated under the null.
Statistical hypothesis test Created 2026-10-14 Updated 2026-11-05
A statistical hypothesis test is a decision rule calibrated to distinguish a null hypothesis from a specified alternative hypothesis. A randomized statistical test gives a rejection probability for possible data . Its power function of a statistical test is , and a level- test satisfies
The supremum is the size of a statistical test. Controlling it limits type I error; a useful test also has high statistical power against scientifically relevant alternatives.
For ten independent Bernoulli trials with success probability , test against by rejecting for at least nine successes. The upper-tail probability increases with , so the largest null rejection probability occurs at and equals
It is therefore a conservative level-0.05 test. Rejecting at eight successes would have size . This illustrates why discrete calibration need not attain the advertised level exactly. A p-value is a null-tail probability for the observation, not a probability that the null hypothesis is true. The decision also does not measure the size or practical importance of an effect.