Two-Sample t Intervals and Reading t Output

AP Statistics · Unit 4 — Inference for Quantitative Data: Means

The interval for a difference in means

With two independent random samples, the confidence interval for $\mu_1-\mu_2$ is

$$(\bar x_1-\bar x_2)\pm t^*\sqrt{\frac{s_1^2}{n_1}+\frac{s_2^2}{n_2}}$$

Conditions: both samples random; independent of each other; each population normal or each sample size at least $30$ (check a dotplot of each sample for strong skew or outliers when $n$ is small); and the $10\%$ condition for each. AP Statistics does not pool the two variances — the formula above is the only one used.

Which degrees of freedom?

Technology computes a fractional $df$ (the Welch formula), typically between $\min(n_1-1,n_2-1)$ and $n_1+n_2-2$. By hand, the conservative choice is $df=\min(n_1-1,\,n_2-1)$: it gives a slightly larger $t^*$ and a slightly wider interval, which is acceptable on the exam as long as you state it. Never use $df=n_1+n_2-2$; that belongs to the pooled procedure.

Reading output and interpreting

Calculator or software output lists the difference, the standard error, $df$, and either an interval or a $t$ with its P-value. Example: $n_1=25$, $\bar x_1=72$, $s_1=8$; $n_2=30$, $\bar x_2=66$, $s_2=10$. The standard error is $\sqrt{64/25+100/30}=\sqrt{5{,}89}\approx2{,}43$; with $df=24$, $t^*=2{,}064$ for $95\%$, giving $6\pm5{,}0$, or $(1{,}0;\,11{,}0)$. Interpretation: "we are $95\%$ confident that the true mean of group 1 exceeds that of group 2 by between $1{,}0$ and $11{,}0$ units". An interval that excludes $0$ is evidence of a difference; one that includes $0$ is not.

Worked example: constructing and interpreting a two-sample interval

A school tries two review methods. Group A ($n=25$, randomly assigned) has a mean score of $72$ and standard deviation $8$; group B ($n=30$) has a mean of $66$ and standard deviation $10$. Dotplots of both groups are roughly symmetric with no outliers. Construct a $95\%$ confidence interval for $\mu_A-\mu_B$ and say whether there is evidence that the two methods differ.

Solution

State: $\mu_A-\mu_B$ is the difference in the true mean scores of the two methods; estimate it with a $95\%$ two-sample $t$ interval.

Check: because of random assignment the two groups are independent; $n_A=25$ and $n_B=30$: group A is under $30$ but the dotplot is roughly symmetric with no outliers, so $t$ may be used; group B is $\ge30$.

Calculate: standard error $\sqrt{\dfrac{8^2}{25}+\dfrac{10^2}{30}}=\sqrt{2.56+3.33}\approx2.43$. Conservative $df=\min(24,29)=24$, $t^*=2.064$.

$$(72-66)\pm2.064\cdot2.43=6\pm5.0\ \Rightarrow\ (1.0;\,11.0)$$

Conclusion: we are $95\%$ confident that method A gives a true mean score higher than B by between $1.0$ and $11.0$ points. The interval does not contain $0$, so there is convincing evidence the two methods differ; because of random assignment, this difference can be attributed to the method.

Common mistake

AP does not use $df=n_1+n_2-2$ and does not pool variances — seeing these two things in your work tells the grader you learned from the wrong book. The interval is about the difference of two means, not "every student in group A scores from $1$ to $11$ points more than group B". And with small samples, you must mention the shape of each sample, not just one.

Key takeaway

Two-sample interval: $(\bar x_1-\bar x_2)\pm t^*\sqrt{s_1^2/n_1+s_2^2/n_2}$, no pooled variance. By hand take $df=\min(n_1-1,n_2-1)$; the calculator gives a non-integer $df$. Check conditions for each sample. An interval that excludes $0$ is evidence of a difference.

← Two Samples: Independent or Paired? · All AP Statistics lessons · Practice AP Statistics questions (free, instant scoring) · Correlation and the Least-Squares Line →