The 2-sample t-test takes your sample data from two groups and boils it down to the t-value. ... For the 2-sample t-test, the numerator is again the signal, which is the difference between the means of the two samples. For example, if the mean of group 1 is 10, and the mean of group 2 is 4, the difference is 6.