Probability intuition in one minute
If we only sample a few people, how can we estimate everyone’s average?
A confidence interval gives us a reasonable estimate range for an unknown population average, using data from a sample.
01 · WHY WE NEED A RANGE
A sample average is only one estimate.
Imagine a school with 10,000 students. We randomly measure only some of them. A different sample gives a different average height, so it is more honest to report a reasonable range than to claim the sample average is the exact school average.
PLAIN-LANGUAGE CALCULATION95% estimate range = sample average ± margin of errorMargin of error = confidence multiplier × sample spread ÷ square root of number sampled
The 95% level chooses the confidence multiplier. A 90% range uses a smaller multiplier and is narrower; a 99% range uses a larger multiplier and is wider.
Show the complete derivation
95% CI = sample average ±
Let X1, …, Xn be independent observations from a normal population with unknown mean μ and unknown standard deviation σ. Define:
- Start with the sampling distribution of the mean.
For a normal population, standardizing the sample mean with the unknown population standard deviation gives
Z = (x̄ − μ) / (σ / √n) ∼ N(0, 1). - Account for estimating the unknown spread.
The sample variance satisfies
U = (n − 1)S2 / σ2 ∼ χ2n−1,and, for normal data, Z and U are independent. The n − 1 appears because estimating x̄ uses one degree of freedom.
- Combine those two results.
Dividing the standard normal variable by the square root of an independent chi-square variable divided by its degrees of freedom produces a Student t variable:
T = Z / √(U / (n − 1))= (x̄ − μ) / (S / √n) ∼ tn−1. - Keep the middle 95% of that t distribution.
Let α = 0.05 and let t* = t1−α/2,n−1 = t0.975,n−1. By the definition of this critical value,
P(−t* ≤ T ≤ t*) = 1 − α = 0.95.The 0.975 quantile leaves 2.5% in the upper tail; symmetry leaves another 2.5% in the lower tail.
- Substitute T and isolate μ.P(−t* ≤ (x̄ − μ)/(S/√n) ≤ t*) = 0.95P(−t*S/√n ≤ x̄ − μ ≤ t*S/√n) = 0.95P(x̄ − t*S/√n ≤ μ ≤ x̄ + t*S/√n) = 0.95.
Before sampling, the random endpoints cover the fixed μ with probability 0.95. After the data are observed, both endpoints and μ are fixed: this particular interval either covers μ or it does not. The 95% describes the method’s long-run coverage, not a probability assigned to this one finished interval.
When is this exact? The derivation is exact for independent observations from a normal population. For non-normal populations, the same interval is commonly used as a large-sample approximation when the sampling design is valid and the mean’s sampling distribution is close to normal.
02 · TRY IT YOURSELF
What changes when we sample a different group?
Change how many students you sample, then draw again. The dot is this sample’s average height. The line is a 95% one-sample t interval built from that sample’s average and standard deviation.
03 · IN THE REAL WORLD
How much could a new treatment reduce recovery time?
Researchers cannot test every future patient. They observe a sample, so they report both an average reduction of 2.4 days and an estimate range.
This does not mean the treatment always saves exactly 2.4 days. Based on this sample, the true average effect may plausibly be between about 1.2 and 3.6 fewer days. The range shows what we still do not know.
04 · COMMON TRAPS
Three easy mistakes to avoid
“The sample average is the true average.”
The sample average changes with the people selected. It is our best current estimate, not a certain answer.
“The range contains 95% of students.”
The range estimates where the school’s average height is. It does not describe where individual students’ heights fall.
“95% means this one range has a 95% chance of being correct.”
95% is the long-run hit rate of the method: across repeated samples, about 95% of the ranges cover the fixed true average.
05 · CHECK YOUR UNDERSTANDING
Can you read the range correctly?
Choose an answer and you’ll get feedback immediately.
Was this clearer than a text-only explanation?
This first MVP keeps feedback anonymous and only shows your selection on this page.
ONE THING TO REMEMBER