Hypothesis test

By Jude Wallis · Published

A hypothesis test uses sample data to weigh a null claim against an alternative, gauging how surprising the data would be if the null claim were true.

A hypothesis test, also called a significance test, assumes a claim about a population parameter and asks how unusual the observed sample would be if that claim held. The machinery is fixed: state H0H_0 and HaH_a, check the conditions, compute a test statistic, turn it into a p-value using the null distribution, and compare that p-value with a significance level α\alpha (alpha) fixed beforehand. The output is one of two verdicts, reject H0H_0 or fail to reject H0H_0, and never a probability that either hypothesis is true.

Test H0:μ=100H_0: \mu = 100 against Ha:μ>100H_a: \mu > 100 with σ\sigma (sigma) known to be 15 and n=25n = 25, so the standard error is 15/25=315/\sqrt{25} = 3. A sample mean of 106.2 gives z=106.21003=2.07z = \frac{106.2 - 100}{3} = 2.07 and a p-value of 0.0194. At α=0.05\alpha = 0.05 that is a rejection: samples this far above 100 turn up under 2 percent of the time when 100 is the truth.

The misreading that costs points: "the p-value was 0.16, so we accept the null hypothesis and conclude the mean is 100." A test never accepts H0H_0. A sample mean of 103 in that same setup gives z=1.00z = 1.00 and a p-value of 0.1587, and a 95 percent interval of 103±1.96(3)103 \pm 1.96(3), or 97.12 to 108.88. Every value in that range is as consistent with the sample as 100 is, so failing to reject rules nothing in. The asymmetry is deliberate: evidence can contradict one specific value, and no sample can confirm one.

A test also answers only the question its hypotheses posed and does not audit its own scope. Whether a conclusion reaches a population depends on random sampling, and whether it supports a cause depends on random assignment: a rejection from a convenience sample is still a rejection and still worth very little. Significant is not the same as large, the subject of statistical vs practical significance.

In the Fall 2026 AP Statistics course, one-proportion tests are Unit 3 topics 3.5 through 3.7, and tests for means are Unit 4 topics 4.4 and 4.5.

Where this comes up

10 pages on the site use this term.

More hypothesis testing terms, or browse the full statistics glossary.