Degrees of Freedom vs T-Distribution

Both terms below come up in the same part of the course, and students mix them up. Here is each one defined on its own, side by side, so you can see where they part company.

Degrees of freedom

Confidence intervals

Degrees of freedom count the independent pieces of information left after estimation, and they select which t or chi-square curve a statistic follows.

Degrees of freedom, written dfdf, count the independent pieces of information a statistic has left after some are spent estimating other quantities. Make that concrete. Four measurements with a sample mean of 10 must total 40. Pick the first three freely, say 7, 12, and 6, and the fourth is forced: 4025=1540 - 25 = 15. Three values were free, so df=3=n1df = 3 = n - 1.

The count matters because it selects the curve that sets the multiplier. A one-sample tt interval at 95% uses tt^* at n1n - 1 degrees of freedom: 2.262 when n=10n = 10, 2.064 when n=25n = 25, and 1.984 when n=100n = 100. Same level, three multipliers, differing only in how much information ss carries. All approach z=1.960z^* = 1.960 from above without arriving.

n1n - 1 is not a universal rule. A paired tt uses one fewer than the number of pairs, not of measurements. A chi-square test on an rr by cc table uses (r1)(c1)(r-1)(c-1), which depends on the shape of the table, not the sample size: a 2 by 3 table carries 2 degrees of freedom whether the counts total 60 or 6000.

Two habits cause most of the damage. One is reading the table at row nn: a sample of 20 has 19 df and t=2.093t^* = 2.093, while row 20 gives 2.086. The other is expecting a whole number: Welch's two-sample tt with s1=6s_1 = 6, n1=12n_1 = 12, s2=10s_2 = 10, and n2=15n_2 = 15 returns df=23.40df = 23.40. Nothing is counted there: it is the tt curve that best approximates a statistic whose distribution is not tt, and that density exists for any positive dfdf.

The Welch value is penned in by min(n11,n21)dfn1+n22\min(n_1 - 1, n_2 - 1) \le df \le n_1 + n_2 - 2, so 23.40 must land between 11 and 25, a fast data entry check. A calculator reports the decimal; a printed table forces a whole row, so round down. tt^* is 2.069 at 23 df against 2.067 at 23.40, so the interval comes out slightly wide, not falsely narrow.

Full entry for degrees of freedom

t-distribution

Random variables and distributions

The t-distribution is a symmetric, bell-shaped curve with heavier tails than the normal, used for inference about a mean when the population SD is unknown.

The tt-distribution is not one curve but a family, indexed by the degrees of freedom. It is the distribution of t=xˉμs/nt = \frac{\bar{x} - \mu}{s / \sqrt{n}} (x-bar minus mu, over s divided by root n) when the data come from a normal population. Swapping the fixed σ\sigma (sigma) for the sample standard deviation ss, which itself changes from sample to sample, is what puts the extra weight in the tails. Every member is symmetric about 0, and the family closes on the standard normal as the degrees of freedom grow.

The numbers make that convergence concrete. For a 95 percent interval the t-table gives t=2.145t^* = 2.145 at 14 degrees of freedom, 2.0422.042 at 30, 1.9841.984 at 100 and 1.9621.962 at 1000, against z=1.960z^* = 1.960 for the normal. The gap is 8.6 percent of the critical value at 14 degrees of freedom and about 0.1 percent at 1000.

"The sample is small so use tt, and large so use zz" is the wrong rule, and it is the one most students carry in. The trigger is whether σ\sigma is known, not how big nn is. With 500 observations and a standard deviation estimated from them, the correct model is tt on 499 degrees of freedom, which happens to sit very close to the normal. Knowing σ\sigma with n=8n = 8 would put you back on zz.

The heavier tails change verdicts, not just widths. A statistic of 2.00 read on tt with 14 degrees of freedom has a two-sided p-value of 0.0653, against the 0.0455 the normal returns for the same 2.00, so at α=0.05\alpha = 0.05 one model rejects and the other does not.

Those tails cover the uncertainty in ss and nothing else. They do not repair a skewed population or a stray outlier, which is why a tt procedure still asks you to look at the shape of the sample first. The tt-distribution enters the course at topic 4.2 of Unit 4, Inference for Quantitative Data: Means.

Full entry for t-distribution

Where each one fits in the course