T Tests

← Back to Index (🔢 Statistics)

Overview Of The T-Test

The t-test is a fundamental parametric statistical procedure. It is used to assess hypotheses about population means. It compares the difference of a continuous variable between groups. The test is only valid when performed on normally distributed data.

The T-Distribution

When sample sizes are small, the normal distribution is not a good indicator of data. In these cases, data follow the t-distribution.

Core Assumptions

To perform a valid t-test, specific distributional assumptions must be met.

Evaluating Assumptions

Types Of T-Tests

One-Sample T-Test

A one-sample t-test compares the mean of a single variable against a specified known value or gold standard. It determines if the sample comes from a population with a mean different from the hypothesized value.

Hypotheses

Mathematical Formula

The t-statistic is calculated as follows: $$t = \frac{\bar{X} - \mu_0}{S / \sqrt{n}}$$

Independent-Samples T-Test

An independent-samples t-test compares the means of two independent groups. It evaluates whether the unknown means of two populations differ from each other.

Characteristics

Hypotheses

Mathematical Formula

The test calculates the difference between sample means divided by the standard error of the difference. $$t = \frac{\bar{X}_1 - \bar{X}2}{S{\bar{X}_1 - \bar{X}_2}}$$

Paired-Sample T-Test

A paired-sample t-test compares the means of two related variables. It is used when the data are paired or matched.

Characteristics

Hypotheses

Mathematical Formula

t=d¯Sd/n

Tabular Comparison Of T-Tests And Non-Parametric Equivalents

T-Test Type Purpose Degrees of Freedom Non-Parametric Equivalent
One-Sample Compares sample mean to a fixed known value. n−1 Wilcoxon signed rank-sum test or Sign test.
Independent-Samples Compares means of two unrelated groups. n1+n2−2 Mann-Whitney U test.
Paired-Sample Compares means of two related or matched observations. n−1 (pairs) Wilcoxon matched-pair signed-rank test.

Statistical Decision Making

The objective of the t-test is to distinguish whether an observed difference suggests a real population difference or is due to chance.