Notes

Type I Error

A Type I error is what happens when you “call something real” based on your data, but in truth it isn’t. It’s the classic false alarm: you conclude there’s an effect, difference, or signal when the world is actually consistent with “nothing changed.”

What it means in hypothesis testing
In hypothesis testing, you start with a null hypothesis (often “no effect” or “no difference”) and look for evidence against it. A Type I error occurs when you reject the null hypothesis even though it is true. The probability of making this mistake is controlled by the significance level, written as α (alpha). If you set α = 0.05, you’re accepting a 5% chance of a Type I error in the long run, under the null.

Intuition and a quick analogy
Think of a smoke alarm. A Type I error is the alarm going off when there’s no fire—maybe just burnt toast. Lowering α is like making the alarm less sensitive: fewer false alarms, but you might miss some real fires (that’s a different error type).

Practical examples

  • A/B testing: You declare a new website layout increases sales, but the apparent lift was just random variation.
  • Medical screening: A test flags a healthy person as having a disease (a false positive).
  • Model comparison: You conclude Model B is better than Model A based on a test, but there’s no true performance difference.

Why it matters in AI/ML
Type I errors drive bad decisions: shipping “improvements” that don’t help, promoting misleading features, or publishing spurious findings. They become especially likely when you run many tests (multiple comparisons), tune repeatedly, or peek at results mid-experiment. Tools like p-values, α, and corrections (e.g., Bonferroni, FDR control) exist largely to keep Type I errors from snowballing in data-driven ML workflows.

Type I Error is rejecting a true null hypothesis—a false positive. Its probability is the significance level α chosen for a test (e.g., 0.05), controlling how often you expect to flag an effect that isn’t real. In AI/ML, it matters when evaluating model improvements or A/B tests, where false discoveries can lead to deploying worse changes. Example: concluding a new ranking model increases click-through when the true lift is zero.

Imagine a smoke alarm that goes off when there’s no fire—loud, alarming, but false. That kind of “false alarm” is what a Type I Error means in statistics.

In hypothesis testing, you usually start with a “default” assumption called the null hypothesis (for example, “this new medicine doesn’t work”). A Type I Error happens when you wrongly reject that default assumption—concluding there is an effect or difference when there really isn’t. In AI and machine learning experiments, this can mean claiming a model improvement is real when it’s actually just random chance.