Read an interval and what it rests on
Compute a 95% interval for the 0.6-point difference, check it with a seeded simulation, and list the assumptions it needs.
2 parts · 2 and 8 min
Free course. Your Maestro, an AI, .
On the last page, you simulated 10,000 tests where the redesign changed nothing and saw that a 12-order (0.6-point) gap appears fairly often by chance alone. Answering whether zero could explain the gap is only part of the job. When a team asks how much the new checkout helps or hurts, a single number like +0.6 percentage points hides how far Glossary word wobble could have pushed the result. You need a Glossary word: the range of true differences compatible with your test data.
In the checkout test, the current version converted 80 of 2,000 sessions (0.040, or 4.0%) and the redesign converted 92 of 2,000 sessions (0.046, or 4.6%). Each sample rate wobbles from sample to sample, and when you subtract one independent sample rate from another, both sources of wobble combine into the standard error (se): sqrt(p_c * (1 - p_c) / n_c + p_t * (1 - p_t) / n_t).
When both arms have enough orders, sample differences across repeated tests follow a Glossary word. About 95% of a normal curve lies within 1.96 standard deviations of its center, so stepping 1.96 * se below and above the observed difference (diff - 1.96 * se to diff + 1.96 * se) gives the normal-approximation 95% interval. If you want to see why the two variance terms inside the square root are added when we subtract the rates, ask your Maestro.
You can verify that formula in two ways with a fixed seed (np.random.default_rng(3)):
- Resample from the observed rates. Draw 10,000 simulated tests where the two arms convert at the observed rates
p_candp_t, subtract the two simulated rates in each test, and take the middle 95% withnp.percentile(sim, [2.5, 97.5]). This checks whether the1.96 * seformula matches the binomial spread at your counts. - Measure coverage across repeated tests. Set known true rates of 0.040 and 0.046 (a true difference of 0.006, or 0.6 points) and simulate 2,000 tests of 2,000 sessions per arm. In every test, compute that test's sample rates
pcandpt, its standard errorse_r, and its 95% interval, then find the share of the 2,000 intervals that contain 0.006.
Try it
Run the starter code to print the normal-approximation 95% interval, then add the 10,000-draw simulated interval and the 2,000-test coverage check. If your percentile line or coverage condition gives an unexpected result, paste your code to your Maestro.
A good place to stop. Up next: the exercise · 8 min
What the numbers allow you to say
With seed 3, your code prints an observed difference of 0.6 points and a normal-approximation 95% interval from -0.66 to 1.86 points. The middle 95% of the 10,000 differences simulated from the observed rates runs from -0.65 to 1.85 points, matching the formula to within a hundredth of a point. Across the 2,000 simulated tests with true rates 0.040 and 0.046, the interval captures the true 0.6-point (0.006) difference in 0.942 of runs, right near the promised 95%.
When you report the interval from -0.66 to 1.86 points, keep four boundaries in mind:
- Read the span as the range of compatible effects. Your data are compatible with true effects anywhere from a small loss of -0.66 percentage points to a gain of +1.86 percentage points.
- Attach the 95% to the procedure across repeated samples. The 95% describes how often intervals built this way capture the true difference over repeated tests, as your 0.942 coverage check showed. Once you compute one interval like -0.66 to 1.86 points, the true difference for that population and week is fixed; calling 95% the probability that the truth sits inside your single interval confuses the method's long-run hit rate with a probability about this one test. If you want to practice stating this distinction for a stakeholder, try a one-sentence version with your Maestro.
- Treat an interval containing zero as inconclusive rather than proof of zero. Because 0 sits inside -0.66 to 1.86 points, no change remains plausible. Gains above +1.5 points sit inside the same interval, so the data allow both no change and a sizable lift.
- Separate statistical uncertainty from practical value. Even when an interval stays entirely above zero, the statistical range alone cannot tell you whether the lift is big enough to justify rolling out the change. You will weigh intervals against practical thresholds in Module 3.
Warning: Assumptions behind this 95% interval
This interval holds only when the test that produced the data meets four conditions:
- Independent, randomly assigned sessions: Sessions were split at random between the two checkouts, and one shopper's outcome does not affect another's.
- One planned analysis at a fixed sample size: The sample size of 2,000 sessions per arm was set in advance and analyzed once at the end. Checking results along the way and stopping when a gap looks good breaks the 95% coverage (you will simulate why in Module 2).
- Enough orders in each arm for the normal approximation: Counts of 80 and 92 orders are large enough for
diff ± 1.96 * seto track the binomial spread; with very small order counts, this formula can fall short of 95% coverage. - The sampled population and timeframe: The interval describes the shoppers and week in this test, and does not automatically carry over to a different traffic mix or season.