liveBook · Manning

68–95–99 rule

As explained in Statistics Every Programmer Needs

The 68–95–99 rule states that approximately 68%, 95%, and 99.7% of normally distributed observations lie within one, two, and three standard deviations of the mean, respectively.

The 68–95–99 rule states that approximately 68%, 95%, and 99.7% of normally distributed observations fall within one, two, and three standard deviations of the mean. It provides a quick way to assess variation, estimate extreme-value likelihood, and define reasonable expectations for normal behavior. section 3.1.1

Use the rule to:

  • Assess whether observed variation is consistent with a normal distribution. section 3.1.1
  • Estimate how likely an outcome is to be unusually far from the mean. section 3.1.1
  • Set practical expectations around normal variation. section 3.1.1

Testing the rule with NumPy

Generate 10,000 samples from a standard normal distribution, count values satisfying |x − mean| < k·standard deviation, and divide each count by 100. One run produced 66.89%, 95.13%, and 99.69% within one, two, and three standard deviations; another produced 68.3%, 95.45%, and 99.75%.

How Statistics Every Programmer Needs covers it

How deep it goes
Defines the three coverage levels and validates them with repeated NumPy simulations, without developing a mathematical proof.
Examples
Demonstrates simulated standard-normal samples, absolute-distance thresholds, observed percentages, and distribution plots with changing standard deviations.
What you can do after
Apply it via NumPy to estimate how many normally distributed observations fall within selected standard-deviation ranges.
How it connects
Connects normal distribution, mean, standard deviation, standard normal distribution, probability density function, and z-score.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Statistics Every Programmer Needs. The section links point to the parts of the book it draws on.