t Tests
The test for a mean requires the population standard deviation to standardize the sample mean. In practice is almost never known; it must be estimated from the sample by . Estimating the standard error introduces extra uncertainty, and the distribution accounts for it.
The choice between and turns on whether is known, not on sample size. Rules of the form “use when ” conflate this choice with the central limit theorem’s large-sample guidance (see Sampling Distributions): with known, the test applies at any under its normality assumption, and with unknown the test is the default at any . Small samples are why the distribution needs heavier tails, not why it is chosen.
The t statistic and its family of distributions
Every statistic has the skeleton
which measures how many standard errors the estimate lies from the value specified under the null hypothesis. For the mean-based tests below under their normal-model assumptions, this ratio follows a distribution under the null: symmetric and bell-shaped like the standard normal, but with heavier tails whose weight depends on the degrees of freedom . With small samples, is an unstable estimate—a single observation can move it sharply in either direction—so heavier tails protect against underestimating the standard error. As grows, estimates more precisely and the distribution approaches the standard normal.
The three tests below differ only in what the estimate and its standard error are.
Choosing the test from the design
| Research design | Sample estimate | Null value | Test | |
|---|---|---|---|---|
| Sample mean vs. a reference value | One-sample | |||
| Two measurements per unit, or matched pairs | (mean difference) | Paired | (pairs) | |
| Two unrelated groups | Independent | (pooled) |
Here is the number of observations (or number of pairs for the paired test), and are the two group means.
One-sample t test
where is the sample mean, the hypothesized population mean, the sample standard deviation, and the estimated standard error of the mean.
Independent-samples t test
Two groups are independent when each unit contributes one observation to one group and knowing one group’s scores gives no information about particular scores in the other.
Pooled (Student) version
If the two populations have the same variance (homogeneity of variances), a weighted average of the sample variances estimates it better than either alone:
with the group sample variances. The standard error of the mean difference and the test statistic are
Welch’s version
When population variances may differ, pooling is inappropriate — especially when the larger variance attaches to the larger group, which inflates and the standard error with it. Welch’s test estimates each group’s variance separately:
and adjusts the degrees of freedom with the Satterthwaite approximation:
which is fractional and is best computed by software. When the two standard errors coincide even under unequal variances, because the pooled variance is then the unweighted mean of and .
The choice between the versions is not neutral in practice. In one comparison with , , , , and a mean difference of , the pooled test gives with (not significant), while Welch’s gives with (significant): the pooled test pays for its inflated standard error with a loss of power. Welch’s test is therefore a reasonable default. Its degrees of freedom and critical values cost almost nothing when the variances are in fact equal — the power loss is negligible — while it remains valid when they are not.
Paired-samples t test
Observations are paired when the same units are measured under both conditions, measured at two times, or deliberately matched between conditions. Pairing is analyzed through difference scores. The subtraction direction must be fixed before the hypotheses are stated, because it determines the sign of every difference and of the mean difference . Writing $D_i = X_{2i}
- X_{1i}iX_{1i}, X_{2i}\mu_Dt$ test on the differences:
where is the standard deviation of the difference scores and is the number of pairs. Because stable individual differences cancel inside each , the standard error of can be much smaller than that of an independent-samples comparison of the same conditions — though the gain depends on how strongly the paired measurements correlate, and is not guaranteed. With more than two repeated conditions, the Repeated-Measures Comparisons page extends the same participant-specific difference logic to pairwise and complex contrasts.
Assumptions by design
| Assumption | Paired | Independent |
|---|---|---|
| Independence | Pairs are independent of other pairs | Observations are independent within and across groups |
| Distributional shape | Population of difference scores is approximately normal | Outcome is approximately normal within each population |
| Outliers | Sensitive to outliers in the difference scores | Sensitive to outliers within either group |
| Variances | No homogeneity-of-variance assumption | Pooled version assumes equal population variances |
The normality assumptions concern the population of difference scores (paired) or each group’s outcome distribution (independent), and both tests are outlier-sensitive because or is not robust.
Confidence intervals and effect sizes
A two-sided confidence interval for the estimated quantity follows the same form throughout: estimate , where is the two-tailed critical value at the chosen confidence level for the relevant (interpretation on the Confidence Intervals page). For an independent-samples difference the interval estimates ; an interval containing represents values compatible with no population difference. For a paired design the interval estimates .
Standardized effect sizes for these comparisons use design-specific denominators: the sample standard deviation for a one-sample contrast, the pooled standard deviation for independent samples, and for paired designs. The Effect Sizes page develops Cohen’s and its interpretation.
Reporting
A result should be reported with the statistic, its degrees of freedom, the -value, the confidence interval, and the effect size, in a sentence that states the direction and magnitude of the difference. Schematic templates:
- Paired: scores changed by on average, 95% CI , , ,
- Independent: group 1 scored an average of points higher than group 2, 95% CI , , ,
The hypothesis-testing and p-values pages cover the decision procedure and tail-probability interpretation that these reports build on; the statistical power page covers how design choices such as pairing and sample size affect a test’s sensitivity.