Statistical Data Analysis and Inference › Statistical Inference: From Samples to Populations
Quantitative FinanceAll chapters Statistical Data Analysis and Inference › Statistical Inference: From Samples to PopulationsOne section · Sections in this chapter3 / 9 ↓
Reading tools Definitions & inline links
Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.
Article links
Make inline references clickable
Descriptive statistics summarize historical data, but we care about the future. Statistical inference bridges this gap by using sample data to make probabilistic statements about population parameters. This transition from description to inference is perhaps the most important conceptual leap in quantitative analysis.
Sample vs. Population
The distinction between sample and population is fundamental to understanding everything that follows in this section. When we compute a mean return from historical data, we're not calculating the "true" expected return; we're estimating it from limited information.
The population is the distribution of observations defined by a specified stochastic process, asset, sampling frequency, and regime. Historical analysis often treats observations within a chosen horizon as draws from that population, an assumption that must be examined rather than inferred from an infinite time horizon.
A sample is a subset of observations we collect. Historical returns form our sample, typically covering a limited time period.
We observe sample statistics (denoted with bars or hats: , ) and use them to estimate population parameters (denoted with Greek letters: , ). This notational convention is a constant reminder that what we calculate from data (sample statistics) and what we're trying to learn about (population parameters) are different quantities.
The key challenge: sample statistics vary from sample to sample. Under a common population model, different samples can produce different mean estimates because of sampling error. Means from 2010-2020 and 2015-2025 may also differ because the population mean or regime changed; they need not differ. With independent underlying observations of a common finite, positive variance, their shared observations give the two mean estimates positive covariance. Sampling variation is an inherent feature of estimation, not a calculation mistake. Distinguishing it from changes in the generating process matters when interpreting historical windows.
The Standard Error
The standard error quantifies how much a sample statistic varies across different samples. It answers: if I collected a new sample of the same size, how different might my estimate be? For independent observations with a common finite, positive variance , the sample-mean variance is , so:
where:
- : standard error of the sample mean, measuring how much would vary across repeated samples
- : population standard deviation (true variability of individual returns)
- : sample size (number of observations)
- The in the denominator reflects that averaging reduces variability, but with diminishing returns. At fixed positive population volatility, halving the standard error requires four times as much data
This formula captures one of the most important relationships in statistics under that sampling model. In general,
Here measures variability and measures how two observations vary together. The double sum includes individual variances and all ordered off-diagonal covariance terms. Independence makes the off-diagonal terms zero; a common variance then leaves . Dependence can increase or decrease mean uncertainty, depending on the covariance terms.
When the independence and positive common-variance conditions apply, more variable data produces less precise estimates and larger samples produce more precise estimates. The square root relationship means precision improves slowly with additional data.
In practice, we estimate with the sample standard deviation :
For i.i.d. normal observations, replacing with leads to exact Student-t inference for the mean. For nonnormal i.i.d. observations, a t-based procedure may be a useful large-sample approximation under suitable regularity conditions. Large alone does not repair an invalid independence assumption or guarantee a good approximation for very heavy-tailed data.
n = len(log_returns)
standard_error = std_daily / np.sqrt(n)Sample size: 251 Sample mean: 0.000199 Standard error of mean: 0.001219 Ratio (SE/mean): 6.14

Under the independent common-variance model with fixed positive population volatility, the standard error decreases with the square root of the sample size. To halve that standard error, you need four times as much data. In finance, this slow improvement can leave mean return estimates imprecise even with long samples. In this seeded example, the printed ratio shows that the standard error is large relative to the sample mean, so the mean estimate is noisy.
The Central Limit Theorem
The Central Limit Theorem (CLT) is one of the most important results in statistics, and its implications extend beyond textbooks. It provides the theoretical justification for using normal distribution-based methods even when the data themselves are not normally distributed.
If are independent and identically distributed random variables with finite mean and finite, positive variance , then as :
where:
- : sample mean
- : population mean
- : standard error of the mean
- : convergence in distribution (meaning the distribution of the left side approaches the distribution on the right as grows)
- : standard normal distribution (mean 0, variance 1)
The left side of the equation is called the standardized sample mean or z-score of the sample mean. Under the stated i.i.d. and finite-variance conditions, the CLT tells us this standardized value becomes approximately normal as grows.
The sample mean is approximately normally distributed with mean and standard deviation .
This theorem is powerful. Under its i.i.d. and finite-variance conditions, it tells us that the standardized sample mean converges to a normal distribution regardless of the population's shape. A distribution can be skewed, bimodal, or heavy-tailed and still satisfy the theorem, but infinite variance or material dependence requires different conditions and may produce a different limit.
Averaging and the CLT describe two related but distinct effects. Averaging reduces the variance of the unscaled sample mean, which concentrates it around . Under the stated conditions, repeated convolution together with centering by and scaling by produces the normal limiting shape. Concentration by itself does not imply a bell curve.
Even if individual observations are not normally distributed, averages may be approximately normal when the sampling conditions and sample size make the CLT approximation adequate. Financial dependence, changing volatility, and very heavy tails can slow or invalidate that approximation, so normal-based inference for returns needs diagnostics or robust alternatives.
Let's demonstrate the CLT by repeatedly sampling and computing means:
# Generate a non-normal distribution (mixture of normals)
np.random.seed(123)
population = np.concatenate(
[
np.random.normal(-0.02, 0.01, 5000), # Crash regime
np.random.normal(0.001, 0.015, 45000), # Normal regime
]
)
# Sample means for different sample sizes
sample_sizes = [5, 30, 100, 500]
n_simulations = 1000
sample_means = {}
for size in sample_sizes:
means = [
np.mean(np.random.choice(population, size=size, replace=True))
for _ in range(n_simulations)
]
sample_means[size] = means



In this seeded simulation, sample means are already roughly bell-shaped at , despite the nonnormal mixture used as the population. Their spread decreases as sample size grows, and the histogram is visually close to the normal overlay. Finite-simulation histogram fluctuations appear at all four sizes; they do not, by themselves, measure departures from normality. These sample sizes describe this example, not universal CLT thresholds.