Normal Distributions and the Empirical Rule
From Normal Distributions to Monte Carlo Simulation
Many statistical methods depend on understanding how values are distributed, how sample averages behave, and how uncertainty can be measured. These ideas connect probability curves, the Central Limit Theorem, confidence intervals, and even ways of estimating quantities such as π.
Normal distributions and the Empirical Rule
A normal distribution, also called a Gaussian distribution, is a symmetric, bell-shaped distribution. Its center is determined by its mean, commonly written as μ, and its spread is described by its standard deviation, commonly written as σ. Values near the mean are more common than values far from it.
An important use of the normal distribution is the Empirical Rule. For a normal distribution, approximately:
- 68% of values lie within 1 standard deviation of the mean.
- 95% lie within about 1.96 standard deviations.
- 99.7% lie within 3 standard deviations.
The value 2 is often used as a convenient approximation to 1.96, so “within two standard deviations” means roughly 95% of the values. The rule is useful for estimating how much of a distribution lies in a particular range—but it relies on assumptions. In the setting of estimation errors, the mean error should be zero, and the errors should be approximately normally distributed.
Generating and plotting normal values
A program can generate random values from a Gaussian distribution. In Python, random.gauss(mu, sigma) produces a value drawn from a normal distribution with mean mu and standard deviation sigma. For example, random.gauss(0, 100) generates values centered around 0, with a spread described by a standard deviation of 100.
A histogram of generated values gives a visual approximation of the distribution. Because the program generates only a finite number of values, the histogram will usually look jagged rather than perfectly smooth. That irregularity is expected: a finite random sample does not reproduce the ideal curve exactly.
Histogram weights can change what the vertical axis represents. If each of N generated values is assigned a weight of N1, then a bin’s height reflects the fraction of values in that bin rather than the raw count. In this way, the histogram is easier to interpret as relative frequency.
A normal curve describes an ideal distribution; a histogram from random samples is only an approximation to it.
Think About It: Why might two histograms generated from the same normal distribution have different shapes, even if both use the same number of samples?
Probability density functions
A probability density function, or PDF, describes how probability is distributed across possible values of a continuous random variable. The height of a PDF at a particular value is not itself the probability that the variable equals that value. For a continuous variable, the probability of landing on exactly one specified point is zero.
Instead, probability comes from the area under the curve across an interval. If X is a continuous random variable with PDF f(x), then the probability that X falls between a and b is
P(a≤X≤b)=∫abf(x)dx.This explains why a PDF’s vertical values are called densities, not probabilities. A density can even be greater than 1; what matters is that the area over the full range of possible values is 1.
For a normal distribution with mean μ and standard deviation σ, the PDF is
f(x)=σ2π1exp(−2σ2(x−μ)2).The standard normal distribution is the special case with μ=0 and σ=1. Its bell-shaped curve approaches zero far out in either direction. Plotting many closely spaced points from the formula makes the curve appear smooth, even though a computer plot connects individual points with short line segments.
The PDF is also connected to the cumulative distribution function (CDF), which gives the probability that a value is at most x. The PDF is the derivative of the CDF: it describes how quickly cumulative probability is increasing at each point. Integrating the PDF over a range recovers the probability accumulated across that range.
Numerical integration
Some integrals do not have an easy symbolic solution, so software estimates them numerically. A numerical integration method divides the problem into manageable pieces and approximates the total area. The result is an approximation, not an exact analytical answer, and an integration routine can also report an estimate of its numerical error.
In SciPy, integrate.quad can take:
- The function to integrate.
- The lower integration limit.
- The upper integration limit.
- Optionally, a tuple of fixed values for the function’s other arguments.
For example, when integrating a normal PDF over values of x, the limits might be μ−kσ and μ+kσ. The values of μ and σ are supplied separately as fixed arguments. The routine returns an estimated integral and an estimate of the error in that numerical result.
This makes it possible to check how much probability lies within a chosen number of standard deviations. Repeating the calculation for different values of μ and σ illustrates that the normal distribution’s proportions do not depend on its particular center or scale.
Think About It: If the height of a PDF is not a probability, what feature of the curve gives the probability of falling in an interval?
Why normal distributions matter—and why not everything is normal
Normal distributions appear in many real-world measurements and scores. Examples include test scores, changes in oil prices, and human heights. Their frequent appearance makes the normal model useful, but not every distribution is normal.
A roulette wheel provides a clear contrast. If its pockets are equally likely, the result of a single spin has a uniform distribution: every pocket has the same probability. A histogram of many individual spins would therefore not have a bell shape.
The return from a single bet is also not normally distributed. A bet may lose its stake or produce a win, with few or no possible outcomes between those results. The distribution is concentrated around those possible outcomes rather than spread smoothly in a bell shape.
The key changes when the quantity of interest is the average across many trials, rather than the outcome of one trial. A single spin can have a very uneven distribution, while the average return from many spins can have a distribution that is approximately normal.
The Central Limit Theorem
The Central Limit Theorem explains why averages can behave normally even when the original data do not. A population is the full set of values being studied. A sample is a subset of that population, and a sample mean is the average of the values in one sample.
If samples are sufficiently large, the means of many such samples tend to form an approximately normal distribution. This distribution of sample means is called the sampling distribution of the mean. The theorem says that:
- The average of the sample means is close to the population mean.
- The variance of the sample means is close to the population variance divided by the sample size.
If the population standard deviation is σ and each sample contains n observations, this means the standard deviation of the sample means is approximately
nσ.Thus, larger samples tend to produce averages that vary less from sample to sample.
A continuous-die example
Imagine a “die” that produces a random real number between 0 and 5, with all values in that interval equally likely. A single roll has a uniform distribution, not a normal one. Its mean is 2.5, and its standard deviation is approximately 1.44.
Now consider taking samples of 50 rolls and calculating the mean for each sample. The individual rolls remain uniformly distributed, but the sample means cluster around 2.5 and vary less than individual rolls. With enough samples, the histogram of those means takes on a shape close to a normal curve.
It may not look perfectly normal because only a finite number of samples were generated. The important change is that the distribution of the averages is approximately bell-shaped, even though the distribution of the original values is flat.
Applying the theorem to roulette
The same idea applies to repeated roulette bets. One spin’s return is not normally distributed, but the average return across many spins can be approximately normal when the number of spins is sufficiently large. The shape may still differ from a perfect normal curve, especially near its limits, but the approximation can be useful where most outcomes lie.
This is why the Empirical Rule can help estimate uncertainty in averages even when the original outcomes are not normal. The theorem concerns the distribution of sample means—not necessarily the distribution of individual observations.
The phrase “sufficiently large” does not specify one sample size that works in every situation. How quickly the approximation becomes useful depends on the distribution and the problem. The central idea is that larger samples generally make the distribution of averages more nearly normal.
The Central Limit Theorem connects non-normal individual outcomes to approximately normal sample averages.
Think About It: Why can the average of many roulette outcomes be approximately normal even though the outcome of one spin is not?
Monte Carlo simulation: using randomness to estimate quantities
Randomness can help estimate values that are not themselves random. A Monte Carlo simulation uses repeated random trials to approximate a mathematical quantity. The estimate may fluctuate from run to run, so it is important to track not only the answer but also how uncertain that answer is.
Estimating π with random points
The constant π is the ratio of a circle’s circumference to its diameter, and the area of a circle of radius r is
Acircle=πr2.Historical methods for estimating π include an Egyptian estimate of about 3.16 and an estimate implied by a description of a circular construction that corresponds to 3. Archimedes used a polygon with many sides to bound π between 71223 and 722.
A random simulation can estimate π by comparing areas. Consider a square with side length 2 and a circle of radius 1 inscribed inside it. The square has area 4, and the circle has area π. Therefore, the fraction of the square’s area covered by the circle is
4π.If points are placed uniformly at random in the square, the fraction that land inside the circle should approach the same area ratio. For a point with coordinates (x,y), the point is inside the circle when
x2+y2≤1.If f is the fraction of randomly generated points inside the circle, then an estimate of π is
π=4f.The estimate becomes more reliable as more points are sampled, but it does not necessarily improve with every added point. Random variation can make one estimate closer to π and the next estimate farther away.
Precision, confidence, and model accuracy
Repeated simulation runs produce a collection of estimates. Their average gives a combined estimate, while their variability indicates how much the estimates fluctuate. As the number of points increases, the uncertainty in the estimate generally shrinks.
A confidence interval expresses uncertainty using a range around an estimate. Under an appropriate normal approximation, a range of roughly 1.96 standard errors on either side of an estimate corresponds to a 95% confidence level. In repeated applications of the same procedure, intervals constructed this way are expected to contain the true value about 95% of the time.
That interpretation is different from saying that there is a 95% probability that a fixed value such as π lies inside one particular computed interval. The simulation can describe how estimates from the procedure vary; it cannot make the fixed value of π random.
There is another important limitation: a narrow interval does not prove that the simulation is correct. Suppose the formula for the estimate accidentally uses 2f instead of 4f. Repeated runs could still produce very consistent estimates and narrow confidence intervals—but the estimates would be systematically wrong.
This distinction is between precision and accuracy. Precision concerns how tightly repeated estimates cluster. Accuracy concerns how close an estimate is to the correct value. Statistical uncertainty measures cannot detect every mistake in the model or the code, so independent checks and basic sanity checks remain essential.
Using random sampling to estimate areas and integrals
The same area-ratio idea applies beyond circles. Suppose a region R lies inside a larger region E whose area is easy to calculate. If random points are sampled uniformly across E, the fraction f that fall inside R estimates the fraction of E occupied by R. The area of R can then be estimated by
AR≈fAE.This method can also estimate areas associated with curves. For example, random points can be sampled in a rectangle surrounding a graph, and the fraction that falls in the region under the curve can estimate that region’s area. Since integration is the calculation of area in this setting, random sampling provides a way to approximate an integral when a direct mathematical solution is difficult.
The general strategy is to choose a simple enclosing region, sample random points within it, count which points fall in the target region, and use the observed fraction to estimate the target’s area. As with the estimate of π, repeated sampling usually improves precision, but it does not automatically guarantee that the model or implementation is correct.
Comprehensive review
A normal distribution is a bell-shaped model described by its mean and standard deviation. Its PDF represents density, so probabilities come from areas under the curve rather than from the height at one point. The Empirical Rule summarizes how much of a normal distribution lies within selected distances of its mean.
The Central Limit Theorem explains why averages from sufficiently large samples tend to have an approximately normal distribution—even when the original observations are not normal. This makes normal-based reasoning useful for studying averages and their uncertainty.
Monte Carlo simulation applies random sampling to estimate quantities such as areas, integrals, and π. More samples generally reduce the uncertainty of an estimate, but a precise result is not necessarily an accurate one: the method, assumptions, and implementation still need to be checked.

Ask anything
We've read this whole study set, so questions about it get the best answers.