The standard normal and z-scores
Standardising, the 68-95-99.7 rule and the normal approximation to the binomial.
Standardising
Every normal distribution is the same bell drawn on a different scale. Subtract the mean and divide by the standard deviation, and any \(X \sim N(\mu, \sigma)\) becomes the standard normal \(Z \sim N(0, 1)\):
The z-score says how many standard deviations a value lies from the mean, and in which direction. \(\mu\) and \(\sigma\) here are the distribution's, the mean and spread of the process the value comes from, not the mean and standard deviation of a handful of values that happen to be at hand. \(\Phi\) is the standard normal CDF, the function a z-table prints.
Comparing unlike quantities
A courier's deliveries take on average 35 minutes with a standard deviation of 8 minutes. An online shop's baskets average £62 with a standard deviation of £15. Today one delivery took 51 minutes and one customer spent £98. Minutes and pounds cannot be compared, but their z-scores can:
The basket is further out. If both are roughly normal, a delivery at least this slow happens with probability \(P(Z > 2) = 0.0228\), about one in 44, and a basket at least this large with probability \(P(Z > 2.4) = 0.0082\), about one in 122. The basket is the more unusual event.
The 68-95-99.7 rule
Because every normal is the standard normal rescaled, the share within a given number of standard deviations of the mean is the same for all of them:
Rounded, that is the 68-95-99.7 rule. For the deliveries, about 68 % take between 27 and 43 minutes, 95 % between 19 and 51, and nearly all between 11 and 59. The exact multiple for 95 % is 1.96, not 2: \(P(|Z| \le 1.96) = 0.95\).
Percentiles from z
Turn the standardising round to find a percentile: \(x = \mu + z\sigma\). The 90th percentile of the standard normal is \(z = 1.2816\), so 90 % of deliveries arrive within \(35 + 1.2816 \times 8 = 45.25\) minutes.
The normal approximation to the binomial
A binomial with many trials is close to a normal with the same mean and standard deviation, \(\mu = np\) and \(\sigma = \sqrt{np(1 - p)}\). Before software, this was how large binomials were computed; today it matters because it explains why so many counts look bell-shaped.
A bar at a whole number \(k\) stands for the interval from \(k - \tfrac{1}{2}\) to \(k + \tfrac{1}{2}\), so the area that matches \(P(X \le k)\) runs to \(k + \tfrac{1}{2}\). That half is the continuity correction:
An e-mail campaign goes to 200 customers, each opening it with probability 0.25, so \(\mu = 50\) and \(\sigma = 6.1237\). The chance of at most 45 opens is exactly 0.2332. The normal with the correction gives 0.2312; without it, 0.2071. The half makes the approximation more than ten times as accurate here.
| n | k | Exact | Normal, corrected | Normal, not corrected | Error, corrected |
|---|---|---|---|---|---|
| 5 | 1 | 0.5282 | 0.5 | 0.3128 | 0.0282 |
| 10 | 2 | 0.3828 | 0.365 | 0.2451 | 0.0177 |
| 20 | 5 | 0.4164 | 0.4036 | 0.3128 | 0.0127 |
| 50 | 12 | 0.2229 | 0.2202 | 0.1773 | 0.0027 |
| 100 | 25 | 0.1631 | 0.1631 | 0.1376 | 0.0001 |
| 200 | 50 | 0.0695 | 0.0713 | 0.0614 | 0.0018 |
When the approximation fails
The binomial is symmetric only at \(p = 0.5\); with \(p\) near 0 or 1 it is skewed, and the symmetric normal fits it badly unless \(n\) is large. A common rule of thumb asks for \(np \ge 5\) and \(n(1 - p) \ge 5\). For 20 LED bulbs with a fault rate of 0.05, \(np = 1\): the chance of no faulty bulb is exactly 0.3585, and the corrected normal gives 0.304, wrong in the second decimal. With software at hand, compute the binomial exactly; use the approximation to understand the shape.
In code
| What it computes | Python (scipy.stats) | Excel |
|---|---|---|
| A z-score | (51 - 35) / 8 |
=STANDARDIZE(51, 35, 8) |
| P(Z > 2.4) | norm.sf(2.4) |
=1-NORM.S.DIST(2.4, TRUE) |
| P(|Z| ≤ 2) | norm.cdf(2) - norm.cdf(-2) |
=NORM.S.DIST(2, TRUE)-NORM.S.DIST(-2, TRUE) |
| The 90th percentile of deliveries | norm.ppf(0.9, 35, 8) |
=NORM.INV(0.9, 35, 8) |
| At most 45 opens, exactly | binom.cdf(45, 200, 0.25) |
=BINOM.DIST(45, 200, 0.25, TRUE) |
| The same, by the corrected normal | norm.cdf(45.5, 50, np.sqrt(200*0.25*0.75)) |
=NORM.DIST(45.5, 50, SQRT(200*0.25*0.75), TRUE) |
Quiz
Three questions on the chapter. Your best score is kept in this browser.