Degrees of Freedom
Degrees of freedom count how many independent pieces of information about the spread you have left after you've used the data to estimate the somethings.
The statistic has an estimate of in the denominator. The is just the "amount of information" behind that estimate. More means a more reliable estimate and a curve closer to the normal.
Intuition
Take 3 numbers whose sample mean is 5. You can choose the first two freely, say 4 and 9, but the third is forced to be 2, because the deviations from must add to zero:
So 3 numbers give only 2 free deviations. You used up one piece of information to estimate with , and is built from what's left, which is pieces.
Difference of means
If the statistic we test is a difference of mean,
Then the degree of freedom changes, since there are two things that we can independently choose and some are fixed.
You have two groups, and each has its own mean to estimate:
- values, minus 1 for , leaves free deviations.
- values, minus 1 for , leaves free deviations.
| Situation | Observations | Means/parameters estimated | |
|---|---|---|---|
| One mean | 1 () | ||
| Simple regression | 2 (intercept and slope ) | ||
| Two means, pooled | 2 ( and ) |