Null hypothesis

On this page 7

The null hypothesis, written H0, is the default statement that there is no effect, no difference or no relationship in a population, and it is the claim a statistical test attempts to reject with sample evidence. In statistics and data analysis, it serves as the reference model against which observed data are judged: if the data would be very unlikely under H0, the analyst rejects it in favor of the alternative hypothesis, written H1 or Ha.

The null hypothesis is not a belief that nothing is happening. It is a precisely specified probability model that makes the sampling distribution of a test statistic computable, which is what allows p-values, significance levels and error rates to be defined at all.

How the null hypothesis anchors a statistical test

A test works by assuming H0 is true and asking how surprising the observed data would be under that assumption. The analyst computes a test statistic, such as a t value or a chi-squared value, whose distribution under H0 is known. The p-value is the probability of obtaining a statistic at least as extreme as the observed one if the null hypothesis were true.

The decision rule compares the p-value with a significance level alpha, chosen before the data are examined. When the p-value falls below alpha, the result is called statistically significant and H0 is rejected. When it does not, the analyst fails to reject H0, which is deliberately weaker wording than accepting it.

The following table shows how the null and alternative hypotheses are typically paired for common questions in data work.

Research questionNull hypothesis (H0)Alternative hypothesis (H1)
Does a new page layout change conversion?Conversion rates are equalConversion rates differ
Is mean delivery time below 48 hours?Mean is 48 hours or moreMean is below 48 hours
Are two survey variables related?Variables are independentVariables are associated
Does a regression predictor matter?Coefficient equals zeroCoefficient is not zero
Do three groups share one mean?All group means are equalAt least one mean differs
Typical null and alternative hypothesis pairs

Simple, composite, one-sided and two-sided forms

A simple null hypothesis specifies the parameter exactly, for example that a mean difference equals zero. A composite null hypothesis covers a range of values, such as a mean of 48 hours or more; tests then control error at the boundary value, which is the least favorable case for the analyst.

The direction of the alternative determines whether the test is one-sided or two-sided. A two-sided test spreads alpha across both tails of the distribution, while a one-sided test concentrates it in one tail and therefore detects effects in that direction with more statistical power. The direction must be fixed before seeing the data, because choosing it afterward silently doubles the real false positive rate.

The table below summarizes the main forms and when each is appropriate.

FormExample statementAppropriate when
Point null, two-sidedMean difference = 0Any departure from zero matters
Composite, one-sidedMean difference is 0 or lessOnly improvement is relevant
Equivalence nullDifference exceeds a marginThe goal is to show similarity
Distributional nullData follow a normal distributionChecking model assumptions
Forms of the null hypothesis

The equivalence null reverses the usual logic: the default claim is that a meaningful difference exists, and rejecting it supports the conclusion that two treatments are practically the same. Procedures such as two one-sided tests (TOST) implement this design.

Type I and Type II errors under the null hypothesis

Every decision about H0 can be wrong in one of two ways. A Type I error rejects a true null hypothesis and occurs with probability alpha. A Type II error fails to reject a false null hypothesis and occurs with probability beta; the complement, 1 minus beta, is statistical power.

The four possible outcomes of a test are shown in the following table.

DecisionH0 is actually trueH0 is actually false
Reject H0Type I error (probability alpha)Correct detection (power)
Fail to reject H0Correct non-rejectionType II error (probability beta)
Decision outcomes when testing a null hypothesis

Alpha is conventionally set at 0.05, with 0.01 or 0.005 used where false discoveries are costly, and particle physics using a far stricter five-sigma threshold. Power of 0.80 or higher is a common design target. Lowering alpha without increasing the sample size reduces power, so the two error rates must be balanced against each other during study planning.

Relation to hypothesis testing and confidence intervals

The null hypothesis is one component of the broader hypothesis testing framework, which also includes the alternative, the test statistic, the decision rule and the error rates. Specific procedures such as the t-test, ANOVA and the chi-squared test each come with a standard null hypothesis about means, variances or frequencies.

A two-sided test at level alpha is mathematically dual to a confidence interval at level 1 minus alpha: H0 is rejected exactly when the hypothesized value lies outside the confidence interval. Many statisticians prefer reporting the interval, because it shows both the plausible effect size and its precision, while a bare p-value shows neither.

Bayesian statistics treats the question differently. Instead of rejecting H0 by a tail probability, it compares the probability of the data under competing models, often through a Bayes factor, and it can express positive evidence in favor of the null, which the classical framework cannot.

Common misinterpretations and practical pitfalls

Misreading the null hypothesis is among the most frequent errors in applied analytics. The following table lists recurring mistakes and their corrections.

MistakeWhy it is wrongCorrect practice
Treating p as P(H0 is true)The p-value assumes H0 is trueRead it as data surprise under H0
Accepting H0 after non-significanceLow power hides real effectsReport the interval or test equivalence
Equating significance with importanceLarge samples flag tiny effectsReport effect size with units
Running many tests unadjustedFalse positives accumulateApply Bonferroni or FDR control
Choosing H0 after seeing dataError rates no longer holdPreregister hypotheses and analysis
Frequent mistakes involving the null hypothesis

Point null hypotheses are also almost never exactly true in large observational datasets, since two real populations rarely share a mean to infinite precision. With millions of rows, nearly any H0 will be rejected, so analysts should define a minimum effect of practical interest and judge results against it rather than against zero alone.

Explained without jargon

The null hypothesis is the boring starting assumption: nothing changed, the two groups are the same, the new idea makes no difference. A test then asks whether the evidence is strong enough to abandon that assumption.

It works like a courtroom. The defendant is presumed innocent, and the prosecution must show convincing evidence of guilt. A not guilty verdict does not prove innocence; it only means the evidence was not strong enough. In the same way, failing to reject the null hypothesis does not prove that there is no effect.

A typical use case

An online retailer tests a redesigned checkout button. The analytics team states the null hypothesis that the conversion rate is the same for the old and new designs, sets alpha at 0.05 and calculates that about 53,000 visitors per variant are needed for 80 percent power to detect a lift from 3.0 to 3.3 percent.

After two weeks, the old design converts at 3.02 percent and the new one at 3.31 percent. A two-proportion z-test gives a p-value of about 0.007, and the 95 percent confidence interval for the difference runs from roughly 0.08 to 0.50 percentage points. The team rejects the null hypothesis, ships the new design and notes that the true lift may be small, so it schedules a follow-up test to refine the estimate.