We would like to compare the effectiveness of two painkillers, drug A and drug B. To do this, we randomly divide 60 test subjects into two groups. The first group receives drug A, the second group receives drug B. With an independent t-test we can now test whether there is a significant difference in pain relief between the two drugs.