Statistics & Analysis

T Test

Definition

A t test is a parametric statistical test used to determine whether there is a statistically significant difference between the means of two groups or between a sample mean and a known population value. The test produces a t statistic, which represents the ratio of the difference between group means to the variability within the groups, standardized by sample size. The t statistic is compared to a t distribution with degrees of freedom determined by the sample sizes to obtain a p value. There are three main variants: the one sample t test (comparing a sample mean to a hypothesized value), the independent samples t test (comparing means between two unrelated groups), and the paired samples t test (comparing means from two related measurements on the same subjects).

Why it matters

The t test is one of the most widely used statistical procedures in scientific research, forming the foundation for comparing group means across virtually every discipline. In clinical trials, it is used to compare outcomes between treatment and control groups. In experimental psychology, it compares performance under different conditions. In education research, it assesses differences in test scores between instructional methods. Understanding when and how to apply each variant of the t test is essential for correctly analyzing comparative data. Despite its simplicity, the t test remains powerful and appropriate for many research designs, and its assumptions and limitations must be understood to avoid incorrect inferences.

How it works

The independent samples t test calculates the difference between two group means and divides it by the pooled standard error, which accounts for the variability within each group and the sample sizes. When the variances of the two groups are unequal, Welch's t test is preferred, as it adjusts the degrees of freedom to account for the heterogeneity of variance. The paired samples t test computes the difference score for each pair of observations and then tests whether the mean difference is significantly different from zero. The one sample t test compares the sample mean to a hypothesized value using the standard error of the mean. All variants assume that the data (or difference scores, for the paired test) are approximately normally distributed, though the central limit theorem provides robustness to moderate departures from normality when sample sizes are sufficiently large (30 or more per group is a common rule of thumb, though heavily skewed data can need more). For small samples with non normal distributions, nonparametric alternatives such as the Wilcoxon signed rank test or the Mann Whitney U test should be considered.

When to use it

Use an independent samples t test when comparing means between two independent groups, such as treatment versus control in a two arm trial. Use a paired samples t test when comparing two measurements on the same individuals, such as pre and post treatment scores or matched case control pairs. Use a one sample t test when comparing a sample mean to a known reference value, such as testing whether a group's average cholesterol level differs from the population mean. The t test is appropriate for continuous outcome variables that are approximately normally distributed within each group, with no severe outliers.

Key takeaways

  • The t test is one of the most widely used statistical procedures in scientific research, forming the foundation for comparing group means across virtually every discipline.
  • When the variances of the two groups are unequal, Welch's t test is preferred, as it adjusts the degrees of freedom to account for the heterogeneity of variance.
  • Use an independent samples t test when comparing means between two independent groups, such as treatment versus control in a two arm trial.
  • A frequent error is using the standard independent samples t test when variances are unequal, which can distort the Type I error rate, inflating it when the smaller group has the larger variance.

Common mistakes

A frequent error is using the standard independent samples t test when variances are unequal, which can distort the Type I error rate, inflating it when the smaller group has the larger variance. Welch's t test should be the default choice because it performs well regardless of whether variances are equal. Another common mistake is applying t tests to non normal data in small samples without checking distributional assumptions. Using multiple t tests for comparisons among three or more groups inflates the familywise error rate and should be replaced by ANOVA with appropriate post hoc testing. Researchers also sometimes confuse statistical significance with practical significance, reporting a significant t test result without considering the effect size (Cohen's d) or clinical relevance of the observed difference.

Example

A study examines whether a new tutoring method improves mathematics performance compared to standard instruction. Thirty students are randomly assigned to the tutoring group and 30 to the control group. After eight weeks, both groups take a standardized math test. The tutoring group scores a mean of 78.4 (SD = 10.2) and the control group scores a mean of 72.1 (SD = 11.8). Welch's independent samples t test yields t(56.8) = 2.21, p = 0.031, with a mean difference of 6.3 points (95% CI 0.6 to 12.0) and Cohen's d = 0.57, a medium effect by Cohen's conventional benchmarks. The researcher concludes that the tutoring group scored significantly higher on average. The wide interval, from under 1 point to 12 points, shows that the size of the improvement is still uncertain, so whether it is educationally meaningful has to be judged from that range, not from the p value or the medium label alone.

Sources

  1. [1]Field A. Discovering Statistics Using IBM SPSS Statistics. 6th ed. SAGE Publications, 2024.
  2. [2]Borenstein M, Hedges LV, Higgins JPT, Rothstein HR. Introduction to Meta-Analysis. 2nd ed. Wiley, 2021.
  3. [3]Welch BL. The generalization of 'Student's' problem when several different population variances are involved. Biometrika. 1947;34(1-2):28-35.
  4. [4]Delacre M, Lakens D, Leys C. Why psychologists should by default use Welch's t-test instead of Student's t-test. International Review of Social Psychology. 2017;30(1):92-101.
  5. [5]Student. The probable error of a mean. Biometrika. 1908;6(1):1-25.

Cite this term

FullT Test. Paperguide Research Glossary. Paperguide, 2026. Available at: https://paperguide.ai/research-glossary/t-test/
In-text(Paperguide, 2026)

Related terms