STAT 101
M06 · L01
Module 6 · Lesson 1

The Logic of Hypothesis Testing

How do you tell a real effect from random noise? You ask how surprised you’d be if there were no effect at all. That’s the entire logic of hypothesis testing.

01 / 12
STAT 101
M06 · L01
Two competing claims

H₀ vs. H₁

H₀ (null): the skeptical default — no effect, no difference. H₁ (alternative): what you are trying to find evidence for.

The asymmetry
You never prove H₀. You either reject it or fail to reject it. Like a verdict of "not guilty" — not the same as "innocent."
02 / 12
STAT 101
M06 · L01
Measuring deviation from H₀

The Test Statistic

Z Test Statistic
Z = \dfrac{\bar{x} - \mu_0}{\sigma / \sqrt{n}}

Counts how many standard errors the sample mean is from the hypothesized value. Large |Z| = strong evidence against H₀.

03 / 12
STAT 101
M06 · L01
The most misunderstood number in science

The P-Value

Probability of observing data this extreme (or more), assuming H₀ is true.

What it is NOT
Not P(H₀ is true). Not the probability the result is due to chance. It's P(data this extreme | H₀ true).
04 / 12
STAT 101
M06 · L01
The threshold you set in advance

Significance Level α

Typical choices
α = 0.05
α = 0.01
α = 0.001
Rule
p ≤ α → reject H₀
p > α → fail to reject
05 / 12
STAT 101
M06 · L01
False positive

Type I Error

Rejecting H₀ when it is actually true. The probability is exactly α — you set this yourself.

The price of sensitivity
At α = 0.05, 5% of experiments on a truly null effect will falsely declare significance. This is unavoidable — you pay α for the right to reject at all.
06 / 12
STAT 101
M06 · L01
False negative

Type II Error

Failing to reject H₀ when it is actually false. Probability = β. Unlike α, β is not fixed — it depends on the effect size and sample size.

Reduce β by
Larger n
Larger true effect
Less noise
Trade-off
Lower α → fewer false positives but more false negatives
07 / 12
STAT 101
M06 · L01
Probability of detection

Statistical Power

Power = 1 − β. The probability of correctly rejecting a false H₀. Conventional target: 80% (sometimes 90% in high-stakes research).

  • Larger sample size → more power
  • Larger effect size → easier to detect
  • Higher α → more power (but more false positives)
  • Less variance → sharper signal
08 / 12
STAT 101
M06 · L01
Direction matters

One-Tailed vs. Two-Tailed

Two-tailed (default)
H₁: μ ≠ μ₀. Splits α between both tails.
One-tailed
H₁: μ > or < μ₀. Full α in one tail — more power, but must be justified in advance.
09 / 12
STAT 101
M06 · L01
The procedure

Six Steps

  • State H₀ and H₁
  • Choose α before seeing data
  • Select the appropriate test
  • Check assumptions
  • Compute test statistic and p-value
  • Decide: reject or fail to reject. Report effect size too.
10 / 12
STAT 101
Knowledge Check

Check what stuck

Four questions from this lesson. Answer to see why — the explanation appears whether you were right or wrong. Nothing is scored or saved.

Question 1 of 0
Score 0/0

11 / 12
STAT 101
Summary
Recap

What you learned

  • H₀: no effect (default). H₁: the claim you’re testing
  • Test statistic measures deviation from H₀
  • P-value = P(data this extreme | H₀ true) — not P(H₀ is true)
  • Reject H₀ when p ≤ α (set in advance)
  • Type I error (α): false positive. Type II error (β): false negative
  • Power = 1 − β: target ≥ 80%
12 / 12