Q&A-1Explain what a p-value actually is and how it changes a production decision.
Answer
A p-value is the probability of seeing data at least as extreme as yours, computed under the assumption that the null hypothesis is true. It is P(data | null), never P(null | data). It is not the probability the null is true, and it is not the size of the effect.
That distinction decides production calls, so make it concrete.
A worked decision
You ship a change to the checkout recommender. Control converts at 10.0%, treatment at 10.4%, 100,000 sessions per arm.
import math
p0, p1, n = 0.10, 0.104, 100_000
se = math.sqrt(2 * p0 * (1 - p0) / n) # 0.0013416
z = (p1 - p0) / se # 2.9814
# two-sided p = 2 * (1 - Phi(2.9814)) = 0.0029p = 0.0029, so at the conventional α = 0.05 you reject the null. But the number that decides the ship is the interval: 0.4pp ± 1.96 × 0.134pp gives a 95% CI of [0.14pp, 0.66pp]. At 1M sessions/month and $50 revenue per conversion, that is $200k/month at the point estimate and $68.5k/month at the lower bound. If the change costs $20k/month in infra, the lower bound still clears it: ship. If it costs $90k/month, the same p-value says don't. The p-value never made that call; the interval and the cost did.
Where p-values mislead in practice
Four ways, each with a number:
- Base rates. Most changes do nothing. If 10% of your experiments have a real effect, then at α = 0.05 with 80% power, 100 experiments yield about 8 true positives and 4.5 false positives: a third of your "wins" are noise. The p-value cannot see this; the prior can.
- Multiple comparisons. The dashboard has 20 metrics. At α = 0.05 you expect one false positive per experiment by construction. Bonferroni gives 0.05/20 = 0.0025, and our p = 0.0029 fails it. Pre-register one primary metric.
- Optional stopping. Five equally spaced unadjusted looks at α = 0.05 push the family-wise error rate to roughly 0.14. If you must peek, use a sequential test with always-valid intervals.
- Low power. At n = 100k per arm, the minimum detectable effect at 80% power is 2.8 × 0.134pp ≈ 0.38pp. If the lift you care about is 0.1pp, you need about 1.4M per arm. A non-significant p-value from an underpowered test is not evidence of no effect.
Trade-offs
Reporting effect size and a confidence interval alongside p is the minimum. When the decision is asymmetric, shipping a bad change hurts more than missing a good one, a Bayesian posterior with expected loss gives you a threshold you can defend. When you need to stop early, sequential methods widen the interval but buy back the α you would otherwise burn.
Failure modes and detection
The inversion: reading p = 0.0029 as a 0.29% chance the change does nothing: is caught by asking for the prior. Peeking is caught in the analysis log: if the sample size was not fixed in advance, the α is not 0.05. Metric sprawl is caught by counting the dashboard. Underpowered tests are caught by computing the MDE before launch, not after.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.