The t test can be used to compare sample means to population means, compare means between independent samples, or compare readings within a single sample taken at different times. It involves testing a hypothesis about whether two means are statistically significantly different. The document provides examples of applying the t test to compare a sample mean to a population mean, compare means between independent male and female samples, and compare blood pressure readings within a single sample taken before and after treatment.