STATHARBOR ANALYTICS · INTRODUCTION TO STATISTICS · CHAPTER 7
Sampling Distributions and the Central Limit Theorem
Statistical inference relies on understanding how sample statistics behave when we take repeated samples from a population. The distribution of a statistic across repeated samples is called its sampling distribution. This chapter introduces sampling distributions for common statistics and the all-important central limit theorem (CLT).
Sampling Distribution of the Sample Mean
Let be independent and identically distributed random variables with mean and variance . The sample mean is
Properties of :
(unbiased estimator of the population mean).
.
If the are normally distributed, then is exactly normal.
The standard error (SE) of the mean is . In practice, we estimate by the sample standard deviation .
Central Limit Theorem
The CLT states that, for large , the sampling distribution of is approximately normal with mean and variance regardless of the distribution of the . More formally, as ,
The CLT justifies using normal-based confidence intervals and hypothesis tests even when the data are non-normal, provided the sample size is sufficiently large and the distribution is not extremely heavy-tailed.
Sampling Distribution of the Sample Proportion
Let be the number of successes in independent Bernoulli trials with probability . The sample proportion is . Then and . For large , is approximately normal with mean and variance by the CLT.
Simulation: Demonstrating the CLT
Worked example
Simulating the distribution of the sample mean.
Consider a population distributed as an exponential with mean 1. We take samples of size and compute the sample mean. Repeating this many times gives the sampling distribution of the mean.
import numpy as np
import matplotlib.pyplot as plt
np.random.seed(1)
n = 50
reps = 10000
means = []
for _ in range(reps):
sample = np.random.exponential(scale=1.0, size=n)
means.append(np.mean(sample))
plt.hist(means, bins=30, density=True, alpha=0.7)
plt.xlabel('Sample mean')
plt.ylabel('Density')
plt.title('Sampling distribution of the mean (Exponential population)')
plt.show()
The histogram of sample means is approximately normal even though the population distribution is skewed. Increasing the sample size produces a narrower distribution (smaller standard error).
Exercises
Practice
Derive and from first principles for independent identically distributed random variables.
Simulate the sampling distribution of the sample proportion for a Bernoulli() population with and . Plot histograms and compare the shapes. When does the normal approximation become reasonable?
For a fixed sample size , how does the standard error of the mean change if the variance of the population doubles? How does this affect the width of confidence intervals?
Suppose have a heavy-tailed distribution (e.g., Cauchy). Investigate the sampling distribution of for increasing . Does the CLT apply? What happens to the sample median?
References
Wasserman L. All of Statistics: A Concise Course in Statistical Inference. Springer; 2004.
Grimmett G, Stirzaker D. Probability and Random Processes. 3rd ed. Oxford University Press; 2001.
DasGupta A. Asymptotic Theory of Statistics and Probability. Springer; 2008.