THE VR SCHOOL
  • Schools & Districts
    • License the academy
    • Free program for your students
    • Request a demo
  • Catalog
    • AI & Data
    • Cybersecurity & Web
    • Programming
    • Health Science
    • All Guilds
    • All courses
  • Families
  • Accreditation
  • Log In
  • Request a demo
  • Home
  • Courses

RLP Statistics B — Probability Models and Statistical Inference

Curriculum

  • 4 Sections
  • 20 Lessons
  • 10 Weeks
Expand all sectionsCollapse all sections
  • Unit 1: Continuous Distributions and Sampling Distributions
    5
    • 1.1
      Continuous Random Variables and Density Curves
      50 mins
    • 1.2
      The Normal Distribution
      50 mins
    • 1.3
      When Is a Normal Model Appropriate?
      50 mins
    • 1.4
      Sampling Distributions and the Central Limit Theorem
      50 mins
    • 1.5
      Performance Task — Sampling Distribution Simulation Study
      150 mins
  • Unit 2: Estimating with Confidence
    5
    • 2.1
      Estimating a Proportion with Confidence
      50 mins
    • 2.2
      Confidence Intervals for a Mean
      50 mins
    • 2.3
      What Confidence Means, and What It Does Not
      50 mins
    • 2.4
      Comparing Two Groups with Confidence Intervals
      50 mins
    • 2.5
      Performance Task — Estimation Study
      150 mins
  • Unit 3: Testing Claims: Significance Tests
    5
    • 3.1
      The Logic of a Significance Test
      50 mins
    • 3.2
      t-Tests for Means and Paired Data
      50 mins
    • 3.3
      Errors, Power and Significance in the Real World
      50 mins
    • 3.4
      Two-Sample Tests from Experiments and Observational Data
      50 mins
    • 3.5
      Performance Task — Significance Test Investigation
      150 mins
  • Unit 4: Chi-Square, Regression Inference and the Capstone Study
    5
    • 4.1
      Chi-Square Goodness of Fit
      50 mins
    • 4.2
      Chi-Square Tests for Two-Way Tables
      50 mins
    • 4.3
      Inference for the Slope of a Regression Line
      50 mins
    • 4.4
      Choosing the Right Procedure and Writing It Up
      50 mins
    • 4.5
      Capstone — Full Statistical Inference Study
      200 mins

Confidence Intervals for a Mean

Unit 2  ·  Data Investigation Lab  ·  Lesson 7 of 20

Confidence Intervals for a Mean

PS.17RLP-STATSB
Student studies a weather sample, confidence interval, and bell curves with heavier tails.
By the end of this lesson I can…

construct and interpret a t-interval for a population mean, explain why t replaces z when σ is unknown, and determine the sample size needed for a desired margin of error.

Instruction

From z to t. If we knew σ, an interval for μ would be x̄ ± z*σ/√n. We almost never know σ, so we use the sample SD s, and the standard error SE = s/√n. Replacing σ with s adds uncertainty, especially for small samples. In 1908 William Gosset, a statistician at the Guinness brewery who published as “Student”, worked out the exact distribution that results. The t distribution is symmetric and bell-shaped like the standard normal, but with heavier tails. There is one for each degrees of freedom value, df = n − 1, and as df grows it approaches the normal.

df9142999∞ (z)
t* for 95%2.2622.1452.0451.9841.960

The one-sample t-interval is

x̄ ± t*·s/√n,   df = n − 1

Conditions. Random sample or random assignment. 10% when sampling without replacement. Normal/large sample: the population is approximately normal, or n ≥ 30 and the sample shows no strong skew or outliers. For small samples, graph the data and look for skew and outliers.

Worked example. The population is the daily high temperature (TMAX) at St. Louis Lambert International Airport for every day from 2000 to 2024 (NOAA GHCN-Daily, 9,132 days). A random sample of 30 days, listed in date order, gave (°F): 37, 88, 71, 94, 75, 82, 30, 75, 82, 30, 78, 74, 59, 28, 56, 84, 86, 34, 70, 77, 28, 71, 62, 47, 24, 82, 37, 39, 90, 46.

  1. Parameter: μ = the mean daily high at St. Louis over 2000-2024.
  2. Conditions: random sample; 30 < 10% of 9,132; n = 30 and a dot plot of the sample shows a wide spread with no outliers (the values run from 24 to 94°F).
  3. Compute: x̄ = 61.20°F, s = 22.596°F, SE = 22.596/√30 ≈ 4.125. With df = 29, t* = 2.045. Margin = 2.045 × 4.125 ≈ 8.44. Interval: 52.76°F to 69.64°F.
  4. Interpret: We are 95% confident that the mean daily high temperature at St. Louis over 2000-2024 was between 52.8°F and 69.6°F.

Check against the population: μ = 67.59°F, inside the interval, though near its upper end. This sample happened to run cool, by 6.4 degrees. That is sampling variability, and the interval’s width accounts for it. The interval is wide because daily highs in St. Louis swing from the 20s in winter to the 90s in summer (σ = 20.1°F), so thirty days pin the mean down only roughly.

Spreadsheet. =AVERAGE, =STDEV.S, and =T.INV.2T(0.05, 29) for t*, or =CONFIDENCE.T(0.05, s, n) for the margin directly. GeoGebra Probability’s Student t option shows the curve and its critical values.

Sample size for a mean. Solve E = z*σ/√n for n, using z* (not t*, because n is unknown) and a planning value for σ from earlier data:

n = (z*·σ/E)2

To estimate St. Louis’s mean daily high within ±1°F with 95% confidence, using σ ≈ 20.1°F: n = (1.96 × 20.1/1)2 ≈ 1,545.0, so 1,546 days.

Robustness. t-procedures are fairly robust: they work well when the population is not normal, as long as there are no outliers and n is not tiny. They are not resistant: one extreme value moves both x̄ and s. With a small, skewed sample, report that the conditions are doubtful rather than pretending they are met.

📖 Read for this lesson

The reading opens over the lesson; close it to come back to exactly where you were. The checks below draw on it.

  • A Second Station, a Second Sample: Thirty Kansas City Days Against the Whole RecordNOAA NCEI GHCN-Daily, station USW00003947 (Kansas City International Airport), element TMAX, 2000-2024 (N = 9,132 days); 30-day sample drawn for this course with Python’s random module, seed 2026; retrieved 2026-11-10 · about 4 min

    The lesson’s St. Louis sample checked, then the whole exercise repeated on Kansas City: a seeded 30-day sample with dates, the interval by hand, and the population mean from all 9,132 days to check it against.

  • The Tables: t Critical Values, t Tail Areas, Chi-Square and zCritical values and tail areas of the t, chi-square and standard normal distributions, computed for this course and rounded; any published table will agree · about 4 min

    The t table the lesson’s five values came from, with tail areas for bracketing P-values, for this lesson and the rest of the course.

Vocabulary in context

  • t distribution — A symmetric, heavy-tailed distribution used when σ is estimated by s; indexed by degrees of freedom.
  • degrees of freedom — For a one-sample t-procedure, n − 1: the number of deviations free to vary.
  • one-sample t-interval — x̄ ± t*·s/√n, an interval for a population mean when σ is unknown.
  • robust procedure — A method whose results stay approximately correct when its conditions are moderately violated.

Formative check

Work through these before moving on. They are not graded — they tell you whether the standard below has landed yet.

+50 XP

Why does the t-interval use t* = 2.045 (df = 29) instead of z* = 1.96?

Estimating σ with s makes the standardized statistic follow a t distribution, with heavier tails than the normal.
Fill in the blank

x̄ = 61.20, s = 22.60, n = 30: SE ≈ and the 95% interval is 61.20 ± .

Simulation & tools

Compare t and normal critical values

In GeoGebra Probability, choose Student (the t distribution).

  1. Set degrees of freedom to 29 and use the two-sided interval to find the value that leaves 95% in the middle. Record it and compare with 2.045.
  2. Repeat for df = 4, 9 and 99. Record t* for each.
  3. Overlay the normal curve (the checkbox or a second tab with Normal μ = 0, σ = 1). Where do the curves differ most?
  4. Explain in two sentences why a sample of 5 needs a much larger t* than a sample of 100.

Without GeoGebra: use =T.INV.2T(0.05, df) in a spreadsheet for the same df values.

Open GeoGebra ↗  ·  GeoGebra · free for non-commercial use

Draw your own random sample of 30 days of TMAX from any Missouri station’s NOAA daily file (the Kansas City reading shows a finished version). Build a 95% t-interval by hand, confirm it with CONFIDENCE.T or =T.INV.2T, interpret it, and compute the station’s true mean over the whole file. Did your interval capture it? Then find the sample size needed to estimate that mean within ±0.5°F.

0 words
Quick self-check

How confident are you that you can build and interpret a t-interval for a mean, with conditions checked, and plan a sample size?

Not yetVery confident

Practice

Work these on paper or in your notebook, then open Check your answer. Aim for all of Fluency and Application; try at least one Challenge.

Printable version: this unit’s practice workbook (PDF)

Fluency

Build speed and accuracy with the core skill.

  1. A random sample of 15 has mean 66.9 and standard deviation 10.2. Construct a 95% confidence interval for the population mean.
    Check your answer
    Answer: t* ≈ 2.145 (df = 14); margin ≈ 5.65; interval ≈ (61.25, 72.55). We are 95% confident that the population mean is between 61.25 and 72.55.
    Use t, not z, because the population standard deviation is unknown. Conditions: a random sample, less than 10% of the population, and a roughly symmetric sample without strong outliers (or n ≥ 30).
  2. A random sample of 12 has mean 52.7 and standard deviation 14.9. Construct a 90% confidence interval for the population mean.
    Check your answer
    Answer: t* ≈ 1.796 (df = 11); margin ≈ 7.72; interval ≈ (44.98, 60.42). We are 90% confident that the population mean is between 44.98 and 60.42.
    Use t, not z, because the population standard deviation is unknown. Conditions: a random sample, less than 10% of the population, and a roughly symmetric sample without strong outliers (or n ≥ 30).
  3. A random sample of 25 has mean 57.2 and standard deviation 8.9. Construct a 95% confidence interval for the population mean.
    Check your answer
    Answer: t* ≈ 2.064 (df = 24); margin ≈ 3.67; interval ≈ (53.53, 60.87). We are 95% confident that the population mean is between 53.53 and 60.87.
    Use t, not z, because the population standard deviation is unknown. Conditions: a random sample, less than 10% of the population, and a roughly symmetric sample without strong outliers (or n ≥ 30).
  4. A random sample of 12 has mean 72.6 and standard deviation 13.0. Construct a 90% confidence interval for the population mean.
    Check your answer
    Answer: t* ≈ 1.796 (df = 11); margin ≈ 6.74; interval ≈ (65.86, 79.34). We are 90% confident that the population mean is between 65.86 and 79.34.
    Use t, not z, because the population standard deviation is unknown. Conditions: a random sample, less than 10% of the population, and a roughly symmetric sample without strong outliers (or n ≥ 30).
  5. A random sample of 20 has mean 67.6 and standard deviation 7.4. Construct a 90% confidence interval for the population mean.
    Check your answer
    Answer: t* ≈ 1.729 (df = 19); margin ≈ 2.86; interval ≈ (64.74, 70.46). We are 90% confident that the population mean is between 64.74 and 70.46.
    Use t, not z, because the population standard deviation is unknown. Conditions: a random sample, less than 10% of the population, and a roughly symmetric sample without strong outliers (or n ≥ 30).
  6. A random sample of 30 has mean 59.2 and standard deviation 8.5. Construct a 90% confidence interval for the population mean.
    Check your answer
    Answer: t* ≈ 1.699 (df = 29); margin ≈ 2.64; interval ≈ (56.56, 61.84). We are 90% confident that the population mean is between 56.56 and 61.84.
    Use t, not z, because the population standard deviation is unknown. Conditions: a random sample, less than 10% of the population, and a roughly symmetric sample without strong outliers (or n ≥ 30).
  7. Find t* for 95% confidence with n = 10 and with n = 30.
    Check your answer
    Answer: df = 9: 2.262; df = 29: 2.045.
  8. Why use t* rather than z* when σ is unknown?
    Check your answer
    Answer: Estimating σ with s adds uncertainty; the t distribution’s heavier tails widen the interval to account for it.

Application

Use the skill in context. Show your reasoning.

  1. A random sample of 25 days from Springfield’s 2000-2024 daily highs (NOAA) has x̄ = 67.60°F and s = 25.18°F. Construct and interpret a 95% t-interval for the mean daily high.
    Check your answer
    Answer: df = 24, t* ≈ 2.064, SE = 25.18/5 ≈ 5.037; interval ≈ (57.20, 78.00)°F. We are 95% confident that the mean daily high at Springfield over 2000-2024 is in this range.
    The population mean is 67.92°F; the interval captured it.
  2. Springfield daily highs have σ ≈ 18.83°F. How many randomly chosen days would estimate the mean daily high within ±0.5°F with 95% confidence?
    Check your answer
    Answer: n = (1.96 × 18.83/0.5)² ≈ 5446.2, so 5,447 days.
    Use z* when planning; round up.
  3. A random sample of 8 daily rainfall totals at Springfield contains six zeros and two large values. Is a t-interval for the mean appropriate?
    Check your answer
    Answer: No. The sample is tiny and strongly skewed with outliers (rainfall is mostly zeros), so the normal/large-sample condition fails; the interval would be unreliable.

Challenge

Stretch problems. Expect to think before you write.

  1. For a sample of 5 with s = 4, compare the 95% margins of error computed with t* and with z*. By what percent does z* understate the margin?
    Check your answer
    Answer: t* (df 4) ≈ 2.776: margin ≈ 4.97; z*: margin ≈ 3.51. z* understates it by about 29%.

Review

Keep earlier skills sharp.

  1. (Unit 1) Find the SD of x̄ for samples of 49 from a population with σ = 14.
    Check your answer
    Answer: 2.
    σ/√n.
  2. (RLP Statistics A) Name the sampling method: a random sample of days within each month, combined.
    Check your answer
    Answer: Stratified random sampling (strata = months).

Missouri Learning Standards — Mathematics (data and probability) addressed: A2.DS.A.4, A2.DS.A.5, MP.5, MP.6

Extends beyond Missouri Statistics (enrichment): content Missouri places after Statistics

Instructional focus: t-procedures for estimating a population mean and planning sample size

Reading

A Second Station, a Second Sample: Thirty Kansas City Days Against the Whole Record

NOAA NCEI GHCN-Daily, station USW00003947 (Kansas City International Airport), element TMAX, 2000-2024 (N = 9,132 days); 30-day sample drawn for this course with Python’s random module, seed 2026; retrieved 2026-11-10 · Public domain (works of the United States government), with an SLS original sample and computation

Why this reading. The lesson’s open question asks you to draw a 30-day random sample from a NOAA daily file, build a t-interval, and then compute the station’s true mean “over the whole file”. That last step needs the whole file. This reading does the whole exercise on a second station, Kansas City, and prints what the exercise needs: the sample with its dates, and the population parameters computed from all 9,132 days.

First, the lesson’s St. Louis sample, checked

The 30 values in the lesson sum to 1,836, so x̄ = 1,836/30 = 61.20, and the sum of squared deviations is 14,806.8, so s = √(14,806.8/29) = 22.596. Both agree with the lesson. SE = 22.596/√30 = 4.125; with t* = 2.045 (df = 29), the margin is 8.44 and the interval is 52.76 to 69.64°F.

The Kansas City population

NOAA GHCN-Daily, station USW00003947 (Kansas City International Airport), element TMAX, January 1, 2000 to December 31, 2024: N = 9,132 days with a recorded high, none missing. Retrieved 2026-11-10. Parameters: μ = 65.78°F, σ = 20.39°F, minimum -3, maximum 107, 976 days at or above 90°F and 75 at or above 100°F.

TMAX (°F)0–910–1920–2930–3940–4950–5960–6970–7980–8990–99100–109
Days171103117389731,2221,3151,4781,99090175

This is not a normal population. Kansas City has cold winters and hot summers, so the daily highs are spread over a very wide range, with the most days in the 80s and a long tail toward the cold. Keep that in mind: the t-interval’s condition is about the shape of the sample and the size of n, and the claim that t is robust is about to be tested on a population it was not designed for.

The sample

Thirty days drawn without replacement with random.Random(2026).sample(range(9132), 30) from the days in date order, then sorted by date for printing.

#DateTMAX#DateTMAX#DateTMAX
12000-02-1130112010-10-0680212018-11-1333
22000-07-0791122011-04-1378222019-10-1472
32003-06-0473132012-11-1965232020-03-0362
42003-08-1594142014-02-0425242021-12-2857
52004-05-2571152014-05-0154252022-01-0726
62004-08-0881162015-04-0977262022-07-1787
72004-12-1923172015-08-0682272022-12-1633
82005-05-0572182015-12-3139282023-01-1450
92009-06-0686192016-11-1868292024-07-2885
102010-01-0620202017-10-2670302024-12-1842

A dot plot of the 30 values runs from 20 to 94 with no gap large enough to call an outlier; by decade, 4 in the 20s, 4 in the 30s, 1 in the 40s, 3 in the 50s, 3 in the 60s, 7 in the 70s, 6 in the 80s, 2 in the 90s. Spread across the whole range, as a year-round sample from a four-season climate should be, with no single extreme value.

The interval, by hand

Parameter: μ = the mean daily high at Kansas City International Airport over 2000–2024.

Conditions: random sample (seeded generator, stated); 30 < 10% of 9,132; n = 30 with no outliers in the dot plot.

Compute: sum 1,826, x̄ = 60.87; sum of squared deviations 15,451.47, s = √(15,451.47/29) = 23.083; SE = 23.083/√30 = 4.214; t* = 2.045; margin = 8.62. Interval: 52.25 to 69.49°F. Spreadsheet: =CONFIDENCE.T(0.05, 23.083, 30) = 8.62.

Interpret: we are 95% confident that the mean daily high at Kansas City over 2000–2024 was between 52.2 and 69.5°F.

Check against the truth: μ = 65.78, inside the interval. This sample happened to run cool, by 4.9 degrees; the interval’s width absorbed it.

Compare the two stations: the St. Louis sample gave a margin of 8.44 with s = 22.6; the Kansas City sample gives 8.62 with s = 23.1. Same n, same t*, nearly the same width, because both cities swing through a very wide range of temperatures over the year (population SDs 20.1 and 20.4). The margin is proportional to s.

Sample size

To estimate Kansas City’s mean high within ±0.5°F at 95% confidence, use the population’s σ as the planning value: n = (1.96 × 20.39/0.5)2 = 6,390.9, so 6,391 days, about 70% of the whole record. Within ±1°F: 1,597.7, so 1,598. The lesson’s St. Louis figure for ±1°F was 1,546. When the data swing this widely over a year, precision is expensive; you buy it with sample size, and with nothing else.

Sources: NOAA NCEI, Daily Summaries (GHCN-Daily) data search (ncei.noaa.gov); NOAA NCEI Access Data Service (the query used here) (ncei.noaa.gov); Python documentation, the random module (docs.python.org)

Reading

The Tables: t Critical Values, t Tail Areas, Chi-Square and z

Critical values and tail areas of the t, chi-square and standard normal distributions, computed for this course and rounded; any published table will agree · SLS original

Why this reading. Several lessons tell you to compute a t-interval or a P-value “by hand” and then confirm with T.INV.2T or CHISQ.DIST.RT. The lessons print five t* values and two chi-square critical values between them. This page is the rest: enough of each table to do every hand computation in Units 2 to 4, and to bracket a P-value without a device. All values were computed for this course and rounded to three decimals; a printed table in any textbook will agree.

Table 1. Critical values t* of Student’s t

The column heading gives the confidence level for a two-sided interval and, in parentheses, the area in one tail. For a one-sided test at α = 0.05, use the 0.05-tail column (90%); for a two-sided test at α = 0.05, the 0.025-tail column (95%). If your df is not listed, use the next smaller df, which is conservative.

df80%
(tail 0.10)
90%
(tail 0.05)
95%
(tail 0.025)
98%
(tail 0.01)
99%
(tail 0.005)
99.9%
(tail 0.0005)
13.0786.31412.70631.82163.657636.619
21.8862.9204.3036.9659.92531.599
31.6382.3533.1824.5415.84112.924
41.5332.1322.7763.7474.6048.610
51.4762.0152.5713.3654.0326.869
61.4401.9432.4473.1433.7075.959
71.4151.8952.3652.9983.4995.408
81.3971.8602.3062.8963.3555.041
91.3831.8332.2622.8213.2504.781
101.3721.8122.2282.7643.1694.587
121.3561.7822.1792.6813.0554.318
141.3451.7612.1452.6242.9774.140
161.3371.7462.1202.5832.9214.015
181.3301.7342.1012.5522.8783.922
191.3281.7292.0932.5392.8613.883
201.3251.7252.0862.5282.8453.850
241.3181.7112.0642.4922.7973.745
251.3161.7082.0602.4852.7873.725
291.3111.6992.0452.4622.7563.659
301.3101.6972.0422.4572.7503.646
401.3031.6842.0212.4232.7043.551
501.2991.6762.0092.4032.6783.496
531.2981.6742.0062.3992.6723.484
561.2971.6732.0032.3952.6673.473
601.2961.6712.0002.3902.6603.460
731.2931.6661.9932.3792.6453.429
801.2921.6641.9902.3742.6393.416
1001.2901.6601.9842.3642.6263.390
1991.2861.6531.9722.3452.6013.340
1,000 (≈ z)1.2821.6461.9622.3302.5813.300

Table 2. Upper-tail areas P(Tdf > t), for bracketing a P-value

For a two-sided P-value, double the area. Example: t = 2.53 with df = 29 sits between 2.5 (area 0.0092) and 3.0 (area 0.0027), so the two-sided P is between 0.005 and 0.018; the spreadsheet gives 0.017. The df rows are the ones the course’s examples use: 6 (CDC slope, 8 years), 9 and 18 (music experiment), 17 (CDC paired changes), 29 (samples of 30), 53 and 56 (Welch df for the era comparisons), 73 (75-year regressions).

df    t1.01.52.02.53.03.54.05.0
60.17800.09210.04620.02330.01200.00640.00360.0012
90.17170.08390.03830.01690.00750.00340.00160.0004
170.16570.07600.03090.01150.00400.00140.00050.0001
180.16530.07550.03040.01120.00380.00130.00040.0000
290.16280.07220.02750.00920.00270.00080.00020.0000
530.16090.06980.02530.00780.00210.00050.00010.0000
560.16080.06960.02520.00770.00200.00050.00010.0000
730.16030.06900.02460.00730.00180.00040.00010.0000
10000.15880.06700.02290.00630.00140.00020.00000.0000

Table 3. Chi-square critical values (upper tail) and the mean of each distribution

The P-value of a chi-square test is always the upper-tail area. A statistic near the df is unremarkable; a statistic above the 0.05 column is significant at α = 0.05.

dfTail 0.10Tail 0.05Tail 0.01Tail 0.001Mean
12.713.846.6310.831
24.615.999.2113.822
36.257.8111.3416.273
47.789.4913.2818.474
59.2411.0715.0920.525
610.6412.5916.8122.466
712.0214.0718.4824.327
813.3615.5120.0926.128
914.6816.9221.6727.889
1015.9918.3123.2129.5910
1117.2819.6824.7231.2611
1218.5521.0326.2232.9112

Table 4. Standard normal upper tails for tests

z1.001.281.501.651.962.002.242.502.583.003.50
Upper tail0.15870.10030.06680.05000.02500.02280.01250.00620.00500.00130.0002

Two-sided P = 2 × upper tail. For z = 2.00, 2 × 0.0228 = 0.0455. The full table of Φ(z) is in the Lesson 1.2 reading.

How to bracket, and how to report

Find your df row. Move right until the table value exceeds your statistic; your tail area is between that column’s tail and the previous one’s. Report the bracket (“0.01 < P < 0.02”), then the exact value from technology. If your statistic is beyond the last column, report “P < 0.001” and stop; the exact size of a very small P-value carries no extra meaning, as Lesson 3.2 says.

Sources: Python documentation, the statistics module (NormalDist) (docs.python.org)

Up NextComplete & Continue →

Leave a Reply Cancel reply

Estimating a Proportion with Confidence
Prev
What Confidence Means, and What It Does Not
Next

© 2026 The VR School | Career content by Wiley | Powered by Sejal Learning Systems.

Join free · Accreditation · Privacy Policy · Terms of Service

Modal title

Main Content