FR EN

INF-3: Confidence Intervals for a Population Mean (Small Sample)

Module 4 · Statistical Inference

Section 1: Introduction

You’ve just mastered INF-2, where you learned to build confidence intervals using the z-distribution — as long as n ≥ 30 or σ was known. But what happens when you’re a medical researcher running a pilot study with only 10 patients? Or a food scientist measuring a new ingredient in just 8 batches? The sample is too small for the CLT guarantee, and σ is unknown. Can you still build a reliable confidence interval?

In 1908, a statistician named William Sealy Gosset — writing under the pseudonym “Student” to protect his employer’s trade secrets — solved exactly this problem. He derived a new distribution that accounts for the extra uncertainty introduced by estimating σ from a small sample. We call it the t-distribution, and it is the tool that makes small-sample inference possible.

This lesson builds directly on INF-2. The CI formula keeps the same shape; we replace z* with t* and σ with s. The key new skill is knowing when to use t instead of z — and understanding why.

After this lesson, you will be able to:

  • Explain why the z-distribution is inadequate when σ is unknown and n is small
  • Construct a confidence interval for μ using the t-distribution:
  • Determine the correct degrees of freedom and look up t* from a t-table
  • Apply the t vs. z decision rule: which distribution to use and when
  • Interpret a t-interval correctly using the same frequentist logic from INF-2

Section 2: Prerequisites

Small-sample inference is a refinement of the large-sample methods you mastered in INF-2.

  • From INF-2: Confidence Interval Structure. Point estimate () ± Margin of Error ().
  • From INF-2: Standard Error (SE). when is unknown.
  • From INF-1: Normality Condition. For small samples (), the population must be approximately normal for our probability models to work.
  • Z-Values vs. T-Values: Both measure distance from the mean in standard errors, but t-values are larger to account for the extra uncertainty of small samples.

Success Factor:

  • The most common error in this lesson is using instead of when looking up values in the t-table. If your sample size is 15, your degrees of freedom are 14. Always subtract one.

Retrieval Warm-up — from earlier lessons

A random sample of apples from an orchard has a mean weight of g. The population standard deviation is known: g. What is the standard error of the sample mean?

From INF-2, a 95% confidence interval for a population mean uses the formula . A 99% CI from the same sample would be:

Section 3: Core Concepts

C1 — Why the -Distribution Falls Short

In INF-2, when was unknown and , we substituted for in the standard error formula. This worked because for large samples, reliably approximates — the approximation error is small. But for small samples (), can vary substantially from . Using in a -formula pretends we know exactly, which we don’t — and the -distribution has no way to account for that extra source of uncertainty.

The result: -intervals computed with small samples are too narrow. They appear more precise than they really are. The actual coverage rate — the fraction of such intervals that truly capture — falls below the stated confidence level. A “95% CI” might only capture less than 95% of the time — the actual shortfall depends on and can be substantial for very small samples.

This is not a minor correction. For , the difference between and the correct (, 95%) is large enough to make the -interval meaningfully misleading. The -distribution was invented precisely to fix this.

Figure 2: Each bar is a confidence interval from a different random sample of size n drawn from a normal population with μ = 0. Green bars capture μ; red dashed bars miss it. Switch the method from t to z with a small n to see the coverage rate fall below the nominal level — the defining flaw that the t-distribution corrects.

Try this: set n = 6, confidence 95%, method z. Watch the coverage rate — it will settle noticeably below 95%, because z-intervals are too narrow for small samples with unknown σ. Now switch to t: the rate climbs back to ~95%. Click New Simulation several times to see the sampling variability in the coverage rate itself.


C2 — The -Distribution: Shape and Properties

The -distribution (also called Student’s ) is a family of bell-shaped, symmetric distributions — one for each value of its parameter, the degrees of freedom (). Like the standard normal, it is centered at 0. Unlike the standard normal, it has heavier tails: more probability mass in the extremes.

The t-Distribution

The t-distribution with degrees of freedom is a symmetric, bell-shaped distribution centered at 0. Compared to the standard normal :

  • It has heavier tails — more probability in the extremes
  • Its peak is slightly lower than the normal
  • As , the t-distribution converges to

In practice: use the t-distribution whenever is unknown and the population is approximately normal.

The heavier tails reflect our extra uncertainty. When is small and we’re estimating with , extreme outcomes are more likely than the normal distribution would predict. The -distribution builds that in automatically.

Figure 1: t-distribution vs. standard normal. Adjust the df slider to watch the t-distribution converge toward the normal. Toggle critical values to see how t* is always larger than z* for the same confidence level — and by how much.

Before reading further, use the slider to explore — then check your observations against the questions below.

  1. Set . Record the 95% critical value shown above the curves.
  2. Increase to , then , then .
  3. At which does the gap between and first drop below 0.10?

You will revisit this question in Challenge 2 — record your answer before continuing. As grows, the heavier tails of the -distribution lighten toward the normal, which is why the -approximation becomes acceptable for large samples.

Quick Check — Small-Sample Critical Values

For a 95% confidence interval with and unknown , how does the correct compare with ?


C3 — Degrees of Freedom: Why ?

The -distribution is indexed by degrees of freedom: . But why and not ?

Here’s the intuition. To compute (the sample standard deviation), we first compute the sample mean and then measure how far each observation deviates from it. But once we know and of the data values, the last value is completely determined — it’s not free to vary. So there are only truly independent pieces of information about the spread. We’ve “used up” one degree of freedom by estimating with .

Figure: Five data points with x̄ = 10 (already computed). Drag any blue point — the orange point moves automatically to keep the mean at 10. Only 4 of the 5 values are free; the last is determined. That is why df = n − 1 = 4.

Degrees of Freedom

For a one-sample t-interval, the degrees of freedom are:

where n is the sample size. This is the row you look up in the t-table.

The single most common arithmetic error in this lesson is using instead of . For : , not 12. Always subtract 1 before looking up . Getting this wrong gives you the wrong critical value and therefore the wrong CI.

Quick Check — Degrees of Freedom

A researcher uses observations to construct a t-interval. How many degrees of freedom does she have?


C4–C5 — Reading the -Table

The critical value depends on two things: the degrees of freedom () and the confidence level. The table below gives critical values for a wide range of and confidence levels. As increases, decreases toward the value — you can see the convergence in the bottom rows (the row matches the standard normal ).

Table de la loi t de Student

Valeurs critiques (t*) pour les degrés de liberté (ddl) et l'aire de queue donnés.

ddl Confiance
80%90%95%98%99%99.9%
0.10 (1) 0.20 (2)
0.05 (1) 0.10 (2)
0.025 (1) 0.05 (2)
0.01 (1) 0.02 (2)
0.005 (1) 0.01 (2)
0.0005 (1) 0.001 (2)
1 3.0786.31412.70631.82163.657636.619
2 1.8862.9204.3036.9659.92531.599
3 1.6382.3533.1824.5415.84112.924
4 1.5332.1322.7763.7474.6048.610
5 1.4762.0152.5713.3654.0326.869
6 1.4401.9432.4473.1433.7075.959
7 1.4151.8952.3652.9983.4995.408
8 1.3971.8602.3062.8963.3555.041
9 1.3831.8332.2622.8213.2504.781
10 1.3721.8122.2282.7643.1694.587
11 1.3631.7962.2012.7183.1064.437
12 1.3561.7822.1792.6813.0554.318
13 1.3501.7712.1602.6503.0124.221
14 1.3451.7612.1452.6242.9774.140
15 1.3411.7532.1312.6022.9474.073
16 1.3371.7462.1202.5832.9214.015
17 1.3331.7402.1102.5672.8983.965
18 1.3301.7342.1012.5522.8783.922
19 1.3281.7292.0932.5392.8613.883
20 1.3251.7252.0862.5282.8453.850
21 1.3231.7212.0802.5182.8313.819
22 1.3211.7172.0742.5082.8193.792
23 1.3191.7142.0692.5002.8073.768
24 1.3181.7112.0642.4922.7973.745
25 1.3161.7082.0602.4852.7873.725
26 1.3151.7062.0562.4792.7793.707
27 1.3141.7032.0522.4732.7713.690
28 1.3131.7012.0482.4672.7633.674
29 1.3111.6992.0452.4622.7563.659
30 1.3101.6972.0422.4572.7503.646
40 1.3031.6842.0212.4232.7043.551
50 1.2991.6762.0092.4032.6783.496
60 1.2961.6712.0002.3902.6603.460
80 1.2921.6641.9902.3742.6393.416
100 1.2901.6601.9842.3642.6263.390
1.2821.6461.9622.3302.5813.300

The bottom row () shows the normal critical values — notice that approaches from above as increases. Hover over any cell to highlight its row and column, making it easy to read the correct value.

Now practice the lookup yourself. Set a sample size and a confidence level — the tool derives for you and highlights the matching . Watch the and values side by side: that single subtraction is the step students most often skip.

n = 6 df = n − 1 = 5
Confidence level
Figure 4: Pick a sample size and confidence level. The lookup always goes n → df = n − 1 → confidence column → t* — you read the table at row df, never row n. The highlighted cell and the readout above update together so the off-by-one step stays visible.

Quick Check — Reading the t-Table

A sample of observations has unknown. You are constructing a 95% CI. What is the correct critical value ?


C6 — Confidence Interval Formula

The -interval has the same structure as the -interval from INF-2. The only changes are replacing with and with :

Confidence Interval for μ (Small Sample, σ Unknown)

which gives the interval:

where is the critical value from the -table with and the desired confidence level.

Figure 3: Adjust n and s to watch every piece of the formula update live. Notice that df = n − 1 (not n) controls which row of the t-table you look up, and that t* is always larger than z* — making the t-interval always wider than the z-approximation for the same data.

C7 — When Can You Use the -Interval?

Three conditions must hold:

  1. Random sample — observations must be independent (stated or assumed)
  2. unknown — if were known, use the -interval regardless of
  3. Population approximately normal — required because the CLT guarantee doesn’t apply for small . Check with a histogram or dot plot; for the assumption matters most; for mild departures are acceptable.

What does “approximately normal” look like in practice? When you inspect a histogram or dot plot, look for:

  • Single peak — the data should mound in one place, not two or three
  • Rough symmetry — neither tail should be dramatically longer than the other
  • No extreme outliers — one or two points far beyond the rest can distort the t-interval, especially when is very small

You do not need a perfect bell curve. For , mild skew is generally tolerable. For , even moderate skew is enough to call the normality assumption into question and should be reported explicitly.

When is the t-interval valid? Population shape by sample size.
Shape of population n = 6 n = 12 n = 20
Approximately normal Symmetric, single peak Valid Valid Valid
Moderate skew One tail longer, no outliers Not valid Borderline — report skew Acceptable
Strong skew / outliers Heavy tail or extreme values Not valid Not valid Borderline — report caveat
✓ Valid — t-interval is appropriate ⚠ Borderline — proceed with caution and report limitations ✗ Not valid — t-interval assumptions are not met
Figure 5: When can you trust the t-interval? Normality matters most at very small n. By n = 20, mild departures are generally tolerable; strong skew or outliers require explicit caveats or a different method regardless of n.

Quick Check — Checking the Conditions

A researcher has measurements of reaction time (ms). is unknown. A histogram of the sample looks roughly bell-shaped. Which statement best describes whether a t-interval is valid?


C8 — When to Use vs. : The Practical Decision Rule

C7 was a stop sign — three conditions that must hold before any inference is valid. C8 is the fork in the road — once you’ve confirmed those conditions, which distribution do you reach for?

  • Is known? → Use
  • unknown? → Use — always. The t-distribution is the correct procedure whenever must be estimated from the data.
  • unknown + ? → Use (the -approximation is also acceptable here, since for large , but is the principled choice)
  • unknown + + population clearly non-normal? → Neither method is valid without more information

The rule is simple: if is unknown, use . For large samples (), the -approximation is acceptable — and converge at high degrees of freedom, so the practical difference is small. But is the approximation; is the correct procedure. The distinction matters most when , where the gap between and is large enough to meaningfully affect the interval.

Figure 4: Work through six scenarios. At each step the flowchart lights up the path you have taken — reinforcing the habit of asking "Is σ known?" first, then "Is the population approximately normal?"

C9 — Interpreting the -Interval

The frequentist interpretation from INF-2 applies unchanged:

We are confident that the true population mean lies between and . This means: if we repeated this procedure many times, about of intervals constructed this way would contain the true .

What it does NOT mean: “There is a probability that lies in this interval.” The mean is a fixed constant — it either is or isn’t in your interval.


C10 — Why the -Interval is Wider (and That’s Correct)

For the same data, confidence level, and sample size, the -interval is always wider than the -interval, because for any finite . For example, at 95% confidence with : vs. .

Students sometimes worry that the -interval “must be wrong” because it’s wider than they expected. This is backwards. The -interval is wider because it honestly reflects our uncertainty about . The -interval applied to small samples would be artificially narrow — falsely precise. Wider = more honest when is estimated, not worse.

Section 4: Worked Examples

Example 1 — Computing a t-Interval (Fully Worked)

A physician tests a new pain medication on randomly selected patients. The reduction in pain score (0–10 scale) after treatment yields points and points. The physician does not know the population SD . Construct a 95% confidence interval for the true mean reduction .

Step 1 — Check Conditions:

  • Random sample: ✓ (stated)
  • σ unknown: ✓ → use t-distribution
  • Population approximately normal: assumed ✓ (pain score reductions are typically symmetric)
  • → CLT does not guarantee normality; the normality assumption of the population is required

Step 2 — Find df and t:*

  • From the t-table, for df = 11 and 95% confidence:

Step 3 — Compute SE and Margin of Error:

Step 4 — Build the Interval:

Interpretation: We are 95% confident that the true mean reduction in pain score is between 2.91 and 4.69 points. Notice that this interval does not include 0 — suggesting the medication has a real effect, though this is not a formal hypothesis test.

Note on z vs. t: If we had incorrectly used z* = 1.96, we would get E = 1.96 × 0.404 = 0.792, CI = (3.008, 4.592) — a narrower, but falsely precise interval.


Example 2 — Constructing a 90% t-Interval (Partially Scaffolded)

An environmental scientist collects 8 soil samples near an industrial site and measures lead concentration. The results yield x̄ = 22.5 ppm and s = 4.2 ppm. Construct a 90% CI for the true mean lead concentration. (σ unknown.)

Before seeing the solution: what is df here? Which row of the t-table will you look up? Take a moment to answer before continuing.

Step 1 — Conditions: n = 8 < 30, σ unknown → use t. Assume approximately normal population.

Step 2 — df and t:*

. From t-table: (90%, df = 7).

Step 3 — SE and Margin of Error:

Step 4 — Interval:

Interpretation: We are 90% confident the true mean lead concentration at this site is between 19.69 and 25.31 ppm.


Example 3 — 99% Confidence Interval (Minimally Scaffolded)

A nutritionist measures daily caloric intake for randomly selected college students. She finds calories and calories. is unknown. Construct a 99% CI.

Hint: df = 19. Look up the 99% critical value in the t-table.

Show Solution

. From t-table: (99%, df = 19).

Interpretation: We are 99% confident the true mean daily caloric intake is between 1952 and 2348 calories.


Example 4 — Choosing the Right Distribution (Application Twist)

A quality control engineer measures shaft diameters from n = 25 machined parts: x̄ = 50.3 mm and s = 0.8 mm. σ is unknown. A colleague suggests using z* = 1.96 because “n = 25 is close enough to 30.” Evaluate this claim and construct the correct 95% CI.

The colleague’s reasoning is incorrect. The rule for using z is that σ is known — not that n is “large enough.” Here σ is unknown, so we must use t.

. From t-table: (95%, df = 24).

Correct t-interval:

Incorrect z-interval (for comparison):

The difference is small here (n = 25, close to 30), but the principle is absolute: σ unknown → use t. The error grows as n decreases. For n = 6, df = 5 and t* = 2.571 — a 31% wider margin of error than z* = 1.96.

Section 5: Guided Practice

Work through each problem step by step. The dropdowns give immediate feedback — wrong answers explain what went wrong. The generator problems (GP4) create fresh problems each time you click.

Problem 1 — Degrees of Freedom and Critical Values (C1, C2)

Start with a fully guided procedure. Each numeric step is a cold response, so the feedback can identify the step that needs repair.


Problem 2 — Distribution Selection and CI Interpretation (C3, C4)

For each scenario, choose the defensible procedure and then the correct interpretation.

Scenario: A nutritionist records sodium content for n = 20 randomly selected prepared meals. She does not know σ. She finds mg and mg. Using the correct method, she computes a 95% CI of (1,742, 1,938) mg.

Part (a): Which distribution should be used?

Part (b): Which is the correct interpretation?

Scenario: A factory uses a machine whose fill weight variability has been characterized over thousands of runs: g (known with high precision). Quality control draws n = 15 containers and finds g. A 90% CI is computed as (249.42, 251.38) g.

Part (a): Which distribution should be used?

Part (b): Correct interpretation?

Scenario: A professor surveys n = 45 students about weekly study hours. σ is unknown. She finds hrs and hrs. She computes a 95% CI using the z-distribution: (16.43, 20.17) hrs.

Part (a): Which distribution should be used?

Part (b): Correct interpretation?

Scenario: A pharmacist weighs n = 8 tablets from a new batch. mg, mg. σ unknown. A 90% CI is (494.89, 511.51) mg.

Part (a): Which distribution should be used?

Part (b): Correct interpretation?

Scenario: A historian measures the width of n = 12 Roman coins from a single mint. mm, mm. σ unknown. A 99% CI is (13.74, 17.86) mm.

Part (a): Which distribution should be used?

Part (b): Correct interpretation?


Problem 3 — Comparative Analysis of z vs. t Intervals (C3)

Setup: A researcher measures anxiety scores for n = 16 participants before a public speaking event. Results: , , σ unknown. She considers two approaches for a 95% CI.

z-based interval (treating s as if it were σ, which is incorrect here): SE = 5.8/ = 1.450. Using z* = 1.96: E = 1.96 × 1.450 = 2.842. CIz = (39.758, 45.442).

t-based interval (correct): df = 15. From t-table: t* = 2.131. E = 2.131 × 1.450 = 3.090. CIt = (39.510, 45.690).

(a) Which interval is wider?

(b) Why is the t-interval wider?

(c) Which interval should the researcher report?


Problem 4 — Parameterized Practice: Constructing the t-Interval (C3)

A new problem is generated each time. The t* value is provided — focus on computing the correct margin of error and interval bounds.

Section 6: Independent Practice

Each problem begins with a cold commitment. Numeric work is typed; longer procedures offer steps only after you choose that support.

Problem 1 — Full t-Interval

Problem 2 — Generated: End-to-End t-Interval

Problem 3 — Choose the Distribution, Then Compute

Problem 4 — Find the Error in Confidence Interval Computations

Problem 5 — Lead Contamination Study

Part (a): Construct the t-interval for the lead study.

Part (b): Compare it with a z-interval computed from a known-σ study.

Part (c): After checking your work, explain why the t-interval is the honest choice for the smaller sample.

0 / 1200

Part (d): Suppose the marine biologist had collected water samples instead of (four times as many). Which two quantities in the CI formula would change, and in which direction?

Mixed Review — Retrieval from Earlier Lessons

Section 7: Mastery Check

Question 1a — Feynman: Why t Instead of z?

Question 1b — Feynman: Degrees of Freedom

Question 2 — Iron Content CI

Question 3 — Error Analysis

Question 4 — Mixed CI Selection

Question 5 — Conditions Check

Question 6 — Interpretation

Width Comparison

Section 8: Boss Fight

A city scientist must decide whether a lake-monitoring report supports action. The report may contain an error; decide what method the evidence calls for before you calculate.

0 / 500

Section 9: Challenge Problems

Ready for more? These cold-transfer problems go beyond the lesson objectives.

Challenge 1 — Why df = n − 1

Challenge 2 — How Quickly Does t-star Converge to z-star?

Challenge 3 — Two Studies, One Evidence Question

Section 10: Solutions Reference

Complete, step-by-step solutions for all problems in Sections 5–9 are available on the solutions page. Solutions include worked arithmetic, common mistakes to watch for, and interpretation guidance.

View Full Solutions →

If you’re stuck: Re-read the relevant Core Concept in Section 3, then find the Worked Example that maps to that concept (e.g., Example 1 maps to Concept 1). If you’re unsure whether to use t or z, review the decision rule in C8. The solutions page shows the reasoning behind every step, not just the final answer.

Quick-Reference Formulas

Confidence Interval for (Small Sample / Unknown):

Degrees of Freedom ():

Population standard deviation ()Sample size ()Population shapeDistribution to use
KnownAnyNormal-distribution
KnownAny-distribution ‡
Unknown (use )AnyNormal-distribution
Unknown (use )Any-distribution

† For with unknown , the -approximation is also acceptable because at large degrees of freedom. However, is always the principled choice when is estimated from the data.

‡ The case not shown: known, , non-normal population. The -interval relies on the sampling distribution of being approximately normal — for small from a clearly non-normal population, this holds only if the population itself is normal. If the population is skewed and is small, even known does not rescue the -interval. This edge case is uncommon in practice but worth knowing: always check the normality condition when , regardless of whether is known.

t-Distribution Reference Table

Table de la loi t de Student

Valeurs critiques (t*) pour les degrés de liberté (ddl) et l'aire de queue donnés.

ddl Confiance
80%90%95%98%99%99.9%
0.10 (1) 0.20 (2)
0.05 (1) 0.10 (2)
0.025 (1) 0.05 (2)
0.01 (1) 0.02 (2)
0.005 (1) 0.01 (2)
0.0005 (1) 0.001 (2)
1 3.0786.31412.70631.82163.657636.619
2 1.8862.9204.3036.9659.92531.599
3 1.6382.3533.1824.5415.84112.924
4 1.5332.1322.7763.7474.6048.610
5 1.4762.0152.5713.3654.0326.869
6 1.4401.9432.4473.1433.7075.959
7 1.4151.8952.3652.9983.4995.408
8 1.3971.8602.3062.8963.3555.041
9 1.3831.8332.2622.8213.2504.781
10 1.3721.8122.2282.7643.1694.587
11 1.3631.7962.2012.7183.1064.437
12 1.3561.7822.1792.6813.0554.318
13 1.3501.7712.1602.6503.0124.221
14 1.3451.7612.1452.6242.9774.140
15 1.3411.7532.1312.6022.9474.073
16 1.3371.7462.1202.5832.9214.015
17 1.3331.7402.1102.5672.8983.965
18 1.3301.7342.1012.5522.8783.922
19 1.3281.7292.0932.5392.8613.883
20 1.3251.7252.0862.5282.8453.850
21 1.3231.7212.0802.5182.8313.819
22 1.3211.7172.0742.5082.8193.792
23 1.3191.7142.0692.5002.8073.768
24 1.3181.7112.0642.4922.7973.745
25 1.3161.7082.0602.4852.7873.725
26 1.3151.7062.0562.4792.7793.707
27 1.3141.7032.0522.4732.7713.690
28 1.3131.7012.0482.4672.7633.674
29 1.3111.6992.0452.4622.7563.659
30 1.3101.6972.0422.4572.7503.646
40 1.3031.6842.0212.4232.7043.551
50 1.2991.6762.0092.4032.6783.496
60 1.2961.6712.0002.3902.6603.460
80 1.2921.6641.9902.3742.6393.416
100 1.2901.6601.9842.3642.6263.390
1.2821.6461.9622.3302.5813.300