SECTION 1
Historical Context & Motivation
Statistical inference took a decisive turn in the early twentieth century when researchers confronted a practical problem: how do you draw reliable conclusions about a population mean when your sample is small and the population variance is unknown? Classical methods rooted in the normal distribution required knowledge of the population standard deviation σ, a quantity rarely available in practice. The resolution of this problem produced one of the most widely used statistical procedures in science—the one-sample t-test—and reshaped the way experimentalists analyze data across biology, psychology, engineering, and economics.
1908 • Student's t-Distribution
1925 • Fisher's Formal Framework
1933 • Neyman–Pearson Hypothesis Testing
1970s–Present • Software & Modern Practice
The central question the one-sample t-test answers is deceptively simple: given a sample of n observations from a population with unknown σ, is there sufficient evidence to conclude that the true population mean μ differs from a hypothesized value μ₀? By replacing σ with the sample standard deviation s and accounting for the extra uncertainty this substitution introduces, the t-test extends the logic of z-tests to the situations researchers actually face—small to moderate samples with estimated variability.
SECTION 2
Core Principles & Definitions
Before computing a single test statistic, it is essential to understand the conceptual architecture that supports the one-sample t-test. Several foundational ideas work in concert: the formulation of competing hypotheses, the selection of a significance level, the construction of a test statistic whose distribution is known under H₀, and a decision rule that controls the probability of a false alarm. The following grid distills these ideas.
Null & Alternative Hypotheses
The t-Statistic
Degrees of Freedom
Significance Level (α)
p-Value Decision Rule
KEY TAKEAWAY
SECTION 3
Visual Explanation — The t-Distribution & Rejection Regions
The diagram above illustrates the logic of a two-tailed t-test. When the computed t-statistic lands in either tail beyond the critical values, the observed sample mean is sufficiently far from μ₀ that such a result would be very unlikely under the null hypothesis. For a one-tailed test—where the alternative specifies a single direction—the entire α area is placed in one tail, making the critical value less extreme but limiting the test to detecting departures in only that direction. The choice between one-tailed and two-tailed tests should be determined by the research question before the data are examined, never in response to the observed results.
SECTION 4
Mathematical Framework
The mathematical backbone of the one-sample t-test rests on the sampling distribution of the mean when the population standard deviation must be estimated from the data. We present the key formulas, connect them to the underlying distributional theory, and clarify the assumptions that make the procedure valid.
TEST STATISTIC
where x̄ = sample mean, μ₀ = hypothesized population mean, s = sample standard deviation, n = sample size. The denominator s / √n is the estimated standard error of the mean.
SAMPLE STANDARD DEVIATION
The division by n − 1 (Bessel's correction) produces an unbiased estimator of σ². Using n − 1 also determines the degrees of freedom of the resulting t-distribution.
DEGREES OF FREEDOM
Under H₀ and the assumption of normality, the test statistic t follows a Student's t-distribution with df = n − 1. As n → ∞, the t-distribution converges to the standard normal N(0, 1).
Assumptions
- ✓ Random sampling: The observations are a simple random sample from the population of interest, ensuring independence.
- ✓ Normality: The population distribution is approximately normal, or n is large enough (typically n ≥ 30) for the Central Limit Theorem to provide an adequate approximation.
- ✓ Unknown σ: The population standard deviation is not known and must be estimated by s. If σ were known, a z-test would be appropriate instead.
Robustness Note
SECTION 5
Step-by-Step Testing Procedure
Performing a one-sample t-test follows a structured procedure that mirrors the general Neyman–Pearson framework for hypothesis testing. The flowchart below maps the decision points, and the detailed breakdown that follows explains each stage.
Detailed Breakdown of Each Step
| Step | Action | Key Details |
|---|---|---|
| 1 | State H₀ and Hₐ | H₀: μ = μ₀. Choose Hₐ: μ ≠ μ₀ (two-tailed), μ < μ₀ (left-tailed), or μ > μ₀ (right-tailed) based on the research question. |
| 2 | Select α | Common choices: 0.01, 0.05, or 0.10. Lower α reduces Type I error risk but increases Type II error risk. |
| 3 | Verify assumptions | Confirm random sampling, check normality via histogram/QQ plot (or n ≥ 30), and ensure σ is unknown. |
| 4 | Compute t and df | t = (x̄ − μ₀) / (s / √n), df = n − 1. |
| 5 | Determine p-value | Use a t-table or software. For two-tailed: p = 2 × P(T > |t|). For one-tailed: p = P(T > t) or P(T < t). |
| 6 | Decision & conclusion | If p ≤ α → reject H₀ (evidence supports Hₐ). If p > α → fail to reject H₀ (insufficient evidence). State conclusion in context. |
Summary of the one-sample t-test procedure
SECTION 6
Worked Example
A nutritionist claims that the mean daily caloric intake of college students at a particular university is 2,100 calories. A health researcher doubts this claim and collects a random sample of n = 20 students. The sample yields a mean of x̄ = 2,240 calories with a sample standard deviation of s = 280 calories. At the α = 0.05 significance level, is there sufficient evidence to conclude that the true mean caloric intake differs from 2,100?
Two-Tailed One-Sample t-Test
- 1
Step 1 — State the Hypotheses
Since the researcher wants to determine if the true mean differs from 2,100 (without specifying a direction), we set up a two-tailed test. H₀: μ = 2100 and Hₐ: μ ≠ 2100. - 2
Step 2 — Set Significance Level & Determine df
α = 0.05. The degrees of freedom are df = n − 1 = 20 − 1 = 19. For a two-tailed test at α = 0.05 with 19 df, the critical values from the t-table are approximately ±2.093.df = 19, t* = ±2.093 - 3
Step 3 — Check Assumptions
The sample is random; n = 20 is moderate, so we require approximate normality of the population. We assume the researcher verified this via a histogram or normal probability plot (no extreme outliers or severe skewness were noted). The population σ is unknown, confirming the t-test (rather than a z-test) is appropriate. - 4
Step 4 — Compute the Test Statistic
The standard error is SE = s / √n = 280 / √20 = 280 / 4.472 ≈ 62.61. The t-statistic is t = (x̄ − μ₀) / SE = (2240 − 2100) / 62.61 = 140 / 62.61 ≈ 2.236.t ≈ 2.236 - 5
Step 5 — Determine the p-Value
Using a t-distribution table or software with df = 19, P(T > 2.236) ≈ 0.019. For a two-tailed test, the p-value = 2 × 0.019 = 0.038.p ≈ 0.038 - 6
Step 6 — Decision and Conclusion
Since p ≈ 0.038 < α = 0.05, we reject the null hypothesis. Equivalently, the test statistic t ≈ 2.236 exceeds the critical value t* = 2.093 in the right tail. There is sufficient evidence at the 5% significance level to conclude that the mean daily caloric intake of college students at this university differs from 2,100 calories. The data suggest the true mean is higher, with a point estimate of 2,240 calories.Reject H₀ — evidence that μ ≠ 2100
SECTION 7
t-Test vs. z-Test — Strengths & Limitations
Students often wonder when to use the t-test versus the z-test. The distinction is practical, not philosophical: both test the same type of hypothesis about a population mean, but they differ in what they assume about σ and, consequently, in the reference distribution they use. The table below summarizes the key comparisons, followed by a broader discussion of the t-test's strengths and limitations.
| Feature | One-Sample z-Test | One-Sample t-Test |
|---|---|---|
| Population σ | Known | Unknown (estimated by s) |
| Reference distribution | Standard normal N(0, 1) | Student's t with df = n − 1 |
| Tail heaviness | Fixed, thin tails | Heavier tails for small df; approaches z as n → ∞ |
| Critical values (α = 0.05, two-tailed) | ±1.960 always | Larger; e.g., ±2.262 (df = 9), ±2.045 (df = 29) |
| Practical use | Rare (σ seldom known) | Very common in applied research |
| Sample size sensitivity | Unaffected by n for the distribution shape | Requires normality check for small n; robust for large n |
Comparison of the one-sample z-test and one-sample t-test
PRACTICAL INSIGHT
Limitations of the t-Test
- Sensitivity to outliers: Because x̄ and s are both influenced by extreme values, a single outlier can distort the t-statistic and lead to incorrect conclusions.
- Normality assumption: For small samples (n < 15), the test is unreliable if the population is strongly skewed or heavy-tailed.
- Statistical vs. practical significance: A very large sample can yield a tiny p-value even when the difference x̄ − μ₀ is trivially small. Always report confidence intervals and effect sizes alongside the p-value.
SECTION 8
Connections to Advanced Theory
The one-sample t-test is the simplest member of a large family of t-based procedures. Understanding it deeply prepares you for more complex settings—comparing two means, analyzing paired data, and conducting regression inference. The table below maps the one-sample t-test to its more advanced relatives, showing how the same underlying logic extends to richer designs.
| Concept | One-Sample t-Test | Advanced Extension |
|---|---|---|
| Number of groups | 1 (sample vs. hypothesized μ₀) | 2 (independent-samples t-test) or k (one-way ANOVA with F-test) |
| Paired data | Not applicable | Paired t-test: apply one-sample t to the differences dᵢ = x₁ᵢ − x₂ᵢ |
| Regression | Tests H₀: μ = μ₀ | Tests H₀: β = 0 for individual regression coefficients; t = b/SE(b) |
| Nonparametric analog | Assumes normality (or large n) | Wilcoxon signed-rank test: rank-based, no normality assumption |
| Bayesian version | Frequentist p-value decision | Bayesian t-test: computes Bayes factor comparing H₀ to Hₐ |
How the one-sample t-test connects to advanced methods
A particularly elegant connection exists between the one-sample t-test and the confidence interval for a mean. A two-tailed t-test at level α rejects H₀: μ = μ₀ if and only if the corresponding (1 − α) × 100% confidence interval x̄ ± t* × (s / √n) does not contain μ₀. This duality provides a powerful interpretive link: the confidence interval shows not just whether to reject, but the entire range of plausible values for μ given the data. In advanced coursework and research practice, reporting a confidence interval alongside the p-value is considered best practice because it conveys both statistical significance and the magnitude of the effect.
Looking Ahead
SECTION 9
Practice Problems
Question 1: CONCEPTUAL
Show answer
Question 2: BASIC CALCULATION
Show answer
Question 3: INTERMEDIATE
Show answer
Question 4: APPLIED
Show answer
Question 5: CRITICAL THINKING
Show answer
SUMMARY
Summary
Summary
The one-sample t-test is a hypothesis testing procedure used to determine whether a population mean μ differs from a hypothesized value μ₀ when the population standard deviation σ is unknown. The test statistic t = (x̄ − μ₀) / (s / √n) follows Student's t-distribution with df = n − 1 under the null hypothesis, accounting for the additional uncertainty introduced by estimating σ with the sample standard deviation s. Developed by William Gosset in 1908 and formalized by R. A. Fisher, the t-test remains one of the most widely applied statistical procedures across the sciences.
The procedure follows a structured sequence: state H₀ and Hₐ, select a significance level α, verify assumptions (random sampling, approximate normality), compute the t-statistic, obtain the p-value, and make a decision—reject H₀ if p ≤ α, fail to reject otherwise. Key considerations include the distinction between statistical and practical significance, the duality between hypothesis tests and confidence intervals, and the robustness of the test to moderate normality violations when n is sufficiently large. The one-sample t-test serves as the foundational building block for the paired t-test, two-sample t-test, and regression inference.