This test is used when you're looking at a numerical variable - for example, height
- and then comparing the averages of two separate populations or groups (e.g., males
and females).

Requirements

Two independent samples

Data should be normally distributed

The two samples should have the same variance

Null Hypothesis

H0: u1 - u2 = 0, where u1 is the mean of first population and u2 the mean of the
second.

As above, the null hypothesis tends to be that there is no difference between the
means of the two populations; or, more formally, that the difference is zero (so,
for example, that there is no difference between the average heights of two populations
of males and females).