Chalk−1

Math · Introductory statistics · Worked example

Build a 95% t interval for a mean

A random sample of 16 packages has mean mass 52.3 g and standard deviation 6.4 g. Build a 95⁢% confidence interval for the mean mass of all packages.

Try one — Chalk checks each line

Check the conditions

The packages were sampled at random and weighed independently. With only 16 of them, the interval relies on masses that are roughly normal, without strong skew or clear outliers.

Find the standard error

The sample mean varies less than single packages do, by a factor of 16=4.

6.416=1.6

Find t∗

There are n−1=15 degrees of freedom, and 95⁢% confidence leaves 2.5⁢% in each tail. The t table’s row for 15 gives t∗≈2.131, a little above 1.96 because s is itself an estimate.

Find the margin and the interval

Multiply, then step the margin out from the mean in both directions.

2.131⋅1.6≈3.4152.3−3.41=48.8952.3+3.41=55.71

Say what it means

The company can be 95⁢% confident that the mean mass of all its packages is between 48.89 g and 55.71 g. The statement is about the mean, not about any single package.

Result

From about 48.89 g to 55.71 g.

Your turn

1. One like the example

A random sample of 25 cereal boxes has mean mass 368 g and standard deviation 10 g. Build a 95⁢% confidence interval for the mean mass of all boxes.

Show the answer and explanation

From about 363.87 g to 372.13 g.

The ends of the interval are x¯∓t∗⋅s⁢/n. SE=10⁢/25=2, and t∗ with 24 degrees of freedom is about 2.064. The margin is 2.064×2≈4.13, so the interval is 368±4.13.

L=368−2.064⋅1025L=368−2.064⋅2L=368−4.128L=363.872U=368+2.064⋅1025U=368+2.064⋅2U=368+4.128U=372.128
L=368−2.064⋅1025L=368−2.064⋅2L=368−4.128L=363.872U=368+2.064⋅1025U=368+2.064⋅2U=368+4.128U=372.128

2. A variation

Build a 99⁢% interval from the same 16 packages, with mean 52.3 g and standard deviation 6.4 g. Is it wider or narrower than the 95⁢% interval?

Show the answer and explanation

From about 47.6 g to 57.0 g, wider than 48.89 to 55.71.

The ends of the interval are x¯∓t∗⋅s⁢/n. 99⁢% leaves 0.5⁢% in each tail, so t∗ with 15 degrees of freedom is about 2.947. The margin is 2.947×1.6≈4.715. More confidence costs width.

L=52.3−2.947⋅6.416L=52.3−2.947⋅1.6L=52.3−4.7152L=47.5848U=52.3+2.947⋅6.416U=52.3+2.947⋅1.6U=52.3+4.7152U=57.0152
L=52.3−2.947⋅6.416L=52.3−2.947⋅1.6L=52.3−4.7152L=47.5848U=52.3+2.947⋅6.416U=52.3+2.947⋅1.6U=52.3+4.7152U=57.0152

3. Somewhere new

A report gives only the 95⁢% interval 48.89 to 55.71 g for a mean. Recover the sample mean and the margin. Is a true mean of 50 g plausible? Is 57 g?

Show the answer and explanation

x¯=52.3 g and the margin is 3.41 g. 50 g is plausible, and 57 g is not.

The interval is centered on x¯, so x¯ is the average of the ends, and the margin is half the width. 50 lies inside the interval, so the data do not rule it out. 57 lies outside, so at 95⁢% confidence the data speak against it.

(48.89,55.71)48.89+55.712=52.355.71−48.892=3.41

Keep exploring

In Statistics, the t table with α=0.025 and 15 degrees of freedom gives critical t=2.13145. Change α to 0.005 for 99⁢% confidence: t∗=2.94671, and the interval widens to about 47.59 to 57.01 g.

Return to the concept →
Sources and scope

Authored study material. Tool results depend on the stated inputs and model assumptions.

After reading

Try it, then study it

Open the example in its tool to check steps or change values, then review the key terms as flashcards.

Find t∗ in Statistics Check the interval in Math Draw 100 intervals from samples of 16 in Confidence-Interval Coverage See σ⁢/n for samples of 16 in Sampling & the CLT Study the 7 key terms Open worked example on a board Confidence interval in Math Reference

Your existing work stays on this device. Examples open as editable copies.