Unit 7 · Inference for Quantitative Data: Means, Paired t & Regression Slope
📐 AP Statistics Unit 7 — Student's t-Procedures & Slope InferenceCore Mastery · One-sample t-interval & t-test for μ (SE = s/√n, df = n - 1) · Matched-pairs t-test on mean difference μ_d vs. two-sample t-test · Two-sample t-statistic with SE = √(s₁²/n₁ + s₂²/n₂) · Confidence interval & t-test for regression slope β (df = n - 2) · Reading computer regression output (b₁, SE_{b₁}, s, R²)
Comprehensive mastery of Unit 7 · Inference for Quantitative Data: Means, Paired t & Regression Slope (Inference for Quantitative Data: Means & Slopes), featuring interactive geometric visualization, first-principles derivations, graded worked examples, and progressive hints.
● Definition 7.1 — Student's t-Inference for Means & Linear Regression Slope β
When the population standard deviation sigmaσ is unknown, inference for a population mean uses Student's t t-distribution with \( t = \frac{\bar{x} - \mu_0}{s/\sqrt{n}} \) and \( \text{df} = n - 1 \). For linear regression \( \mu_{y|x} = \alpha + \beta x \) under the LINE conditions (Linear, Independent, Normal, Equal variance), the test statistic for \( H_0: \beta = 0 \) is \( t = \frac{b_1}{\text{SE}_{b_1}} \) with \( \text{df} = n - 2 \).
Positive linear association in bivariate data \((x_i, y_i)\) modeled by ordinary least squares.
⊙ Interactive Explorer · Student's t-Distribution & Linear Regression Slope Inference Lab
interactive
Live numerical table for Student's t-Distribution & Linear Regression Slope Inference Lab
Parameter / Metric
Value
Test Statistic \(t = b_1 / SE_{b_1}\)\(t = 3.75\)
Degrees of Freedom \(n - 2\)\(\text{df} = 18\)
Decision at \(\alpha = 0.05\)Reject H₀ (β ≠ 0)
Drag the sliders or directly manipulate the canvas to explore how changes in the parameters govern Unit 7 · Inference for Quantitative Data: Means, Paired t & Regression Slope.
t-Distribution Upper Tail P-Value Region for Means & Slope
Upper-tail \(P\)-value region beyond test statistic \(t = \frac{\bar{x} - \mu_0}{s/\sqrt{n}} = 2.13\) used to evaluate evidence against \(H_0\).
Key Principle 7.1
One-sample t-interval & t-test for μ (SE = s/√n, df = n - 1)
Key Principle 7.2
Matched-pairs t-test on mean difference μ_d vs. two-sample t-test
Key Principle 7.3
Two-sample t-statistic with SE = √(s₁²/n₁ + s₂²/n₂)
Key Principle 7.4
Confidence interval & t-test for regression slope β (df = n - 2)
◆ Why It Works — Why Replacing σ with Sample s Introduces Student's t-Distribution
Extra Tail Uncertainty: Estimating unknown \(\sigma\) by random sample statistic \(s\) injects sample-to-sample denominator variability into \(t = \frac{\bar{x} - \mu}{s/\sqrt{n}}\), producing heavier tails than \(N(0,1)\) governed by \(\text{df} = n - 1\). As \(n \to \infty\), \(s \to \sigma\) and \(t_{\text{df}} \to N(0,1)\).
Worked Example 7.1 — One-Sample t-Confidence Interval for a Mean
Problem. An SRS of \( n = 25 \) lithium battery packs yields sample mean lifetime \( \bar{x} = 512\text{ cycles} \) and \( s = 30\text{ cycles} \). Given \( t^*_{24} = 2.064 \) for \( 95\% \) confidence, construct and interpret the interval.
▸ Show step-by-step solution
With \( \text{df} = 25 - 1 = 24 \) and \( SE = \frac{30}{\sqrt{25}} = 6.0 \): \[ 512 \pm 2.064(6.0) = 512 \pm 12.384 = (499.62, 524.38) \] We are \( 95\% \) confident that the true mean cycle life of all such battery packs is between \( 499.62 \) and \( 524.38 \) cycles.
Worked Example 7.2 — Matched-Pairs t-Test vs. Two-Sample t-Test
Problem. Sixteen runners each time a 5K race in Shoe A and Shoe B (random order). The differences \( d = \text{A} - \text{B} \) have \( \bar{d} = -18.0\text{ s} \) and \( s_d = 24.0\text{ s} \). Compute the paired \( t \)-statistic and degrees of freedom for \( H_0: \mu_d = 0 \).
▸ Show step-by-step solution
Because both measurements come from each runner, this is a matched-pairs design with \( n = 16 \) pairs and \( \text{df} = 15 \): \[ t = \frac{\bar{d} - 0}{s_d / \sqrt{n}} = \frac{-18.0}{24.0 / \sqrt{16}} = \frac{-18.0}{6.0} = -3.00 \]
Worked Example 7.3 — Two-Sample t-Standard Error & Zero-in-Interval Check
Problem. A \( 95\% \) two-sample \( t \)-interval for \( \mu_1 - \mu_2 \) is \( (-1.8, 4.6) \). At \( \alpha = 0.05 \), what conclusion follows for the two-sided test \( H_0: \mu_1 - \mu_2 = 0 \) vs. \( H_a: \mu_1 - \mu_2 \neq 0 \)?
▸ Show step-by-step solution
Because \( 0 \) lies inside \( (-1.8, 4.6) \), zero is a plausible value for \( \mu_1 - \mu_2 \) at the \( 95\% \) level; therefore the two-sided \( p\text{-value} > 0.05 \) and we fail to reject \( H_0 \).
Worked Example 7.4 — Regression Slope t-Test from Computer Output
Problem. A regression of exam score on study hours for \( n = 22 \) students gives slope \( b = 4.20 \) with \( SE_b = 1.05 \). Compute the \( t \)-statistic and degrees of freedom to test \( H_0: \beta = 0 \) vs. \( H_a: \beta > 0 \).
▸ Show step-by-step solution
For simple linear regression, \( \text{df} = n - 2 = 20 \) and \[ t = \frac{b - 0}{SE_b} = \frac{4.20}{1.05} = 4.00 \] With \( \text{df} = 20 \), \( P(T > 4.00) < 0.001 \), providing strong evidence of a positive linear relationship.
Common Trap — Unit 7 · Inference for Quantitative Data: Means, Paired t & Regression Slope
Always verify domain restrictions, non-zero denominators, and large-sample conditions before applying closed-form formulas.
Error Diagnosis — Common AP Statistics Exam Traps vs. Scoring Rubric Method
Common Student Trap
Why It Fails Mathematically
Correct Exam-Board Method
Writing hypotheses using sample statistics (e.g., \(H_0: \hat{p} = 0.5\) or \(H_0: \bar{x} = 10\))
Sample statistics are already known without testing; inference always targets unknown population parameters.
Always state hypotheses in terms of population parameters \(p, \mu, \mu_d,\) or \(\beta\) and define them in context.
Interpreting a \(p\)-value as "the probability that \(H_0\) is true"
Frequentist \(H_0\) is either true or false, not random; \(p\)-value conditions on \(H_0\) being true.
Assuming \(H_0\) is true, the \(p\)-value is the probability of obtaining a sample statistic as extreme or more extreme by chance alone.
Claiming causation from an observational study because \(n\) is large
Large sample size reduces random error but never removes confounding variables.
Only a randomized experiment with random assignment of treatments justifies a cause-and-effect conclusion.
Examiner's Secret — Unit 7 · Inference for Quantitative Data: Means, Paired t & Regression Slope
Write explicit method steps (M1) before substituting numerical values so partial credit is secured even if an arithmetic slip occurs.
[Practice 1] State the degrees of freedom for a one-sample \( t \)-interval based on \( n = 19 \) observations.
💡 Hint 1 of 3
For a one-sample \( t \)-procedure, \( \text{df} = n - 1 \).
💡 Hint 2 of 3
Substitute \( n = 19 \).
💡 Hint 3 of 3
Subtract \( 1 \).
\( \text{df} = 19 - 1 = 18 \).
[Practice 2] Given \( \bar{x} = 82 \), \( \mu_0 = 75 \), \( s = 14 \), and \( n = 49 \), compute the one-sample \( t \)-statistic.
[Practice 4] How many degrees of freedom does a linear regression slope \( t \)-test have with \( n = 30 \) bivariate data points?
💡 Hint 1 of 3
Two parameters (intercept \( \alpha \) and slope \( \beta \)) are estimated.
💡 Hint 2 of 3
Use \( \text{df} = n - 2 \).
💡 Hint 3 of 3
Compute \( 30 - 2 \).
\( \text{df} = 30 - 2 = 28 \).
[Practice 5] Computer output reports slope \( b = -1.50 \) and \( SE_b = 0.50 \). Find the \( t \)-ratio for testing \( H_0: \beta = 0 \).
💡 Hint 1 of 3
Use \( t = (b - 0) / SE_b \).
💡 Hint 2 of 3
Substitute \( b = -1.50 \) and \( SE_b = 0.50 \).
💡 Hint 3 of 3
Divide keeping the negative sign.
\( t = \frac{-1.50}{0.50} = -3.00 \).
Unit 7 · Inference for Quantitative Data: Means, Paired t & Regression Slope — 9-Point Investigative Task
9 pts
Calculator Active
In a quality-control investigation (Unit 7 · Inference for Quantitative Data: Means, Paired t & Regression Slope), a random sample of \(n = 70\) observations yields mean \(\bar{x} = 62\) and standard deviation \(s = 8\), with approximately normal population distribution.
(a)3 pts
Check the conditions for inference regarding the population mean \(\mu\).
Scoring Guideline & Justification
[M1]Verifies Random & 10% independence condition(2 pt)
[A1]Cites Central Limit Theorem since n = 70 >= 30(1 pt)
(b)3 pts
Compute the standard error \(\mathrm{SE} = \dfrac{s}{\sqrt{n}}\) rounded to 3 decimal places.
Scoring Guideline & Justification
[M1]Substitutes s = 8 and n = 70 into s/sqrt(n)(2 pt)
[A1]Obtains SE = 0.956(1 pt)
(c)3 pts
Using the Empirical Rule, state the approximate percentage of population values within \(\pm 1\) standard deviation of \(\mu = 62\).
Scoring Guideline & Justification
[M1]Uses shaded 1-sigma band [54, 70](1 pt)
[A1]States approximately 68%(2 pt)
Complete Worked Solution
(a) Randomization given; CLT holds since \(n = 70 \ge 30\). (b) \(\mathrm{SE} = \frac{8}{\sqrt{70}} \approx 0.956\). (c) By the Empirical Rule, approximately \(68\%\) falls within \([54, 70]\).