A t-test is used to find out if two sets of data are significantly different from each other. It compares the two sets of data and their means. You could use a t-test to determine if a difference in grades exists between children attending a private or public school... This video provides a highly simplified explanation of this test for someone who is new to biostatistics.