We want to estimate an unknown population mean μ from a sample mean xˉ, and because every random sample gives a slightly different average, we need an interval around xˉ wide enough to capture μ.
1
How a Sample Mean Captures the True Average
Suppose a factory produces one million smartphones, and a random sample of n=36 phones has an average battery life of xˉ=14.0 hours. How far left and right of 14.0 hours do we need to reach so that our interval catches the true population average μ95% of the time?
How a Sample Mean Captures the True Average
Whenever xˉ lands inside the middle 95% of the sampling distribution around μ, an interval of that same half-width centered at xˉ reaches back and covers μ. Whenever xˉ lands out in either tail, its interval falls short and misses μ.
Every sample mean inside the middle 95% around μ builds an interval that reaches back and includes μ.
2
Building a t-Interval for a Population Mean
Now we want to find that reach in hours, called the margin of error, around xˉ=14.0 hours. We only know the sample standard deviation s=1.8 hours of our n=36 phones, not the true population standard deviation σ of all one million phones.
Building a t-Interval for a Population Mean
To build a confidence interval for μ from a sample of size n, we start at xˉ and reach out t∗ standard errors using n−1 degrees of freedom:
xˉ±margin of errort∗standard errornswith df=n−1
(On a test, tables often list rows for both n and n−1 alongside the normal curve's 1.96, so always subtract 1 from the sample size first to pick the row for df=n−1.)
Text solution
Find one standard error from s and nDivide the sample standard deviation s=1.8 hours by 36 to measure how much a 36-phone sample mean typically varies from sample to sample:
Standard Error=ns=361.8=61.8=0.3 hours
Look up t∗ at df=n−1 and multiply for the margin of errorWith df=36−1=35 degrees of freedom, 95% confidence takes t∗=2.03 standard errors of 0.3 hours each:
Margin of Error=t∗(ns)=2.03×0.3≈0.61 hours
Reach left and right from xˉSubtract and add the 0.61-hour margin of error around xˉ=14.0 hours:
14.0±0.61=[13.39 hours,14.61 hours]
So our 95% confidence interval for the mean battery life is [13.39 hours,14.61 hours].
3
Three Conditions for a t-Interval
We can plug any numbers into xˉ±t∗(ns), but the resulting interval only captures μ at the 95% rate if three conditions hold: the sampling distribution of xˉ must be centered at μ, have standard deviation nσ (which our standard error ns estimates), and follow a bell-shaped curve.
Three Conditions for a t-Interval
If the population is skewed, the sampling distribution of xˉ for a small sample (n=10) stays skewed and doesn't match the symmetric t-curve. Averaging a large sample (n=36) smooths out the skew so the t-curve still fits the tails.
Skewing the population makes small sample averages too lopsided for the symmetric t-curve, while a large sample smooths the skew out.
When n<30, the Central Limit Theorem cannot smooth out a skewed population for us, so we plot the sample itself to check that it looks roughly symmetric with no strong outliers before trusting a t-interval:
4
Interpreting the Interval and Testing Claims
Once our 36-phone sample passes all three checks, we want to state what the interval [13.39 hours,14.61 hours] tells us about the true average μ and use it to decide whether a claimed battery life is believable.
Interpreting the Interval and Testing Claims
We are 95% confident that the true mean battery life μ of all one million phones from this factory line is between 13.39 hours and 14.61 hours. Any claim inside that interval (such as 14.5 hours) is a plausible value for μ, while any claim outside it (such as 15.0 hours) is not supported by the data.
(On a test, avoid two common wording traps: never say there is a "95% probability" that μ is in [13.39,14.61], because both μ and those endpoints are fixed numbers and 95% is the long-run success rate of the sampling method; and never say "95% of individual phones" fall in the interval, because the interval estimates the single population average μ, not the spread of individual phones.)
Key concepts
Before building a t-interval for an unknown population mean μ, check that the sample is Random (so xˉ is centered at μ, unlike grabbing 36 phones off Monday morning's pallet), takes less than 10% of the population when sampling without replacement (such as 36<10% of 1,000,000, so ns holds), and satisfies the Normal / Large Sample check. If n≥30 (n=36), the Central Limit Theorem keeps the sampling distribution of xˉ approximately normal even if the population is skewed; if n<30 (n=10), do not use the t-interval if a graph of the sample shows strong skewness or outliers (like one phone dying at 2 hours while nine last near 14 hours).
When all three conditions pass, build the interval around xˉ using df=n−1:
xˉ±t∗(ns)
For n=36 phones with xˉ=14.0 hours and s=1.8 hours at 95% confidence (df=35,t∗=2.03), one standard error is 361.8=0.3 hours and the margin of error is 2.03×0.3≈0.61 hours, giving [13.39 hours,14.61 hours]. We are 95% confident this interval captures the fixed true mean μ, so a claimed mean of 14.5 hours inside the interval is plausible, while 15.0 hours outside it is not.
5
Practice
1
A quality-control engineer tests a random sample of n=16 laptop batteries from a large factory production run and finds a sample mean life of xˉ=9.4 hours with a sample standard deviation of s=1.2 hours. For 95% confidence, a table gives t∗=2.13 for df=15,t∗=2.12 for df=16, and 1.96 for a standard normal curve. Find the standard error, the margin of error, and the 95% confidence interval for the true mean battery life.
Watch out for dividing by 16 instead of 16=4, which gives the wrong standard error 0.075 hours.
How many degrees of freedom does a sample of size n=16 have when you estimate the standard deviation with s?
Divide s by n to find the standard error (watch out for dividing by 16 instead of 16=4, which gives the wrong standard error 0.075 hours):
Standard Error=ns=161.2=41.2=0.3 hours
With n=16, the degrees of freedom are df=16−1=15, so t∗=2.13 (using df=16 picks t∗=2.12 and gives [8.764,10.036], while using the normal curve's 1.96 gives [8.812,9.988]):
Margin of Error=2.13×0.3=0.639 hours
9.4±0.639=[8.761 hours,10.039 hours]
2
Based on a random sample of n=25 bags of coffee from a large roasting plant, a food scientist reports a 95% confidence interval for the true mean weight as [337.93 grams,342.07 grams]. Using t∗=2.06 for df=24, find the sample mean xˉ, the margin of error, and the sample standard deviation s, and determine whether the roaster's claim of a 343-gram true average is plausible.
Where does xˉ sit inside [337.93,342.07], and how many margins of error wide is the entire interval from end to end?
The sample mean xˉ is the midpoint of the interval:
xˉ=2337.93+342.07=340.0 grams
The margin of error is the distance from the center xˉ to either endpoint (subtracting the endpoints directly gives 342.07−337.93=4.14 grams, which is the full width of two margins of error and doubles s to 10.05 grams):
Margin of Error=342.07−340.0=2.07 grams
Since 2.07=2.06×(25s), divide by 2.06 to get the standard error 2.062.07≈1.005 grams, then multiply by 25=5 (don't stop at 1.005 grams or multiply by 25 to get 25.12 grams):
s≈1.005×5≈5.02 grams
Because 343 grams falls outside [337.93 grams,342.07 grams],343 grams is not a plausible value for the true mean weight.
3
For each study below, state whether it is valid to construct a t-interval for the population mean and explain which condition passes or fails: (a) A biologist weighs all 15 kakapo parrots picked at random from an island population of 80 parrots; a dotplot of the 15 weights is roughly symmetric with no outliers. (b) An analyst takes a random sample of 45 orders from a database of 500,000 online orders; a histogram of the 45 order totals is noticeably right-skewed. (c) A materials lab tests a random sample of 10 steel cables from a warehouse of 20,000 cables; nine cables break near 1,200 pounds, and one breaks at 410 pounds.
Check all three conditions (Random, 10%, and Normal / Large Sample) in each case, and check whether n is at least 30 before ruling out a skewed sample graph.
(a) Invalid: Even though the dotplot is symmetric with no outliers (a common slip is stopping there and calling it valid), it fails the 10% condition because 15 is more than 10% of the population of 80 parrots (15>8), so sampling without replacement is not independent enough for ns to hold. (b) Valid: The sample is random, 45 is less than 10% of 500,000, and because n=45≥30, the Central Limit Theorem makes the sampling distribution of xˉ approximately normal despite the skewed sample histogram (the common slip is rejecting it because of the right-skewed sample graph, which only makes the interval invalid when n<30). (c) Invalid: It fails the Normal / Large Sample condition because n=10<30 and the sample has a strong outlier at 410 pounds, showing the population is not close enough to normal (using t∗ with df=9 only adjusts for an uncertain s, not a skewed distribution).
4
Returning to the 95% confidence interval [13.39 hours,14.61 hours] for the mean battery life of all one million phones, explain what is wrong with each statement below and write a correct interpretation of the interval: (a) "There is a 95% probability that the true mean battery life μ is between 13.39 and 14.61 hours." (b) "95% of all one million phones in the factory have battery lives between 13.39 and 14.61 hours."
Does the true mean μ move around randomly after the phones are built, and does this interval estimate individual phones or the average of all phones?
(a) is wrong because both the true mean μ of the one million phones and the endpoints 13.39 and 14.61 are fixed numbers, so μ is either inside the interval (100% probability) or outside it (0% probability); 95% refers to the long-run success rate of the sampling method across all possible random samples. (b) is wrong because a confidence interval estimates the single population mean μ, not the battery lives of individual phones. Correct interpretation (be careful to say "true mean" rather than "sample mean," since xˉ=14.0 is already guaranteed to sit in the middle of its own interval): We are 95% confident that the true mean battery life of all one million phones from this factory line is between 13.39 and 14.61 hours.
5
A researcher first tests a random sample of n=5 phones from a normal population and gets s=1.8 hours (with t∗=2.78 for 95% confidence at df=4). She then tests a second random sample of n=36 phones and again gets s=1.8 hours (with t∗=2.03 at df=35). By what factor does her margin of error shrink from the first sample to the second, and what two distinct changes in the formula xˉ±t∗(ns) cause this reduction?
A common slip is looking only at 536≈2.68 and forgetting that t∗ also drops.A common slip is dividing 536=7.2 without the square root.
Compare both parts of t∗(ns) between n=5 and n=36: how much does the standard error ns shrink, and how much does the multiplier t∗ shrink?
Calculate the margin of error for each sample:
For n=5:For n=36:2.78×(51.8)≈2.238 hours2.03×(361.8)=0.609 hours
The margin of error shrinks by a factor of 0.6092.238≈3.67 (a common slip is looking only at 536≈2.68 and forgetting that t∗ also drops, or dividing 536=7.2 without the square root). Two distinct changes cause this 3.67-fold reduction: first, averaging 36 phones instead of 5 shrinks the standard error ns by a factor of 536≈2.68; second, having a more reliable sample standard deviation s with 35 degrees of freedom instead of 4 reduces t∗ from 2.78 down to 2.03.