When independent samples of sizeand
aretaken from two normally distributed populations with means
and
andknown population standard deviations
and
therandom variable
isnormally distributed with mean
andvariance
isnormally distributed. We can test for the equality of
and
bydoing a hypothesis test using
If
then
(1)
Ifisnot known then we cannot use the last expression above. We canhowever work out an estimate for the variance
usingthe sample variances
and
Wecan use these as two estimates of
andpool them by weighting them according to their sample size or degreesof freedom:
so
Replacingin(1) with the pooled standard deviation
givesthe random variable
whichhas a
distributionwith
degreesof freedom.
The assumptionmustbe made but in practice we can use this test if
and
arenot dissimilar – they do not differ by a factor of more than about2.
Example: Test for the equality of the two means of the two sets ofdata at the 10% level:
A: 51.4, 76.7, 73.7, 66.2, 65.5, 49.7, 65.8, 62.1, 75.8, 62.0,72.0, 55.0, 79.7, 65.4, 73.3
B: 86.0, 59.7, 68.6, 98.6, 87.7, 69.0, 80.2, 78.1, 69.8, 77.2
No assumption is made as two which is greater so we carry out atwo tailed test:
and
Reject the null hypothesis.