Notes

Statistical Power

Statistical power is the idea of “how likely you are to catch a real effect when it’s truly there.” If your study or experiment is underpowered, you can do everything “right” and still miss an important signal—simply because you didn’t collect enough information.

What it means (technically)
In hypothesis testing, statistical power is the probability of correctly rejecting the null hypothesis when the alternative is true. In symbols, power = 1 − β, where β is the probability of a Type II error (a false negative). A common target is 80% power, meaning you’d detect the effect 8 times out of 10 if it really exists.

What determines power
Power isn’t magic; it depends on a few levers:

  • Sample size: more data usually increases power.
  • Effect size: bigger, clearer differences are easier to detect.
  • Noise/variance: messier measurements reduce power.
  • Significance level (α): stricter thresholds (e.g., 0.01 vs 0.05) reduce power.
  • Test design: paired designs or better features can boost power by reducing variance.

Concrete examples

  • A/B testing: If a new checkout page increases conversion by only 0.3%, you may need a large number of visitors to have enough power to detect that lift.
  • Medical measurements: Detecting a small drop in blood pressure requires either more patients or more precise measurement to avoid missing the effect.

Why it matters in AI/ML
Power shows up whenever you compare models or features: online experiments, offline metric comparisons, and significance tests on performance differences. Low power can make real improvements look “non-significant,” slowing iteration, while also encouraging overconfidence in noisy results. Tools like statsmodels and common A/B testing platforms include power and sample-size calculations.

Statistical Power is the probability that a hypothesis test correctly rejects a false null hypothesis (i.e., detects a real effect). Power depends on effect size, sample size, noise/variance, and the chosen significance level. In AI/ML experiments, adequate power helps ensure A/B tests or model comparisons can reliably detect meaningful performance differences rather than missing them due to small samples. Example: increasing test-set size raises power to detect a 1% accuracy gain.

Imagine you’re trying to hear a faint sound in a noisy room. If your hearing is sharp and the room isn’t too loud, you’re more likely to notice the sound when it’s really there. Statistical power is like that “sharp hearing” for an experiment or test: it’s the chance that the test will correctly detect a real effect (a real difference or change) instead of missing it.

In statistics and AI/ML, higher statistical power means you’re less likely to overlook a meaningful improvement—like a new model truly being better—often helped by having enough data, less randomness, or a stronger signal.