Statistics 1 for Economics - 6B: T-Distribution and Inference

T-Distribution for Population Mean μ\mu (Unknown Variance)

  • Context of Application: The T-distribution is used for making inferences about the population mean μ\mu when the population variance σ2\sigma^2 is unknown.
  • Standardization vs. Studentization:
    • When σ2\sigma^2 is known, we use the Z-statistic: Z=Xˉ−μσ/n∼N(0,1)Z = \frac{\bar{X} - \mu}{\sigma / \sqrt{n}} \sim N(0, 1).
    • When σ2\sigma^2 is unknown, we replace σ\sigma with the sample standard deviation ss. This yields the T-statistic: T=Xˉ−μs/n∼t[df=n−1]T = \frac{\bar{X} - \mu}{s / \sqrt{n}} \sim t[df = n-1].
  • Degrees of Freedom (dfdf): The T-distribution is defined by its degrees of freedom, which for a single sample is n−1n - 1.
    • As dfdf increases, the T-distribution approaches the Normal distribution (N(0,1)N(0, 1)).
    • Example: For a sample size of n=9n = 9, the df=8df = 8.

Confidence Intervals for a Single Mean (σ2\sigma^2 unknown)

  • General Formula: μ=xˉ±tα/2,n−1(sn)\mu = \bar{x} \pm t_{\alpha/2, n-1} \left( \frac{s}{\sqrt{n}} \right).
  • Components:
    • xˉ\bar{x}: Sample mean.
    • tα/2,n−1t_{\alpha/2, n-1}: Critical value from the T-distribution table based on the desired confidence level (1−α1 - \alpha) and degrees of freedom.
    • ss: Sample standard deviation (s=s2s = \sqrt{s^2}).
    • nn: Sample size.
  • Example: Medicine Tablets:
    • Data: A sample of 10 tablets yielded measurements: 11.811.8, 11.711.7, 12.512.5, 11.611.6, 12.112.1, 11.711.7, 11.811.8, 11.411.4, 11.711.7, 11.711.7.
    • Summary Stats: n=10,xˉ=11.8,s2=0.09111,s=0.302n = 10, \bar{x} = 11.8, s^2 = 0.09111, s = 0.302.
    • Calculation for 95% Confidence:
      • 1−α=0.95  ⟹  α/2=0.0251 - \alpha = 0.95 \implies \alpha/2 = 0.025.
      • df=10−1=9df = 10 - 1 = 9.
      • Critical value t0.025,9=2.262t_{0.025, 9} = 2.262.
      • Interval: 11.8±2.262×0.30210=11.8±0.2211.8 \pm 2.262 \times \frac{0.302}{\sqrt{10}} = 11.8 \pm 0.22.
      • Result: 11.58<μ<12.0211.58 < \mu < 12.02.

Hypothesis Testing for a Single Mean (σ2\sigma^2 unknown)

  • Process Steps:
    1. Assumptions and Conditions: Random sample; population variance σ2\sigma^2 is unknown; population is normally distributed (X∼NX \sim N) or sample size is large enough to apply CLT (n≥30n \ge 30).
    2. Hypotheses:
      • H0:μ=μ0H_0: \mu = \mu_0 (e.g., H0:μ=12H_0: \mu = 12).
      • H1:μ≠μ0H_1: \mu \neq \mu_0.
    3. Test Statistic: T=Xˉ−μ0S/n∼t[df=n−1]T = \frac{\bar{X} - \mu_0}{S / \sqrt{n}} \sim t[df = n - 1].
    4. Rejection Region: For α=5\alpha = 5%, reject if ∣T∣≥t0.025,9=2.262|T| \ge t_{0.025, 9} = 2.262.
    5. Sample Realization:
      • tobs=11.8−120.302/10=−2.09t_{obs} = \frac{11.8 - 12}{0.302 / \sqrt{10}} = -2.09.
    6. Decision: Since −2.262≤−2.09≤2.262-2.262 \le -2.09 \le 2.262, we do not reject H0H_0.
    7. Conclusion: At the 5% significance level, there is insufficient evidence to conclude the mean active substance is different from 12 mg.

Determining the p-value with the T-Table

  • Definition: The probability of observing evidence as strong or stronger than the observed result, assuming H0H_0 is true.
  • Calculation (Two-sided): p-value=P(T≤−∣tobs∣)+P(T≥∣tobs∣)=2×P(T≥∣tobs∣)p\text{-value} = P(T \le -|t_{obs}|) + P(T \ge |t_{obs}|) = 2 \times P(T \ge |t_{obs}|).
  • Example Calculation:
    • tobs=−2.09,df=9t_{obs} = -2.09, df = 9.
    • 12p-value=P(T≥2.09)\frac{1}{2} p\text{-value} = P(T \ge 2.09).
    • From the T-table for df=9df=9:
      • t0.05,9=1.833t_{0.05, 9} = 1.833
      • t0.025,9=2.262t_{0.025, 9} = 2.262
      • Since 1.833<2.09<2.2621.833 < 2.09 < 2.262, then 0.05>12p-value>0.0250.05 > \frac{1}{2} p\text{-value} > 0.025.
      • Total p-valuep\text{-value} Range: 0.10≥p-value≥0.050.10 \ge p\text{-value} \ge 0.05.

Using the Statistical T-Table (Rules of Thumb)

  • General Lookup: Find the column for significance and row for dfdf.
  • Missing dfdf Values:
    • Use the closest value in the table (e.g., for df=153df = 153, use df≈160df \approx 160).
    • If exactly in the middle, use the smaller dfdf (e.g., for df=150df = 150, use df≈140df \approx 140).
  • Large Sample Approximations:
    • If 200≤df<400200 \le df < 400, use df≈200df \approx 200.
    • If df≥400df \ge 400, use df≈∞df \approx \infty, where tα=zαt_{\alpha} = z_{\alpha}.

Determining Sample Size

  • Objective: Achieve a specific margin of error (BB) for a confidence interval.
  • Formula: n≥(tα/2,n−1×sB)2n \ge \left( \frac{t_{\alpha/2, n-1} \times s}{B} \right)^2.
  • Iterative Process: Since nn changes, the degrees of freedom and resulting tα/2,n−1t_{\alpha/2, n-1} also change. Additionally, the sample standard deviation ss may vary between samples, requiring recalculation of the margin.
  • Accuracy Methods:
    • Smaller confidence level (1−α1-\alpha) yields smaller tt and a smaller margin.
    • Larger nn yields a smaller margin.

Inference About the Difference Between Two Means (μ1−μ2\mu_1 - \mu_2)

  • Conditions and Assumptions:
    • Quantitative data collected from independent random samples.
    • Populations are normally distributed, OR sample sizes are large (n1≥30n_1 \ge 30 and n2≥30n_2 \ge 30).
    • Population variances σ12\sigma_1^2 and σ22\sigma_2^2 are unknown.
  • General Case (Equal Variances Not Assumed):
    • Test Statistic: T=(xˉ1−xˉ2)−(μ1−μ2)s12n1+s22n2∼t[df]T = \frac{(\bar{x}_1 - \bar{x}_2) - (\mu_1 - \mu_2)}{\sqrt{\frac{s_1^2}{n_1} + \frac{s_2^2}{n_2}}} \sim t[df].
    • Degrees of Freedom (Welch-Satterthwaite): df=(s12n1+s22n2)2(s12/n1)2n1−1+(s22/n2)2n2−1df = \frac{(\frac{s_1^2}{n_1} + \frac{s_2^2}{n_2})^2}{\frac{(s_1^2 / n_1)^2}{n_1 - 1} + \frac{(s_2^2 / n_2)^2}{n_2 - 1}}.
    • Confidence Interval: (xˉ1−xˉ2)±tα/2,dfs12n1+s22n2(\bar{x}_1 - \bar{x}_2) \pm t_{\alpha/2, df} \sqrt{\frac{s_1^2}{n_1} + \frac{s_2^2}{n_2}}.

Example: Paint Drying Times

  • Problem: Compare drying times of two manufacturers.
    • Manufacturer 1: n1=45,xˉ1=185,s1=20n_1 = 45, \bar{x}_1 = 185, s_1 = 20.
    • Manufacturer 2: n2=40,xˉ2=201,s2=57n_2 = 40, \bar{x}_2 = 201, s_2 = 57.
    • Significance level α=10\alpha = 10%.
  • Hypothesis Test:
    • H0:μ1−μ2=0H_0: \mu_1 - \mu_2 = 0 vs. H1:μ1−μ2≠0H_1: \mu_1 - \mu_2 \neq 0.
    • df≈45df \approx 45 (calculated via formula, result 47.49947.499 rounded down to nearest table entry).
    • tcrit=t0.05,45=1.679t_{crit} = t_{0.05, 45} = 1.679.
    • tobs=185−201−020245+57240=−1.69t_{obs} = \frac{185 - 201 - 0}{\sqrt{\frac{20^2}{45} + \frac{57^2}{40}}} = -1.69.
    • Decision: Since ∣tobs∣>1.679|t_{obs}| > 1.679, reject H0H_0. There is sufficient evidence that mean drying times differ.
  • 99% Confidence Interval:
    • 1−α=0.99  ⟹  α/2=0.0051 - \alpha = 0.99 \implies \alpha/2 = 0.005.
    • t0.005,45=2.690t_{0.005, 45} = 2.690.
    • Interval: (185−201)±2.690×20245+57240=−16±25(185 - 201) \pm 2.690 \times \sqrt{\frac{20^2}{45} + \frac{57^2}{40}} = -16 \pm 25.

Special Case: Equal Population Variances (σ12=σ22\sigma_1^2 = σ_2^2)

  • Note: This is often referred to as the "pooled-variance" T-test. Keller Chapter 13.1 focuses primarily on the general case where equal variances are not assumed.
  • Pooled Variance Estimate: sp2=(n1−1)s12+(n2−1)s22n1+n2−2s_p^2 = \frac{(n_1 - 1)s_1^2 + (n_2 - 1)s_2^2}{n_1 + n_2 - 2}.
  • Test Statistic: T=(xˉ1−xˉ2)−(μ1−μ2)sp2(1n1+1n2)T = \frac{(\bar{x}_1 - \bar{x}_2) - (\mu_1 - \mu_2)}{\sqrt{s_p^2 (\frac{1}{n_1} + \frac{1}{n_2})}}.
  • Degrees of Freedom: df=n1+n2−2df = n_1 + n_2 - 2.
  • Confidence Interval: (xˉ1−xˉ2)±tα/2,dfsp2(1n1+1n2)(\bar{x}_1 - \bar{x}_2) \pm t_{\alpha/2, df} \sqrt{s_p^2 (\frac{1}{n_1} + \frac{1}{n_2})}.

Case Study: Remplene Synthetic Fiber

  • Research Question: Is the stretch of "Remplene" clothing reduced by washing?
  • Experiment: 13 pieces total. 6 are washed 10 times, 7 are not washed.
    • Washed (n=6): 12.3,13.7,10.4,11.4,14.9,12.612.3, 13.7, 10.4, 11.4, 14.9, 12.6.
    • Unwashed (n=7): 15.7,10.3,12.6,14.5,12.6,13.8,11.915.7, 10.3, 12.6, 14.5, 12.6, 13.8, 11.9.
  • SPSS Output Interpretation:
    • Group Statistics:
      • Washed Mean (xˉ1\bar{x}_1): 12.55012.550, Std Dev: 1.60341.6034.
      • Unwashed Mean (xˉ2\bar{x}_2): 13.05713.057, Std Dev: 1.77841.7784.
    • Levene's Test for Equality of Variances: F=0.135,Sig.=0.720F = 0.135, Sig. = 0.720. Since Sig.>0.05Sig. > 0.05, variances can be assumed equal.
    • T-test for Equality of Means:
      • Equal Variances Assumed: t=−0.536,df=11,Sig.(2−tailed)=0.603t = -0.536, df = 11, Sig. (2-tailed) = 0.603.
      • Equal Variances Not Assumed: t=−0.541,df=10.954,Sig.(2−tailed)=0.600t = -0.541, df = 10.954, Sig. (2-tailed) = 0.600.
    • Conclusion: Since the p-value(0.603)>0.05p\text{-value} (0.603) > 0.05, we fail to reject the null hypothesis. There is no significant evidence that washing reduces stretch.