Learn / Biostatistics / Hypothesis testing
Comparing means: the t-tests
15 minute read · 6-question quiz
What you will learn
Choose between a one-sample, two-sample (independent) and paired t-test
Carry out and interpret a two-sample and a paired t-test from summary data
Check the assumptions and know what to do if they fail
The t-test compares means. It uses the sample SD to estimate the standard error and refers the test statistic to a t distribution (fatter tails than the normal, especially for small samples).
Which t-test?
Assumptions
- Independent observations (apart from deliberate pairing). Violated by repeated measures on the same person or by clusters. This is the most serious assumption.
- Approximately normal data in each group, or normally distributed differences for the paired test. Matters mostly for small samples (under about 30 per group); the central limit theorem protects larger ones.
- Similar variances in the two groups for the pooled version. If SDs differ markedly, use Welch's t-test, which does not pool and adjusts the degrees of freedom. Many statisticians now use Welch by default.
What to do if assumptions fail
- Skewed positive data: log-transform and analyse the logs (results are ratios of geometric means).
- Small samples with skew or outliers: use the Wilcoxon / Mann-Whitney tests (next lesson).
- Clustered or repeated data: use methods designed for them, such as mixed models or GEE.
Summary
One-sample, independent and paired t-tests match different designs; pick by design.
t = difference ÷ SE; compare with a t distribution with the correct degrees of freedom.
Always report the difference with its 95% CI and the p-value.
Paired analysis uses within-person differences and is more powerful when pairing is real.
Use Welch for unequal SDs; transform or use rank tests for strong skew in small samples.
Check your understanding
Draft study guide. Spotted an error or something unclear? Tell us at hello@scintria.com. This is educational material, not clinical or regulatory advice.