Explain p-values, Type I/II errors, and statistical power to a non-statistician
Written by the mlprep team · Updated
Your product manager asks you to explain what a p-value actually means, and why you keep talking about "power" and "Type I/II errors." Give a clear, intuitive explanation — no jargon.
P-value: the "weirdness" score#
Imagine the new feature does nothing — it's completely useless. Under that assumption, the p-value asks: how surprising would it be to see results as good as (or better than) what we observed?
- p = 0.03 means: if the feature truly does nothing, there's only a 3% chance we'd see results this good by random chance alone.
- p = 0.50 means: this result is totally unsurprising even if the feature does nothing — we'd see this half the time by chance.
Lower p-value = more evidence against "the feature does nothing."
What p-value is NOT#
The p-value is NOT the probability that the feature is useless. It's the probability of seeing this data assuming the feature is useless. These sound similar but are logically very different:
- P(data | feature is useless) ← this is what p-value measures
- P(feature is useless | data) ← this is what you actually want to know
An analogy: the probability that a person speaks French given they're from Paris is high. But the probability that someone is from Paris given they speak French is low (lots of non-Parisians speak French). Mixing up these two probabilities is a common mistake.
Type I error (false positive): crying wolf#
You conclude the feature works when it actually doesn't. You ship something useless, wasting engineering time and possibly degrading the product.
α (significance level) = the rate at which you accept this risk. α = 0.05 means you accept a 5% chance of shipping a useless feature and calling it a win.
Type II error (false negative): missed opportunity#
You conclude "no effect detected" when the feature actually does work. You kill a winning feature because your test wasn't sensitive enough to detect it.
β = the probability of this happening. Typically we accept β = 0.20 (20% chance of missing a real effect).
Power: your test's sensitivity#
Power = 1 - β = probability of detecting a real effect when it exists.
Power = 0.80 means: if the feature truly improves CTR by your minimum detectable effect, you'll detect it 80% of the time.
Low power means your test is like a metal detector that only beeps half the time there's metal. You'll miss real treasures.
What determines power?#
Three levers:
- Sample size (biggest lever): more users → more power. This is why you need 30K users, not 300.
- Effect size: bigger effects are easier to detect. A 50% improvement needs fewer users than a 2% improvement.
- Significance level: relaxing α (say from 0.05 to 0.10) increases power but also increases false positives.
The practical framing for PMs#
| Decision | Actual truth: Feature works | Actual truth: Feature doesn't work | |----------|---------------------------|-----------------------------------| | We ship it | ✅ Correct decision | ❌ Type I error (wasted effort) | | We don't ship it | ❌ Type II error (missed opportunity) | ✅ Correct decision |
Your experiment design controls the rate of both errors. More users = fewer of both errors. The PM's job is deciding: which error is more costly? If shipping a bad feature is expensive (it degrades trust), set α low. If missing opportunities is expensive (competitor is moving fast), ensure high power.
Interview red flags#
- Defining the p-value as "the probability the null hypothesis is true".
- Treating p = 0.051 and p = 0.049 as fundamentally different outcomes.
- Reading a non-significant result as proof of no effect without discussing power.
- Mixing up Type I and Type II errors or being unable to tie them to a business cost.
Now a harder question: your A/B test gives p = 0.04. Your PM says "great, the feature is proven to work, let's ship." What's wrong with that interpretation, and what would you say?
Several things are wrong with "proven to work" from p = 0.04:
1. Statistical significance ≠ practical significance#
A p-value tells you the effect is probably real (not due to chance). It says nothing about whether the effect is big enough to matter.
Example: with 10 million users, you can detect a CTR increase of 0.01% (from 5.00% to 5.01%) with p < 0.05. That's statistically significant but practically meaningless — it generates maybe 10 extra clicks per day. The confidence interval tells you the likely range of the true effect. If it's [0.01%, 0.4%], even the upper bound might not justify the engineering investment.
Always ask: "what's the effect size?" not just "is p < 0.05?"
2. p = 0.04 is not overwhelming evidence#
With α = 0.05, p = 0.04 just barely crosses the threshold. If you ran the same experiment again, there's a non-trivial chance the result wouldn't replicate. The closer p is to α, the less confident you should be.
A better framing: look at the confidence interval for the effect. If it's [+0.1%, +2.3%], you're fairly confident the effect is positive but uncertain about its magnitude. If it's [-0.01%, +2.5%], the interval barely excludes zero — the evidence is weak.
3. Multiple testing inflation#
If you tested 5 metrics and report the one that hit p < 0.05, your actual false positive rate is closer to 23% (1 - 0.95⁵), not 5%. Ask: was this the pre-registered primary metric, or was it found by looking at many metrics?
4. What I'd actually say to the PM#
"The result suggests the feature likely has a positive effect — we have reasonable evidence it's not just noise. The estimated improvement is X% with a confidence interval of [Y%, Z%]. Given the size of the effect and the engineering cost to maintain this feature, here's my recommendation: [ship / extend the test for more precision / don't ship because the effect is too small to justify the cost]."
Frame it as a business decision with uncertainty, not a binary proved/disproved.
The key takeaway unlocks after you reveal an expert answer.
Key Takeaway
P-value = probability of seeing data this extreme IF the null is true (not the probability the null is true). Type I error = false positive (ship useless feature). Type II error = false negative (kill working feature). Power = ability to detect real effects, controlled by sample size. Statistical significance ≠ practical significance — always report effect sizes and confidence intervals, not just p-values.
Follow-up Questions to Test Yourself
Interviewers often pivot here once you cover the core concept.
- If you could only report one thing from an A/B test to a PM, would you report the p-value or the confidence interval? Why?
- Your experiment has p = 0.06. Some stakeholders want to ship anyway. How do you advise them?
- Explain the difference between "no evidence of effect" and "evidence of no effect." When does each conclusion apply?
How confident do you feel explaining this?
Track your understanding or flag it to revisit before your next loop.
Related Questions
Walk me through how you'd design and analyze an A/B test
What is the multiple testing problem and how do you control for it?
Explain Bayesian vs. frequentist thinking — when does each matter in ML?
Which probability distributions matter most in ML, and when do you use each?