The Normal Distribution
The bell curve.
Heights, measurement errors, and test scores often make the same shape. A smooth, symmetric hill, highest in the middle. It's called the normal distribution, or the bell curve, and it's everywhere in statistics.

- Heights, errors, scores
- A symmetric hill
- The bell curve
Two settings
A normal distribution has two settings. The mean, mu, sets where the centre is. The standard deviation, sigma, sets how wide it is. Norm dot PDF gives the height of the curve. Run it. Changing the mean slides the bell. A bigger sigma makes it wider and flatter.
import numpy as np
import matplotlib.pyplot as plt
from scipy.stats import norm
x = np.linspace(-8, 12, 400)
for mu, sigma in [(0, 1), (0, 2), (4, 1)]:
plt.plot(x, norm.pdf(x, mu, sigma), label=f"mu={mu}, sigma={sigma}")
plt.title("Normal distributions"); plt.legend()
plt.savefig("normal.png")Why it is everywhere
When many small, independent effects add together, the result tends to be normal. Your height comes from many genes, and many things about how you grew up. Measurement error comes from many tiny disturbances. We'll see why this happens later, with the central limit theorem.
| key | value |
|---|---|
| mu | the centre |
| sigma | the width |
| Symmetric | mean = median = mode |
| Why | many small effects add up |
Summary
The normal distribution is the bell curve, set by its mean and standard deviation. Next, a handy rule for reading it.
Key takeaways- norm.pdf(x, mu, sigma)
- mu moves it
- sigma widens it