Math & Statistics

Type I vs Type II Errors

False Positives vs False Negatives: why minimizing one error always inflates the other.

🟢 beginner4 min readstatistics
Statistical decisions suffer from two distinct error modes: Type I Error (α - False Positive / False Alarm) occurs when we reject a true null hypothesis H₀. Type II Error (β - False Negative / Missed Detection) occurs when we fail to reject a false null hypothesis H₀. Statistical Power (1 - β) is the probability of correctly detecting a real effect. Balancing α and β is a cost trade-off driven by business risk.

The Error Matrix

                          Truth in Population
                     H₀ is True (No Effect)       H₁ is True (Real Effect)
                  ┌───────────────────────────┬───────────────────────────┐
  Reject H₀       │   Type I Error (α)        │    Correct Decision       │
  (Positive)      │   False Positive / Alarm  │    Power = 1 - β          │
                  ├───────────────────────────┼───────────────────────────┤
  Fail to Reject  │    Correct Decision       │   Type II Error (β)       │
  (Negative)      │    Confidence = 1 - α     │   False Negative / Miss   │
                  └───────────────────────────┴───────────────────────────┘

The Trade-off & Levers

        Shift Decision Threshold Left (More Sensitive)
     ◄─────────────────────────────────────────────────►
  Type I Error (α) ↑   False Positives ↑  Recall ↑
  Type II Error (β) ↓  False Negatives ↓  Precision ↓

For a fixed sample size N, you cannot decrease α without increasing β.

To decrease both α and β simultaneously:

  1. Increase Sample Size N: Shrinks standard error SE = σ / √N, narrowing distribution curves.
  2. Increase Effect Size: Larger real differences are easier to separate from noise.
  3. Reduce Measurement Noise: Improve logging precision or use variance reduction (CUPED).

Say this out loud

"Type I error alpha is a false positive—rejecting a true null hypothesis. Type II error beta is a false negative—missing a real effect. Statistical power is 1 - beta. For a fixed sample size, lowering alpha increases beta, so balancing them requires cost asymmetry analysis. The only way to lower both error rates simultaneously is to increase sample size N."

Follow-ups to expect

Check yourself

Question 1 of 3

In a spam detection system where Null Hypothesis H₀ = 'Email is Legitimate', what constitutes a Type I error?

More in Math & Statistics

See all →
Bayes’ Theorem4 minCentral Limit Theorem4 minLaw of Large Numbers4 min