Learning Objectives

By the end of this note, you will choose $t$ over $z$ when $\sigma$ is unknown and $n<30$, compute pooled $t=(\bar{x}{1}-\bar{x}{2})/\sqrt{s_{p}^{2}(1/n_{1}+1/n_{2})}$, compute Welch $t$ when variances differ, and decide with $\text{df}$ based critical values using a BS 2081 pilot example.

Why Small Samples Use $t$

Large sample $z$ replaces $\sigma$ with $s$ and leans on CLT. Small samples cannot absorb that substitution. Estimating $\sigma$ from the same few observations adds uncertainty that widens tail risk. The $t$ distribution with heavier tails corrects for that. Use $t$ when $\sigma$ is unknown and $n<30$ and the population is approximately normal. For two independent groups, add the assumption about variances to choose pooled versus Welch $t$.

Grouped Framework: Conditions, Pooled Variance, and Welch

Condition 1: Small and independent. Samples are independent and at least one $n<30$. For $n\ge 30$ in both groups, $z$ with $s$ suffices. For paired before after on the same staff, use paired $t$.

Condition 2: Approximate normality. Check with a histogram or normal quantile plot of each group. Small $n$ plus strong skew or heavy outliers distorts $t$. In that case consider a transform or a non parametric test.

Condition 3: Variance handling. Decide between pooled and Welch.

  • Pooled $t$ assumes $\sigma_{1}=\sigma_{2}$ and combines variance estimates into one $s_{p}^{2}$. Use when sample SDs are close and the study design suggests common spread.
  • Welch $t$ allows $\sigma_{1}\neq\sigma_{2}$ and uses separate variances. Prefer Welch when SDs differ sharply or when in doubt, because many software packages default to it and it protects the Type I rate.

One sample $t$ reminder. For a single small mean,

\[t=\frac{\bar{x}-\mu_{0}}{s/\sqrt{n}},\quad \text{df}=n-1\]

Pooled two sample $t$. Compute

\[s_{p}^{2}=\frac{(n_{1}-1)s_{1}^{2}+(n_{2}-1)s_{2}^{2}}{n_{1}+n_{2}-2}\] \[t=\frac{\bar{x}_{1}-\bar{x}_{2}}{s_{p}\sqrt{1/n_{1}+1/n_{2}}},\quad \text{df}=n_{1}+n_{2}-2\]

Pooled SE is $s_{p}\sqrt{1/n_{1}+1/n_{2}}$.

Welch two sample $t$. Compute

\[t=\frac{\bar{x}_{1}-\bar{x}_{2}}{\sqrt{s_{1}^{2}/n_{1}+s_{2}^{2}/n_{2}}}\] \[\text{df}=\frac{\left(s_{1}^{2}/n_{1}+s_{2}^{2}/n_{2}\right)^{2}}{(s_{1}^{2}/n_{1})^{2}/(n_{1}-1)+(s_{2}^{2}/n_{2})^{2}/(n_{2}-1)}\]

Round df down for the table. Welch df is smaller than pooled df when variances differ.

Critical values. Read $t^{*}$ from the $t$ table at chosen $\alpha$ and df.

df One tailed $0.05$ Two tailed $0.05$ Two tailed $0.01$
10 $1.812$ $2.228$ $3.169$
15 $1.753$ $2.131$ $2.947$
20 $1.725$ $2.086$ $2.845$
30 $1.697$ $2.042$ $2.750$
$\infty$ $1.645$ $1.960$ $2.576$

As df rises, $t^{}$ approaches $z^{}$.

Confidence interval for $\mu_{1}-\mu_{2}$ with $t$.

\[(\bar{x}_{1}-\bar{x}_{2})\pm t^{*}\times \text{SE}\]

Use $t^{*}$ at df used for the test and the matching SE (pooled or Welch).

Worked Example: Pilot Productivity Comparison in BS 2081

Context. In Bhadra 2081, Province Public Service Training Centre runs a pilot on document digitization. Two independent batches of new recruits are assigned to Method A and Method B. Same task, same rubric, independent participants, no pairing. Supervisors test whether Method A yields higher mean output than Method B at $\alpha=0.05$ right tailed. Sample SDs are close, so the pilot uses pooled $t$. Budget note: output is scored in cases per day, and a $5$ case gap saves about NPR 40000 per month in backlog cost.

Group $n$ $\bar{x}$ cases $s$ cases
Method A $12$ $85$ $8$
Method B $10$ $78$ $10$

Populations are approximately normal on this standardized task, and random assignment supports independence.

Step 1: Hypotheses.

\[H_{0}:\mu_{A}=\mu_{B}\quad\text{vs}\quad H_{1}:\mu_{A}>\mu_{B}\]

Right tailed, difference $0$ under $H_{0}$.

Step 2: Pooled variance.

\[s_{p}^{2}=\frac{(12-1)8^{2}+(10-1)10^{2}}{12+10-2}=\frac{11(64)+9(100)}{20}=\frac{704+900}{20}=\frac{1604}{20}=80.2\] \[s_{p}=\sqrt{80.2}\approx 8.96\]

Step 3: SE and $t$.

\[\text{SE}=8.96\sqrt{1/12+1/10}=8.96\sqrt{0.0833+0.10}=8.96\sqrt{0.1833}\approx 8.96(0.428)\approx 3.84\] \[t=\frac{85-78}{3.84}=\frac{7}{3.84}\approx 1.82\] \[\text{df}=12+10-2=20\]

Step 4: Critical value and decision. For df $20$, right tailed $\alpha=0.05$, $t^{*}=1.725$. Since $1.82>1.725$, reject $H_{0}$.

Step 5: Interval and Welch check. 95 percent two sided CI with $t^{*}=2.086$:

\[7\pm 2.086(3.84)=7\pm 8.01=(-1.01,15.01)\]

The interval includes $0$ for a two sided $95$ percent statement while the one sided test rejects, which is consistent because one sided and two sided thresholds differ. Welch $t$ for comparison uses

\[t_{W}=\frac{7}{\sqrt{64/12+100/10}}=\frac{7}{\sqrt{5.333+10}}=\frac{7}{3.916}\approx 1.79\]

with Welch df $\approx 17$, critical $1.74$ right tailed, so Welch would also reject. When SDs differ more, Welch protects better than pooled.

Conclusion. At 5 percent significance, the pilot supports higher mean output under Method A by about $7$ cases per day, with two sided uncertainty that still overlaps $0$ at $95$ percent, so management scales with a larger confirmatory sample before permanent change.

Self-check

Try this (calculable): In Asoj 2081, compare exam scores of two teaching cohorts on the same syllabus. Cohort 1: $n_{1}=15$, $\bar{x}{1}=72$, $s{1}=10$. Cohort 2: $n_{2}=18$, $\bar{x}{2}=78$, $s{2}=12$. Test $H_{0}:\mu_{1}=\mu_{2}$ vs $H_{1}:\mu_{1}\neq\mu_{2}$ at $\alpha=0.05$ two sided using pooled $t$, then check Welch.

(a) Compute $s_{p}^{2}$, $\text{SE}$, $t$, and df $=n_{1}+n_{2}-2$. (b) Give critical $\pm t^{*}$ for df $31$ and decide. (c) Compute Welch $t$ and its approximate df, and note whether conclusions agree.

Answer: (a) $s_{p}^{2}=(14(100)+17(144))/31=3848/31\approx124.13$, $s_{p}\approx11.14$, $\text{SE}=11.14\sqrt{1/15+1/18}\approx 3.90$, $t=(72-78)/3.90\approx -1.54$, df $=31$. (b) $t^{*}\approx\pm 2.04$, $ t =1.54<2.04$, fail to reject $H_{0}$, no evidence of mean difference, gap $-6$ points. (c) $t_{W}=(72-78)/\sqrt{100/15+144/18}\approx -6/\sqrt{6.667+8}\approx -6/3.829\approx -1.57$, Welch df $\approx 30$, $t^{*}\approx\pm2.04$, also fail to reject. Pooled and Welch agree when SDs are similar.

Check: build 95 percent CI $ -6\pm 2.04(3.90)=(-13.96,1.96)$ and verify it covers $0$.

Summary

Use $t$ for independent means when $\sigma$ is unknown and small samples require heavier tails and df based thresholds. Compute $s_{p}^{2}$ and $t=(\bar{x}{1}-\bar{x}{2})/(s_{p}\sqrt{1/n_{1}+1/n_{2}})$ with df $=n_{1}+n_{2}-2$ when pooling is justified, or Welch $t=(\bar{x}{1}-\bar{x}{2})/\sqrt{s_{1}^{2}/n_{1}+s_{2}^{2}/n_{2}}$ with Welch df when variances differ. Compare $ t $ to $t^{*}$ at $\alpha$ or read $p$, and report the gap with a $t$ based interval. Welch acts as the safe default when SDs look different.

Key Takeaways

  • Choose $t$ when $\sigma$ is unknown and any $n<30$, verify approximate normality, and keep independent and paired designs distinct.
  • Pool only when equal variance is plausible: $s_{p}^{2}=((n_{1}-1)s_{1}^{2}+(n_{2}-1)s_{2}^{2})/(n_{1}+n_{2}-2)$ and $\text{df}=n_{1}+n_{2}-2$.
  • Use Welch $t=(\bar{x}{1}-\bar{x}{2})/\sqrt{s_{1}^{2}/n_{1}+s_{2}^{2}/n_{2}}$ with Welch df when variances differ or when in doubt.
  • Treat $ t <t^{*}$ as fail to reject, not proof of equality, and show the gap in cases, points, or minutes with its interval.
  • As df grows, $t^{}$ moves toward $z^{}$: $2.086$ at df $20$ versus $1.96$ at large $n$, so small $n$ makes rejection harder for the same gap.

Discussion

  • Your colleague uses $z= (\bar{x}{1}-\bar{x}{2})/\sqrt{s_{1}^{2}/n_{1}+s_{2}^{2}/n_{2}}$ with $n_{1}=10$, $n_{2}=12$. What risk does this understate, and how does $t$ with df $20$ or Welch correct it?
  • Two groups give $s_{1}=4$ and $s_{2}=12$ on the same scale. Why is pooling risky here, and how would you justify Welch in the methods note?
  • A pilot fails to reject with $t=1.2$, df $=12$. How does doubling $n$ change SE, df, and power for the same true gap, and what FY 2081/82 sampling plan follows?

Exercises

  1. Group 1 $n_{1}=10$, $\bar{x}{1}=45$, $s{1}=6$; Group 2 $n_{2}=12$, $\bar{x}{2}=40$, $s{2}=8$, test $\neq$ at $0.05$. Compute $s_{p}^{2}$, SE, $t$, df $=20$, critical $\pm2.086$, and decision.
  2. Same data, compute Welch $t$ and approximate df, compare to pooled result, and give 95 percent CIs for both methods.
  3. Single small sample: $n=16$, $\bar{x}=34$ min, $s=8$ min, test $>$ against $\mu_{0}=30$ at $0.05$. Compute $t=2.0$, df $=15$, critical $1.753$, $p$, and conclusion in minutes.
  4. Teaching cohorts $n_{1}=15$, $n_{2}=18$ as in Try This: construct 95 percent and 99 percent CIs and discuss width growth with $t^{*}$.
  5. Explain why $t$ critical values exceed $z$ critical values at small df, using df $10$ two tailed $2.228$ versus $z$ $1.96$, and what this implies for early BS 2081 pilots that report $z$ with $n=12$.