# Comparing Two Means

## Overview

In Antevorta we looked at how we can incorporate categorical predictors into the linear model. When we do this the model parameters represent differences between means. A more traditional way to conceptualise this situation is the *t*-test. This tutorial looks at two variants of this test:

- The independent
*t*-test uses the*t*-statistic to establish whether two means collected from independent samples differ significantly. - The paired-samples
*t*-test (aka the dependent*t*-test and the matched-pairs*t*-test) uses the*t*-statistic to establish whether two means collected from the same sample (or related observations) differ significantly.

Both of these tests are special cases of the GLM, but are often taught as independent entities, so this section is really just to tie in with how you might be taught. However, look back at the material in Antevorta to see how the same comparisons between means can be made within the framework of the linear model.