Distribution of the difference between two means
It often becomes important to compare two population means. Knowledge of the sampling distribution of the difference between two means is useful in studies of this type. It is generally assumed that the two populations are normally distributed.
Sampling distribution of

Plotting sample differences against frequency gives a normal distribution with mean equal to

which is the difference between the two population means.
Variance
The variance of the distribution of the sample differences is equal to (

/

) + (

/

).
Therefore, the standard error of the differences between two means would be equal to

.
Converting to a z score
To convert to the standard normal distribution, we use the formula,

. We find the z score by assuming that there is no difference between the population means.