What chance alone does to a comparison
Simulate 10,000 checkout tests in which the redesign changes nothing, and see how often a gap as large as 0.6 points appears anyway.
3 parts · 2, 4 and 3 min
Free course. Your Maestro, an AI, .
On the previous page, a single sample of 2,000 sessions wobbled around a known 4% conversion rate from draw to draw. In our checkout comparison, two samples of 2,000 sessions are in play at once: the current checkout produced 80 orders (4.0%) and the new checkout produced 92 orders (4.6%), a difference of 12 orders or 0.6 percentage points. Because both samples wobble independently, their difference wobbles even more.
Before crediting the redesign for those 12 extra orders, you can check how often a gap that large happens when the redesign changes nothing at all.
Building a no-change simulation
A no-change simulation starts from a single assumption: suppose the two checkouts have the exact same true conversion rate, and the split we saw came entirely from random assignment.
- Pool the data into one shared rate. If both checkouts convert at the same rate, our best estimate of that rate combines every order and every session from the test: 80 plus 92 orders divided by 2,000 plus 2,000 sessions, or 172 out of 4,000 (4.3%). In the code, this sits in
pooled. - Simulate 10,000 two-arm tests at the pooled rate. With a fixed seed (
np.random.default_rng(42)), we draw 2,000 sessions for the new checkout at 4.3% and 2,000 sessions for the current checkout at 4.3%, then subtract their order counts to getgap. Because both groups have 2,000 sessions, working directly in order counts (92 - 80 = 12) is exact. - Count gaps at least as large in either direction. Under pure chance, a 12-order swing is just as likely to put the new checkout behind (
-12or lower) as ahead (+12or higher). Counting only the runs that favored the new checkout would ignore half the chance swings after seeing which way our test landed. Taking the absolute value withnp.abs(gap) >= observed_gapcounts both tails.
Try it
Run the starter code to see the middle 95% of order gaps across 10,000 no-change tests. Then add two lines at the bottom:
- Compute the share of simulated tests with a gap of at least 12 orders in either direction using
np.mean(np.abs(gap) >= observed_gap). - Compute the formula-based two-sided Glossary word that dashboards report for the same comparison: import
sqrtanderfcfrommath, find the rate differencediff = orders_new / n_new - orders_current / n_current, divide by the pooled standard errorsqrt(pooled * (1 - pooled) * (1 / n_new + 1 / n_current))to get a Glossary wordz, and pass it toerfc(abs(z) / sqrt(2)).
If you get stuck writing the two-sided share or the normal-approximation formula, ask your Maestro to walk through the expressions.
A good place to stop. Up next: the exercise · 4 min
A good place to stop. Up next: Reading what the simulation printed · 3 min
Reading what the simulation printed
With seed 42, your run gives four numbers that work together:
- Observed gap in orders: 12 orders (92 minus 80).
- Middle 95% of no-change gaps: from
-25to25orders. When both checkouts convert at 4.3% over 2,000 sessions each, gaps up to 25 orders in either direction are routine. - Share at least as far from 0:
0.37. In 37% of the 10,000 simulated no-change tests, chance alone produced a gap of 12 orders or more. - Normal-approximation two-sided p:
0.35, right beside the simulated 0.37. The formula approximates the discrete binomial counts with a smooth curve, answering the same question without drawing random numbers.
More simulated runs measure the no-change spread more precisely; they do not narrow it. Only more sessions per checkout narrow the wobble itself.
Because a gap of 12 orders or more appears in roughly a third of no-change tests, the 0.6-point lift is completely ordinary under chance alone. Ask your Maestro to test your one-sentence summary of the 0.37 result if you want to check your wording.
Common mistake: "If nothing changed" is not the probability that nothing changed
A share of 0.37 means that if the redesign had zero effect, a gap of at least 12 orders would show up by chance 37% of the time. It does not mean there is a 37% chance the redesign did nothing and a 63% chance it worked. Because the simulation started by assuming zero change in 100% of runs, it only measures how ordinary the 12-order gap is under that assumption. In this test, the data cannot separate "no change" from a modest change.