StatisticsConfidence Intervals1 of 6
Confidence Intervals · 1

What Is a Confidence Interval?

When we estimate a population average from a random sample, a single sample average will almost never hit the true average exactly, so we need a range of numbers around our guess to catch the truth.

1

How a Confidence Interval Catches the Truth

A confidence interval is a range of values built by starting at our sample's point estimate and reaching out by the same margin of error in both directions. Suppose a random sample of 100100 college students has an average daily screen time of 4.2 hours\est{4.2}\text{ hours}. Because we only get to see our one sample of 100100 students, we need to see how reaching out a fixed distance around 4.2 hours\est{4.2}\text{ hours} can reliably catch an invisible population average.

How a Confidence Interval Catches the Truth
3.0\htmlClass{lc-mute}{3.0}
3.4\htmlClass{lc-mute}{3.4}
3.8\htmlClass{lc-mute}{3.8}
4.6\htmlClass{lc-mute}{4.6}
5.0\htmlClass{lc-mute}{5.0}
hours\htmlClass{lc-mute}{\text{hours}}
true average=  ?\htmlClass{lc-violet}{\text{true average}} = \;?
n=100n = 100
4.2\htmlClass{lc-blue}{4.2}
point estimate\htmlClass{lc-blue}{\text{point estimate}}

Stepping out 0.4 hours\spread{0.4}\text{ hours} to the left and right of our sample average turns a single point guess into an interval:

4.2⏟Estimate±0.4⏟Margin of Error\displaystyle \est{\underbrace{4.2}_{\text{Estimate}}} \pm \spread{\underbrace{0.4}_{\text{Margin of Error}}} =3.8 to 4.6 hours\displaystyle = 3.8\text{ to }4.6\text{ hours}

Now let's test this ±0.4 hour\pm \spread{0.4}\text{ hour} interval across all possible sample averages under the bell curve to see when it catches the truth and when it misses.

Going out 0.4 hours each way from a sample average includes the Truth whenever the sample itself lands inside the middle 95% of the curve.
2

Building the Margin of Error

To find where the margin of error of 0.4 hours\spread{0.4}\text{ hours} comes from, we need to combine how much a sample average naturally bounces around from sample to sample with how confident we want to be that our interval catches the truth.

Building the Margin of Error
3.0\htmlClass{lc-mute}{3.0}
3.4\htmlClass{lc-mute}{3.4}
5.0\htmlClass{lc-mute}{5.0}
hours\htmlClass{lc-mute}{\text{hours}}
3.83.8
4.2\htmlClass{lc-blue}{4.2}
4.64.6
0.4\htmlClass{lc-pink}{0.4}
0.4\htmlClass{lc-pink}{0.4}
Margin of Error\htmlClass{lc-pink}{\text{Margin of Error}}
1. jump around?\text{1. jump around?}
2. how sure?\text{2. how sure?}

A confidence interval for a population average is built by finding the size of one typical sample jump (one standard error, σn\tfrac{\spread{\sigma}}{\sqrt{n}}) and multiplying by the number of jumps needed for your confidence level:

Estimate±(Number of Jumps×σn⏟Size of One Jump)⏟Margin of Error\displaystyle \est{\text{Estimate}} \pm \underbrace{\left(\text{Number of Jumps} \times \underbrace{\frac{\spread{\sigma}}{\sqrt{n}}}_{\spread{\text{Size of One Jump}}}\right)}_{\spread{\text{Margin of Error}}}
Text solution
Divide the individual spread by n\sqrt{n} to find the size of one jumpAveraging n=100n = 100 students shrinks the individual spread of σ=2 hours\spread{\sigma} = \spread{2}\text{ hours} by a factor of 100\sqrt{100}.
Size of One Jump\displaystyle \spread{\text{Size of One Jump}} =σn\displaystyle = \frac{\spread{\sigma}}{\sqrt{n}} =2100\displaystyle = \frac{\spread{2}}{\sqrt{100}} =210\displaystyle = \frac{2}{10} =0.2 hours\displaystyle = \spread{0.2}\text{ hours}
Multiply by the number of jumps for the margin of errorBy the 68–95–99.768\text{–}95\text{–}99.7 rule, reaching out 22 jumps in each direction captures 95%\share{95\%} of samples.
Margin of Error\displaystyle \spread{\text{Margin of Error}} =2×0.2\displaystyle = 2 \times \spread{0.2} =0.4 hours\displaystyle = \spread{0.4}\text{ hours}
Add and subtract the margin of error from the estimateReach out 0.4 hours\spread{0.4}\text{ hours} on both sides of the 4.2 hour\est{4.2}\text{ hour} point estimate to get the endpoints.
4.2±0.4\displaystyle \est{4.2} \pm \spread{0.4} =3.8 to 4.6 hours\displaystyle = 3.8\text{ to }4.6\text{ hours}

Now let's compare 11, 1.6451.645, 22, and 33 jumps to see the trade-off between how confident we are and how narrow our interval is.

Reaching out more standard errors catches more samples, at the cost of a wider, less precise estimate.
3

Finding the Estimate and Margin of Error from an Interval

Often a study or news report gives only the finished confidence interval, such as 3.8 to 4.6 hours3.8\text{ to }4.6\text{ hours}, and we want to work backward to find the point estimate and the margin of error used to build it.

Finding the Estimate and Margin of Error from an Interval
3.0\htmlClass{lc-mute}{3.0}
3.4\htmlClass{lc-mute}{3.4}
4.2\htmlClass{lc-mute}{4.2}
5.0\htmlClass{lc-mute}{5.0}
hours\htmlClass{lc-mute}{\text{hours}}
3.83.8
4.64.6
point estimate\htmlClass{lc-blue}{\text{point estimate}}
=  ?{}=\;?
Margin of Error\htmlClass{lc-pink}{\text{Margin of Error}}
=  ?{}=\;?
3.83.8
4.64.6
hours\htmlClass{lc-mute}{\text{hours}}
4.2\htmlClass{lc-blue}{4.2}
Estimate\htmlClass{lc-blue}{\text{Estimate}}
Margin of Error\htmlClass{lc-pink}{\text{Margin of Error}}
0.4\htmlClass{lc-pink}{0.4}
0.4\htmlClass{lc-pink}{0.4}
total width\htmlClass{lc-pink}{\text{total width}}
0.8\htmlClass{lc-pink}{0.8}
Text solution
Average the two endpoints to find the point estimateBecause the interval reaches out the same distance in both directions, the estimate sits right in the middle between 3.83.8 and 4.64.6.
Estimate\displaystyle \est{\text{Estimate}} =3.8+4.62\displaystyle = \frac{3.8 + 4.6}{2} =8.42\displaystyle = \frac{8.4}{2} =4.2 hours\displaystyle = \est{4.2}\text{ hours}
Take half the total width to find the margin of errorFind the full span from 3.83.8 to 4.64.6 and cut it in half (or find the distance from the center 4.2\est{4.2} to either edge, 4.6−4.2=0.44.6 - \est{4.2} = \spread{0.4}).
Margin of Error\displaystyle \spread{\text{Margin of Error}} =4.6−3.82\displaystyle = \frac{4.6 - 3.8}{2} =0.82\displaystyle = \frac{\spread{0.8}}{2} =0.4 hours\displaystyle = \spread{0.4}\text{ hours}

So the interval 3.8 to 4.6 hours3.8\text{ to }4.6\text{ hours} is 4.2±0.4 hours\est{4.2} \pm \spread{0.4}\text{ hours}.

4

Interpreting the Interval and the Confidence Level

Once we have the 95%\share{95\%} confidence interval of 3.8 to 4.6 hours3.8\text{ to }4.6\text{ hours}, we need to answer two very different questions without mixing them up: what the numbers 3.8 to 4.63.8\text{ to }4.6 tell us about college students, and what "95%\share{95\%} confidence" tells us about our method.

Interpreting the Interval and the Confidence Level
3.0\htmlClass{lc-mute}{3.0}
5.0\htmlClass{lc-mute}{5.0}
hours\htmlClass{lc-mute}{\text{hours}}
11
3.83.8
4.2\htmlClass{lc-blue}{4.2}
4.64.6
22
95%\htmlClass{lc-green}{95\%}
3.0\htmlClass{lc-mute}{3.0}
3.4\htmlClass{lc-mute}{3.4}
3.8\htmlClass{lc-mute}{3.8}
4.2\htmlClass{lc-mute}{4.2}
4.6\htmlClass{lc-mute}{4.6}
5.0\htmlClass{lc-mute}{5.0}
hours\htmlClass{lc-mute}{\text{hours}}
Truth\htmlClass{lc-violet}{\text{Truth}}
20 samples\text{20 samples}
n=100n = 100
19 of 20\htmlClass{lc-green}{19 \text{ of } 20}
≈95%\htmlClass{lc-green}{\approx 95\%}

When a question asks you to interpret the interval, state what values are believable for the unknown population average right now:

> "We are 95%\share{95\%} confident that the true average daily screen time of all college students in the country is between 3.83.8 and 4.6 hours4.6\text{ hours}."

Notice that this sentence is about the unknown population average of all college students, never about individual students, and never about the 100100 students in our sample (whose average we already know 100%100\% for a fact is 4.2 hours\est{4.2}\text{ hours}).

When a question asks you to interpret the confidence level, describe how reliable our method of building the interval is in the long run:

> "If we took many random samples of 100100 students and built a confidence interval from each one using this method, about 95%\share{95\%} of those intervals would capture the true population average."

On a test, avoid saying "there is a 95%95\% probability that the true average is between 3.83.8 and 4.6 hours4.6\text{ hours}." Once the numbers 3.83.8 and 4.64.6 are calculated, the interval isn't random anymore, and the true population average was never random: the truth is either sitting inside that interval (100%100\% chance) or it isn't (0%0\% chance).

5

Using a Confidence Interval to Judge a Claim

Because a confidence interval gives the range of believable values for the true population average based on our sample, we can use it to judge whether a specific claim about the population average holds up.

Using a Confidence Interval to Judge a Claim
3.0\htmlClass{lc-mute}{3.0}
3.4\htmlClass{lc-mute}{3.4}
5.0\htmlClass{lc-mute}{5.0}
hours\htmlClass{lc-mute}{\text{hours}}
3.83.8
4.2\htmlClass{lc-blue}{4.2}
4.64.6
5.0\htmlClass{lc-violet}{5.0}
dean\text{dean}
headline    4.5\text{headline}\;\;\htmlClass{lc-violet}{4.5}

To judge a claim against our interval of 3.8 to 4.6 hours3.8\text{ to }4.6\text{ hours}, check whether the claimed number sits inside or outside the interval:

6

Why Margin of Error Does Not Fix Bias

Before trusting a confidence interval, we have to check how the sample was collected, because our formula will still give a small margin of error even when the sample is badly biased.

Why Margin of Error Does Not Fix Bias
3.0\htmlClass{lc-mute}{3.0}
3.4\htmlClass{lc-mute}{3.4}
3.8\htmlClass{lc-mute}{3.8}
4.6\htmlClass{lc-mute}{4.6}
5.0\htmlClass{lc-mute}{5.0}
hours\htmlClass{lc-mute}{\text{hours}}
Truth\htmlClass{lc-violet}{\text{Truth}}
4.2\htmlClass{lc-blue}{4.2}
0.4\htmlClass{lc-pink}{0.4}
0.4\htmlClass{lc-pink}{0.4}
Margin of Error\htmlClass{lc-pink}{\text{Margin of Error}}
4.2±0.4\htmlClass{lc-blue}{4.2} \pm \htmlClass{lc-pink}{0.4}

The formula for the margin of error only uses the number of jumps, the individual spread σ\spread{\sigma}, and the sample size nn:

Margin of Error\displaystyle \spread{\text{Margin of Error}} =Number of Jumps×σn\displaystyle = \text{Number of Jumps} \times \frac{\spread{\sigma}}{\sqrt{n}}

Nothing in that calculation checks whether the 100100 students were chosen at random. If a survey suffers from undercoverage (sampling the library at 8:00 AM on a Saturday), nonresponse bias (heavy phone users ignoring the text), or response bias (students underreporting in front of a professor) and produces a sample average of 2.1 hours\est{2.1}\text{ hours}, the math still gives 2.1±0.4=1.7 to 2.5 hours\est{2.1} \pm \spread{0.4} = 1.7\text{ to }2.5\text{ hours}, neatly capturing the wrong answer.

Key concepts

A confidence interval estimates an unknown population average by starting at a random sample's point estimate and reaching out by the same margin of error in both directions. To build the margin of error, first find the size of one standard error jump by dividing the individual spread by the square root of the sample size, σn\tfrac{\spread{\sigma}}{\sqrt{n}} (for σ=2\spread{\sigma} = \spread{2} and n=100n = 100, one jump is 2100=0.2\tfrac{\spread{2}}{\sqrt{100}} = \spread{0.2}). Then multiply by the number of jumps for your confidence level (11, 22, or 33 jumps for 68%\share{68\%}, 95%\share{95\%}, or 99.7%\share{99.7\%}; 1.6451.645 jumps for 90%\share{90\%}):

Estimate±(Number of Jumps×σn)⟶4.2±(2×2100)=4.2±0.4=3.8 to 4.6 hours\displaystyle \begin{aligned} &\est{\text{Estimate}} \pm \left(\text{Number of Jumps} \times \frac{\spread{\sigma}}{\sqrt{n}}\right) \\ &\longrightarrow \est{4.2} \pm \left(2 \times \frac{\spread{2}}{\sqrt{100}}\right) \\ &= \est{4.2} \pm \spread{0.4} \\ &= 3.8\text{ to }4.6\text{ hours} \end{aligned}

If you are given a finished interval like 3.8 to 4.63.8\text{ to }4.6, work backward from its symmetry: average the endpoints to find the center, 3.8+4.62=4.2\tfrac{3.8 + 4.6}{2} = \est{4.2}, and take half the total width to find the margin of error, 4.6−3.82=0.4\tfrac{4.6 - 3.8}{2} = \spread{0.4}.

Once the interval is built, keep three distinctions straight:

Interval vs. confidence level

The interval 3.8 to 4.6 hours3.8\text{ to }4.6\text{ hours} estimates the unknown population average (never individual values or the sample average of 4.2\est{4.2}, which is already known for certain). The 95%\share{95\%} confidence level is the long-run success rate of the method across many random samples. Never call it the "probability" that the fixed truth sits between 3.83.8 and 4.64.6.

Outside vs. inside when judging a claim

A claim outside the interval (like 5.0\truth{5.0}) gives convincing evidence against the claim; a claim inside the interval (like 4.5\truth{4.5}) means we lack evidence against it, but never proves 4.5\truth{4.5} is the exact truth since every other value from 3.83.8 to 4.64.6 is also believable.

Random bounce vs. bias

Do not trust the margin of error if the sample wasn't random. The ±0.4\pm \spread{0.4} only covers chance variation from random sampling and will not fix an interval centered on a biased sample.

7

Practice

1

A transportation study reports a 95%\share{95\%} confidence interval for the average daily commute time of city residents as 24.6 to 31.4 minutes24.6\text{ to }31.4\text{ minutes}. What was the point estimate, and what was the margin of error?

Where does the point estimate sit between 24.624.6 and 31.431.4, and what fraction of the total width between the endpoints makes up the margin of error?

The point estimate is the midpoint of the interval, which we find by averaging the two endpoints:
Estimate\displaystyle \est{\text{Estimate}} =24.6+31.42\displaystyle = \frac{24.6 + 31.4}{2} =56.02\displaystyle = \frac{56.0}{2} =28.0 minutes\displaystyle = \est{28.0}\text{ minutes}
The margin of error is half the total width of the interval (or the distance from the center 28.0\est{28.0} to either endpoint). Watch out for the common mistake of subtracting the endpoints and stopping at the full width 31.4−24.6=6.8 minutes31.4 - 24.6 = \spread{6.8}\text{ minutes} without dividing by 22, which would double the margin of error:
Margin of Error\displaystyle \spread{\text{Margin of Error}} =31.4−24.62\displaystyle = \frac{31.4 - 24.6}{2} =6.82\displaystyle = \frac{\spread{6.8}}{2} =3.4 minutes\displaystyle = \spread{3.4}\text{ minutes}
Point estimate: 28.0 minutes\est{28.0}\text{ minutes}; margin of error: 3.4 minutes\spread{3.4}\text{ minutes}.
2

A random sample of 6464 coffee shop orders has an average wait time of 5.1 minutes\est{5.1}\text{ minutes}. Individual wait times vary with a standard deviation of σ=1.6 minutes\spread{\sigma} = \spread{1.6}\text{ minutes}. Using the 68–95–99.768\text{–}95\text{–}99.7 rule, build a 99.7%\share{99.7\%} confidence interval for the true average wait time of all orders.

First find the size of one standard error jump for a sample of n=64n = 64, then check how many jumps the 68–95–99.768\text{–}95\text{–}99.7 rule uses for 99.7%\share{99.7\%}.

First find the size of one jump (one standard error). Be careful not to use the individual spread σ=1.6\spread{\sigma} = \spread{1.6} directly as a jump (which would give 5.1±4.8\est{5.1} \pm \err{4.8}, or 0.3 to 9.9 minutes0.3\text{ to }9.9\text{ minutes}) and not to divide by 6464 instead of 64=8\sqrt{64} = 8 (which would give a jump of 0.025\err{0.025} and 5.025 to 5.175 minutes5.025\text{ to }5.175\text{ minutes}):
Size of One Jump\displaystyle \spread{\text{Size of One Jump}} =σn\displaystyle = \frac{\spread{\sigma}}{\sqrt{n}} =1.664\displaystyle = \frac{\spread{1.6}}{\sqrt{64}} =1.68\displaystyle = \frac{1.6}{8} =0.2 minutes\displaystyle = \spread{0.2}\text{ minutes}
By the 68–95–99.768\text{–}95\text{–}99.7 rule, 99.7%\share{99.7\%} confidence reaches out 33 jumps in each direction:
Margin of Error\displaystyle \spread{\text{Margin of Error}} =3×0.2\displaystyle = 3 \times \spread{0.2} =0.6 minutes\displaystyle = \spread{0.6}\text{ minutes}
Stepping out 0.6 minutes\spread{0.6}\text{ minutes} from the sample estimate of 5.1 minutes\est{5.1}\text{ minutes} gives 5.1±0.6\est{5.1} \pm \spread{0.6}, or 4.5 to 5.7 minutes4.5\text{ to }5.7\text{ minutes}.
3

Based on a random sample of bags, a 95%\share{95\%} confidence interval for the true average weight of potato chip bags from a factory is 7.85 to 8.05 ounces7.85\text{ to }8.05\text{ ounces}. (a) The bag label claims the average weight is 8.20 ounces\truth{8.20}\text{ ounces}. Does the interval provide convincing evidence against this claim? (b) A quality inspector says the interval proves the true average weight is 8.00 ounces\truth{8.00}\text{ ounces} because 8.00\truth{8.00} is inside the interval. Is the inspector right?

Check whether each weight sits inside or outside the believable range of 7.85 to 8.05 ounces7.85\text{ to }8.05\text{ ounces}, and ask whether 8.00\truth{8.00} is the only believable number in that range.

(a) Yes. Because 8.20 ounces\truth{8.20}\text{ ounces} sits outside the interval of believable values (7.85 to 8.05 ounces7.85\text{ to }8.05\text{ ounces}), we have convincing evidence against the label's claim. (b) No. Watch out for the mistake of thinking that landing inside the interval proves a claim is exact: because 8.00 ounces\truth{8.00}\text{ ounces} is inside the interval, it is a believable value and we do not have evidence against it, but every other value between 7.857.85 and 8.05 ounces8.05\text{ ounces} (such as 7.90\truth{7.90} or 7.95 ounces\truth{7.95}\text{ ounces}) is also believable, so the interval does not prove the true average is 8.00 ounces\truth{8.00}\text{ ounces}.
4

From a random sample of 100100 apartments in a city, a researcher calculates a 90%\share{90\%} confidence interval for the average monthly rent as $1,420 to $1,580\$1,420\text{ to }\$1,580. Explain what is wrong with each statement below, then write a correct interpretation of the interval: (a) "90%90\% of all apartments in the city rent for between $1,420\$1,420 and $1,580\$1,580." (b) "We are 90%90\% confident that the average rent of the 100100 apartments in the sample is between $1,420\$1,420 and $1,580\$1,580."

Ask what a confidence interval is trying to estimate: individual apartments, the 100100 apartments we already measured, or the unknown average of all apartments in the city?

(a) This is wrong because a confidence interval estimates the unknown population average, not the rents of individual apartments. (b) This is wrong because we already measured the 100100 apartments in the sample and know 100%100\% for a fact that their sample average is the midpoint, $1,500\est{\$1,500}. When writing the correct interpretation, don't make the mistake of saying "there is a 90%90\% probability that the true average is between $1,420\$1,420 and $1,580\$1,580." Correct interpretation: We are 90%\share{90\%} confident that the true average monthly rent of all apartments in the city is between $1,420\$1,420 and $1,580\$1,580.
5

After computing a 95%\share{95\%} confidence interval of 3.8 to 4.6 hours3.8\text{ to }4.6\text{ hours}, a student concludes, "There is a 95%95\% probability that the true population average is between 3.83.8 and 4.6 hours4.6\text{ hours}." Explain why this statement is incorrect and state what "95%\share{95\%} confidence" actually means.

Once 3.83.8 and 4.64.6 are written down, is anything still moving at random, or does the 95%\share{95\%} describe what happens when we repeat the method across many samples?

Once the interval 3.8 to 4.6 hours3.8\text{ to }4.6\text{ hours} is calculated, nothing is random anymore: the true population average is a fixed number and the endpoints 3.83.8 and 4.64.6 are fixed numbers, so the truth is either inside that interval (100%100\% chance) or not (0%0\% chance). When stating what "95%\share{95\%} confidence" means, avoid the common mistake of saying that 95%95\% of future sample averages will fall between 3.83.8 and 4.6 hours4.6\text{ hours}. Each new sample builds its own interval around its own sample average. Instead, "95%\share{95\%} confidence" means that if we took many random samples of the same size and built a confidence interval from each one using this method, about 95%\share{95\%} of those intervals would capture the true population average.
6

A researcher takes a random sample of nn commuters (where individual commute times have standard deviation σ=15 minutes\spread{\sigma} = \spread{15}\text{ minutes}) and reports a 95%\share{95\%} confidence interval of 39 to 45 minutes39\text{ to }45\text{ minutes}. (a) Using the 68–95–99.768\text{–}95\text{–}99.7 rule, how many commuters were in the sample? (b) If the researcher used the exact same sample to build a 90%\share{90\%} confidence interval (1.6451.645 jumps) instead, what would the new interval be?

Find the center and margin of error of the interval 39 to 4539\text{ to }45 first, then use the number of jumps in a 95%\share{95\%} interval to find the size of a single jump.

(a) First find the point estimate and margin of error from the interval:
Estimate=39+452=42 minutes,Margin of Error=45−392=3 minutes\displaystyle \begin{aligned} \est{\text{Estimate}} &= \frac{39 + 45}{2} \\ &= \est{42}\text{ minutes}, \\ \spread{\text{Margin of Error}} &= \frac{45 - 39}{2} \\ &= \spread{3}\text{ minutes} \end{aligned}
Because 95%\share{95\%} confidence uses 22 jumps, divide the margin of error by 22 to find the size of one jump (setting 15n\tfrac{\spread{15}}{\sqrt{n}} equal to the full margin of error 3\spread{3} instead of 1.5\spread{1.5} is a common mistake that leads to n=5\sqrt{n} = \err{5} and n=25n = \err{25}):
Size of One Jump\displaystyle \spread{\text{Size of One Jump}} =32\displaystyle = \frac{\spread{3}}{2} =1.5 minutes\displaystyle = \spread{1.5}\text{ minutes}
Now solve for nn, making sure to square n=10\sqrt{n} = 10 at the end rather than stopping at 1010:
15n=1.5⟹n=10⟹n=100 commuters\displaystyle \begin{aligned} & & \frac{\spread{15}}{\sqrt{n}} &= \spread{1.5} \\ \Longrightarrow & & \sqrt{n} &= 10 \\ \Longrightarrow & & n &= 100\text{ commuters} \end{aligned}
(b) For a 90%\share{90\%} confidence interval on the same sample, multiply 1.6451.645 jumps by the single-jump size of 1.5 minutes\spread{1.5}\text{ minutes} (do not multiply 1.6451.645 by the old margin of error of 3 minutes\spread{3}\text{ minutes}, which would give 42±4.935\est{42} \pm \err{4.935}, or 37.065 to 46.935 minutes37.065\text{ to }46.935\text{ minutes}):
Margin of Error\displaystyle \spread{\text{Margin of Error}} =1.645×1.5\displaystyle = 1.645 \times \spread{1.5} =2.4675 minutes\displaystyle = \spread{2.4675}\text{ minutes}
Stepping out from the same estimate of 42 minutes\est{42}\text{ minutes} gives 42±2.4675\est{42} \pm \spread{2.4675}, or 39.5325 to 44.4675 minutes39.5325\text{ to }44.4675\text{ minutes} (about 39.53 to 44.47 minutes39.53\text{ to }44.47\text{ minutes}).
7

To estimate the average hours residents exercise per week, a city health department surveys 400400 visitors on a local running club's website (with σ=4 hours\spread{\sigma} = \spread{4}\text{ hours}), getting a sample average of 6.8 hours\est{6.8}\text{ hours} and a 95%\share{95\%} confidence interval of 6.4 to 7.2 hours6.4\text{ to }7.2\text{ hours}. Suppose the true average for all city residents is actually 2.5 hours\truth{2.5}\text{ hours}. (a) Where would a sample average need to land for a ±0.4 hour\pm \spread{0.4}\text{ hour} interval around it to catch the true average of 2.5 hours\truth{2.5}\text{ hours}? (b) Why did this 95%\share{95\%} confidence interval miss the truth so badly despite the large sample size?

(a) Use the fact that distance is the same in both directions around the true population average of 2.5 hours\truth{2.5}\text{ hours}. (b) Look at where the 400400 respondents came from and what kind of error a margin of error actually accounts for.

(a) Because distance is the same in both directions, an interval of ±0.4 hours\pm \spread{0.4}\text{ hours} around a sample average catches the truth if and only if the sample average lands within 0.4 hours\spread{0.4}\text{ hours} of the truth 2.5 hours\truth{2.5}\text{ hours} (be careful not to add and subtract 0.4\spread{0.4} around the biased sample average 6.8 hours\est{6.8}\text{ hours}, which just repeats 6.4 to 7.2 hours6.4\text{ to }7.2\text{ hours}):
2.5±0.4\displaystyle \truth{2.5} \pm \spread{0.4} =2.1 to 2.9 hours\displaystyle = 2.1\text{ to }2.9\text{ hours}
(b) Surveying visitors on a running club's website is not a random sample of city residents. It suffers from undercoverage: residents who never visit the site have no chance of being surveyed, and visitors to a running site exercise much more than average. Don't blame this miss on just getting one of the unlucky 5%\share{5\%} of random samples in the tails: the ±0.4 hour\pm \spread{0.4}\text{ hour} margin of error only accounts for random sampling variation and cannot fix a biased sampling method.