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.

About 1 minute

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

Sample averageThe average height in the group you measured.
±Go the same distance below and above the sample average.
Confidence multiplierA t value chosen from the confidence level and sample size.
Sample spreadSample SD: how varied the measured heights are.
Number sampledHow many students you measured. More students usually reduce the margin.

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 ±

Assumptions and notation

Let X1, …, Xn be independent observations from a normal population with unknown mean μ and unknown standard deviation σ. Define:

x̄ = (1 / n) ΣXi
S2 = [1 / (n − 1)] Σ(Xi − x̄)2
  1. 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).
  2. 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.

  3. 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.
  4. 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.

  5. 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.
After observing the sample
95% CI for μ = x̄ ± t0.975,n−1 · S/√n

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.

SIMULATED SCHOOL POPULATION
True average height is fixed at 172 cm
true average: 172
EACH ROW IS A NEW RANDOM SAMPLEDraw a sample to begin
true average
Your estimate ranges will appear here
162165168172175178182 cm

03 · IN THE REAL WORLD

Real application · Medical research

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.

ESTIMATED EFFECT2.4 days fasterEstimate range: 1.2–3.6 days faster

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

01

“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.

02

“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.

03

“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.

1What does the horizontal range represent?
2What usually happens to the range when the sample size increases?

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

A confidence interval is an estimate range for an unknown population average, built from one sample. More data usually makes that range narrower.