Student's t-test is used to determine if two population means are statistically different based on random samples from those populations. It calculates a ratio of the difference between sample means to the variability within each sample. If the t-value is large enough based on the sample sizes and pre-set significance level (often 0.05), then the population means are considered statistically different. The t-test is commonly used to compare outcomes before and after an intervention or between treated and control groups.