STATHARBOR ANALYTICS · INTRODUCTION TO STATISTICS · CHAPTER 6
The Normal Distribution
The normal distribution is the most important continuous distribution in statistics. Many natural phenomena are approximately normally distributed, and the central limit theorem shows that sample means tend towards a normal distribution even when the underlying data are not normally distributed.
Definition and Properties
A random variable has a Normal() distribution if its density is $$f(x) = \frac{1}{\sigma \sqrt{2\pi}} \exp\Bigl(-\frac{(x-\mu)^2}{2\sigma^2}\Bigr), \quad -\infty < x < \infty.$$
Key properties:
The mean is and the variance is .
The distribution is symmetric about .
The bell-shaped curve decreases rapidly as increases.
Approximately 68% of the distribution lies within one standard deviation of the mean, 95% within two and 99.7% within three (the empirical rule).
Standardisation
Any Normal() variable can be converted to a Standard Normal (mean 0, variance 1) via the transformation . If then where is the cumulative distribution function of the standard normal. Tables of values or software functions (e.g. ‘pnorm‘ in R, ‘scipy.stats.norm.cdf‘ in Python) provide probabilities.
Using the Normal Distribution
Probability Calculations
Consider IQ scores, which are often modelled as Normal(100, 15). What proportion of individuals have IQ above 130? Standardising: . From a table, . Thus .
R code for the probability:
pnorm(130, mean=100, sd=15, lower.tail=FALSE)
Python code using SciPy:
from scipy.stats import norm
prob_above_130 = norm.sf(130, loc=100, scale=15) # sf = 1 - cdf
Quantiles
The 95th percentile of a Normal() distribution is , where is the 95th percentile of the standard normal (). In R, ‘qnorm(0.95, mean=, sd=)‘ returns this value.
Normal Approximation to the Binomial
When is large and is not too close to 0 or 1, the Binomial() distribution can be approximated by a Normal distribution with mean and variance . A continuity correction () improves accuracy for discrete counts.
Worked example
Approximating a Binomial Distribution.
Suppose . We want . The exact probability can be computed, but the normal approximation gives insight.
from scipy.stats import binom, norm
n, p = 50, 0.6
k = 30
exact_prob = binom.cdf(k, n, p)
# Normal approximation with continuity correction
mu = n * p
sigma = (n * p * (1 - p))**0.5
z = (k + 0.5 - mu) / sigma
approx_prob = norm.cdf(z)
print(exact_prob, approx_prob)
The two probabilities are close: the approximation is often adequate for quick calculations when is large (>5).
Exercises
Practice
If , compute exactly using software. Standardise the problem and compute the probability manually using values.
The height of 10-year-old boys is approximately Normal with mean 140 cm and standard deviation 8 cm. What fraction of boys are taller than 155 cm? Use R, Python or Julia to compute the answer.
Show that if then for constants and . Verify this by simulation.
The sample proportion from a binomial sample of size and probability has mean and variance . Use the normal approximation to construct a 95% confidence interval for when and . Compare to an exact binomial confidence interval.
References
Johnson NL, Kotz S, Balakrishnan N. Continuous Univariate Distributions, Volume 1. 2nd ed. Wiley; 1995.
Wilks SS. Mathematical Statistics. John Wiley; 1962.
Feller W. An Introduction to Probability Theory and Its Applications. Vol. 2. Wiley; 1971.