Hypothesis Tests and p-values
A sceptical finance manager looks at the Quick Checkout result and says: "Conversion jumps around every week. Maybe the new checkout does nothing and you just caught a good fortnight." That is a fair challenge, and a hypothesis test is the formal way to answer it.
The rule
A p-value asks: if nothing changed, how surprising is data this extreme?
A test starts by assuming the boring explanation is true.
- The null hypothesis says the change has no effect: both checkouts convert at the same rate, and any gap is sampling noise.
- The test statistic measures how far the result sits from "no effect", in standard errors:
For the checkout test, . The observed lift is almost three standard errors away from zero.
- The p-value is the chance, if the null were true, of seeing a gap at least this far from zero in either direction. For it is about 0.006: pure noise would produce a gap this large only about 6 times in 1,000 tests.
- Before looking, you choose a significance level, usually . If the p-value is below it, you call the result statistically significant and reject the null.
A p-value is easy to over-read. It is not the probability that the null is true, and it is not the size of the effect. With millions of users, a lift too small to matter can still earn a tiny p-value, so always put the effect and its interval next to it. Tests and intervals agree: a 95% interval that excludes zero goes with a two-sided p-value below 0.05.