When independent SRSs of sizes n1 and n2 are drawn from two Normal populations with parameters μ1, σ1 and μ2, σ2 the two-sample z statistic
z=(ˉx1−ˉx2)−(μ1−μ2)√σ21n1+σ22n2
has the N(0, 1) distribution.
The two-sample t statistic
t=(ˉx1−ˉx2)−(μ1−μ2)√s21n1+s22n2
does not have a t distribution. However, software can give accurate P-values and critical values using the Satterthwaite approximation.
An approximate level C confidence interval for μ1−μ2 is given by
(ˉx1−ˉx2)±t*√s21n1+s22n2
Here, t* is the value for the t(k) density curve with area C between −t* and t*, where k either is found by the Satterthwaite approximation or is the smaller of n1−1 and n2−1. The margin of error is
t*√s21n1+s22n2
Significance tests for H0:μ1=μ2 are based on the two-sample t statistic
t=ˉx1−ˉx2√s21n1+s22n2
The P-value is approximated using the t(k) distribution, where k either is found by the Satterthwaite approximation or is the smaller of n1−1 and n2−1.
If we can assume that the two populations have equal variances, pooled two-sample t procedures can be used. These are based on the pooled estimator
s2p=(n1−1)s21+(n2−1)s22n1+n2−2
of the unknown common variance and the t(n1+n2−2) distribution.