MaizePrepSTATS 250
Exam 2 · Lec 10

Confidence intervals

Estimate ± multiplier × standard error for π\pi and μ\mu: the three spreads, z∗z^* and t∗t^*, margin of error, interpreting an interval in context, and when to use an interval instead of a test.

30 min

Key ideas

Second limitation of tests

A large p-value does not show H0H_0 is true. If the goal is a plausible value for the parameter, use an interval.

General form

statistic ± multiplier × standard error. The margin of error is multiplier × SE, half the interval's width, always positive.

Standard error

For a CI, the parameter is unknown, so the spread is estimated from the sample: π^(1−π^)/n\sqrt{\hat\pi(1-\hat\pi)/n} or σ^/n\hat\sigma/\sqrt n.

Multipliers

Proportions use z∗z^*, the same for every nn: 1.645 (90%), 1.96 (95%), 2.576 (99%). Means use t∗t^* with df=n−1df = n-1, which changes with nn even at the same level.

Interpretation

"We are [level]% confident that [the parameter, in context, with population] is between [a] and [b] [units]." The interval estimates a parameter, not individual values.

Test or interval?

A yes/no research question (is it different from, more than…) calls for a test. A "what is the value / how large" question calls for an interval.

Formulas (on the Exam 2 help card)

One proportion
π^±z∗π^(1−π^)n\hat\pi\pm z^*\sqrt{\frac{\hat\pi(1-\hat\pi)}{n}}
One mean
μ^±t∗ σ^n,df=n−1\hat\mu\pm t^*\,\frac{\hat\sigma}{\sqrt n},\qquad df=n-1
Multipliers in R
qnorm(0.975)=1.96,qt(0.975, df = 29)≈2.045\texttt{qnorm(0.975)} = 1.96,\qquad \texttt{qt(0.975, df = 29)} \approx 2.045
The multipliers are not printed on the card; know the three z∗z^* values.

The three spreads

SpreadFormula for proportionsUsed for
Standard deviationπ(1−π)/n\sqrt{\pi(1-\pi)/n}describing π^\hat\pi when π\pi is known
Null standard deviationπ0(1−π0)/n\sqrt{\pi_0(1-\pi_0)/n}hypothesis tests (assume H0H_0)
Standard errorπ^(1−π^)/n\sqrt{\hat\pi(1-\hat\pi)/n}confidence intervals (estimate π\pi)
Worked example

Two intervals

(1) A random sample of 800 county residents finds 520 support a new transit levy. Build a 95% interval for the support rate. (2) A random sample of 30 nurses reports sleep before a shift. Interpret the interval in the output.

t.test(sleep_hours, conf.level = 0.95)

	One Sample t-test

data:  sleep_hours
t = 24.83, df = 29, p-value = 4.338e-21
alternative hypothesis: true mean is not equal to 0
95 percent confidence interval:
 6.239891 7.360109
sample estimates:
mean of x 
      6.8 
  1. (1) Statistic: π^=520/800=0.65\hat\pi = 520/800 = 0.65.

  2. SE: 0.65⋅0.35/800≈0.0169\sqrt{0.65 \cdot 0.35/800} \approx 0.0169. Margin: 1.96×0.0169≈0.0331.96 \times 0.0169 \approx 0.033.

  3. Interval: 0.65±0.033=(0.617,0.683)0.65 \pm 0.033 = (0.617, 0.683). We are 95% confident that the true proportion of all county residents who support the levy is between 0.617 and 0.683.

  4. (2) The center is μ^=6.8\hat\mu = 6.8 and the multiplier came from a t-distribution with 29 df. We are 95% confident that the true mean pre-shift sleep of all nurses in this population is between 6.24 and 7.36 hours.

  5. Ignore the test line: without mu =, R tests μ=0\mu = 0, which no one asked about. Only the interval answers this question.

Answer

Support: (0.617, 0.683). Sleep: (6.24, 7.36) hours. Both describe a population parameter, not individual residents or nurses.

Check yourself

1
Lec 10

A 90% confidence interval for a proportion is (0.42, 0.58). What is its margin of error? Give the exact decimal.

Math shortcuts are on for STATS 250. Type ^ then digits for powers, _ then digits for subscripts.
2
Lec 10

A confidence interval for a mean commute is (12.4, 15.0) minutes. What sample mean was it built around? Give the value to one decimal place.

Math shortcuts are on for STATS 250. Type ^ then digits for powers, _ then digits for subscripts.minutes
3
Lec 10

Which spread belongs in a confidence interval for a population proportion?

4
Lec 10

A 99% confidence interval for a proportion uses which multiplier?

5
Lec 10

A city asks: "What is the average number of hours per week our residents volunteer?" Which procedure answers this?

6
Lec 10

A lab has a 95% confidence interval for the mean weight of its packages. Select every change that would make its next interval narrower, assuming nothing else changes.

7
Lec 10

An interval for a mean uses t∗=2.0t^* = 2.0 and a standard error of 1.5 grams. What is the margin of error, in grams? Give the exact value.

Math shortcuts are on for STATS 250. Type ^ then digits for powers, _ then digits for subscripts.grams

MaizePrep is an independent study resource. It is not affiliated with, sponsored by, or endorsed by the University of Michigan. Course names and numbers are used only to describe which class the material covers. Every practice question is original, written in the style of the course.