In Epidemiology, T tests are used when we want to compare the means of two groups to understand the effect of an exposure, treatment, or intervention. For example, a T test can be used to compare the mean blood pressure of a group that received a new medication to a control group that received a placebo.