Home page for accesible maths 3 Hypothesis testing

Style control - access keys in brackets

Font (2 3) - + Letter spacing (4 5) - + Word spacing (6 7) - + Line spacing (8 9) - +

3.3 Two sample tests

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 x1,…,xn be realisations of IID random variables with Normal⁡(μX,σ2) distribution and let y1,…,ym be realisations of IID random variables with Normal⁡(μY,σ2) distribution. How can we test the null hypothesis

H0:μX-μY=d

against any of the alternatives H1:μX-μY≠d, H1:μX-μY<d and H1:μX-μY>d? The testing approach depends on whether the samples are paired, or unpaired.

Definition.

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.