Another common instance of hypothesis testing is in the comparison of two groups. Given a sample from each of two populations, one thing that we might want to do is to compare the two population means; are they equal or is one significantly larger than the other? We discuss how to do this under the assumption that the populations both have a Normal distribution, with the same variance.
Let be realisations of IID random variables with distribution and let be realisations of IID random variables with distribution. How can we test the null hypothesis
against any of the alternatives , and ? The testing approach depends on whether the samples are paired, or unpaired.
In a paired (matched) sample, pairs of individuals are sampled together from the two populations, according to the value of a second variable which is also thought to influence the value of the variable of interest.