Learn
Interactive·

Logic of Hypothesis Testing

A hypothesis test does not prove a claim directly. It begins with a baseline assumption and asks how unusual the data are.

A battery manufacturer claims that a new process increases mean battery life beyond 10 hours. A sample of 40 batteries has a mean life of 11.2 hours.

Assumption

Mean life = 10 hr

Observed

Sample mean = 11.2 hr

Question

How unusual is this?

A sample mean above 10 hours does not by itself prove improvement. Sampling variation could also produce a higher mean.

Key question

If the true mean were still 10 hours, how unusual would a sample mean of 11.2 hours be?

1

Concept

Begin with no effect

The null hypothesis is the baseline assumption

A hypothesis test begins by assuming no change or no difference. This baseline statement is the null hypothesis, H₀.

The claim that the new process increases mean life is the alternative hypothesis, H₁.

HypothesisStatement
H₀Mean battery life is 10 hours
H₁Mean battery life is greater than 10 hours
2

Why It Matters

Why reason backward?

Evaluate how unusual the data are under H₀

A hypothesis test does not directly calculate the probability that H₀ is false. It asks how unusual the observed data would be if H₀ were true.

If the result would be very unusual under H₀, the data are considered inconsistent with that assumption.

3

How It Works

The four steps

A hypothesis test follows four steps

StepAction
1State H₀ and H₁
2Calculate a test statistic
3Evaluate extremeness under H₀
4Compare with a preselected decision rule

The p-value and significance level implement the final two steps. They are covered in the next lesson.

4

Example

Failure to reject is not proof

Failure to reject is not proof of equality

Weak evidence leads us not to reject H₀, but that does not prove the null hypothesis true.

Say it carefully

Incorrect: The new process has no effect.

Better: The current data do not provide sufficient evidence that mean battery life increased.

5

Interactive

Change the null value

Change the null value

The curve is the world where the average is still 10 hours. The shaded tail is everything at least as high as what was measured.

claim: 10 hrmeasured 11.2

Standard error

0.474

Distance ÷ SE

2.53

How rare

0.0057

If the average really were still 10 hours, the sample mean would wobble by about 0.47 hours. Measuring 11.2 sits 2.53 standard errors above the claim, which happens 0.57% of the time.

The same 1.2-hour gap is ordinary or remarkable depending on the noise and the sample size.

  • What happens as the observed mean moves farther from H₀?
  • What happens when standard error increases?
  • How does a larger sample affect the same observed difference?

Key takeaways

  • A hypothesis test begins with a null hypothesis of no effect or no difference.
  • The alternative hypothesis states the pattern of interest.
  • Evidence is evaluated by asking how unusual the data are under H₀.
  • Failure to reject H₀ does not prove it true.

Hypothesis testing checks whether the data are compatible with a baseline assumption; it does not directly prove a claim.

Go Deeper

Significance Level and p-value