p < 0.05: the usual rule for rejecting the null hypothesis

Short answer: a hypothesis test checks whether sample data gives enough evidence against a starting assumption. The null hypothesis (H0) says “no difference” or “no effect”. The alternative hypothesis (Ha) says the opposite. If the p-value is smaller than the significance level, usually α = 0.05, you reject H0. If not, you do not reject it. Either way, nothing is “proven”.

Last updated: November 2026.

Null vs alternative hypothesis

The two hypotheses must contradict each other. The null is often the status quo. The alternative is the claim you conclude if the evidence is strong enough to reject the null. A simple rule: H0 always contains an equals sign, and Ha never does.

If H0 uses…Then Ha uses…Example (OpenStax)
= (equal to)≠, > or <H0: mean GPA μ = 2.0; Ha: μ ≠ 2.0
≥ (at least)< (less than)H0: mean years to graduate μ ≥ 5; Ha: μ < 5
≤ (at most)> (more than)H0: AP exam share p ≤ 0.066; Ha: p > 0.066
Source: OpenStax, Introductory Statistics 2e, 9.1 Null and Alternative Hypotheses (Table 9.1 and Examples 9.2–9.4).

An Ha with ≠ gives a two-tailed test: you are looking for a difference in either direction. An Ha with < or > gives a one-tailed test.

The 5 steps of a hypothesis test

  1. State H0 and Ha, and choose a significance level (α) before you look at the data.
  2. Collect the sample data.
  3. Pick the right distribution, for example normal (z) or Student’s t.
  4. Calculate the test statistic and the p-value. A z-score or a t-score is a test statistic.
  5. Decide and explain. If p-value < α, reject H0. If p-value ≥ α, do not reject H0. Write the conclusion in plain words.

Worked example: are coffee cups short-filled?

A café says its cups hold 350 ml on average. You measure 36 cups and get a mean of 345 ml. Assume the population standard deviation is known: 12 ml. Is the café short-filling, or is this just chance?

StepWorking
HypothesesH0: μ = 350 ml; Ha: μ ≠ 350 ml (two-tailed); α = 0.05
Standard error12 ÷ √36 = 12 ÷ 6 = 2 ml
Test statisticz = (345 − 350) ÷ 2 = −2.5
p-valueTwo-tailed p ≈ 0.012
Decision0.012 < 0.05, so reject H0
ConclusionThe sample gives evidence that the mean fill differs from 350 ml.
Illustrative example. Calculated by My Web Stats using the normal distribution.

Notice the careful wording. The test does not prove the café cheats. A 5 ml shortfall may also be too small to matter to customers. That is a separate question from statistical significance.

Type I and Type II errors

Any decision based on a sample can be wrong. There are two ways to get it wrong.

ErrorWhat happensProbability
Type I (false positive)A true null hypothesis is rejectedα
Type II (false negative)A false null hypothesis is not rejectedβ
PowerA false null is correctly rejected1 − β
Source: OpenStax, Introductory Statistics, Chapter 9 review.

Because α is the chance of a Type I error, the significance level you choose sets how often you will cry wolf when the null is actually true:

Significance level (α)Chance of rejecting a true H0
0.1010%
0.05 (most common)5%
0.011%
Follows from the definition of α (OpenStax).

A smaller α makes false positives rarer but makes Type II errors more likely, unless you collect more data. See what alpha means in statistics.

What a p-value does not tell you

A p-value is the probability, under a stated model, of getting a result at least as extreme as the one observed. In 2016 the American Statistical Association (ASA) published six principles because p-values were so often misread. In short:

  • A p-value shows how incompatible the data are with a model.
  • It is not the probability that the hypothesis is true.
  • Decisions should not rest only on whether p crosses a line such as 0.05.
  • Honest inference needs full reporting, not cherry-picked results.
  • A small p-value does not mean a large or important effect.
  • On its own, a p-value is not a good measure of evidence.
Chance of a false positive (Type I error) at each significance level
α = 0.1010%
α = 0.055%
α = 0.011%
When the null hypothesis is true. Source: definition of α (OpenStax).
Quick quiz: test yourself
1. Which hypothesis always contains an equals sign?
2. In the coffee example, p ≈ 0.012 and α = 0.05. What is the decision?
3. What is a Type I error?

Frequently asked questions

Why do we say “do not reject” instead of “accept” the null?

Because failing to find evidence against H0 is not evidence for it. The ASA notes that a large p-value does not show support for the null. The sample may simply be too small.

What does p < 0.05 mean?

If the null hypothesis were true, a result at least this extreme would happen less than 5% of the time. It does not mean there is a 95% chance your hypothesis is right.

Is a one-tailed or two-tailed test better?

Use a two-tailed test (≠) unless you decided before seeing the data that only one direction matters. Choosing the tail after looking at the results inflates false positives.

Related: alpha (α), mean, median and mode calculator, or browse more statistics by topic.

Leave a Reply