There are several kinds of t-tests, but the most common is the two sample t-test also known as the independent samples t-test. The two sample t-test tests whether or not two independent populations have the same mean values for a measure. For example, a researcher could use a two sample t-test to test whether a treatment and a control group have the same mean posttest score for attitude toward raising gasoline taxes.