Statistical Methods Atlas
Atlas › Compare Groups › One-Sample t-Test

One-Sample t-Test

Tests whether the mean of one sample differs from a known or hypothesized value — e.g., does average employee engagement differ from the scale midpoint of 3?

Compare GroupsUnivariate also known as: Single-sample t-test

✓ When to use

  • You have one group and want to compare its mean against a fixed benchmark (scale midpoint, industry norm, target value).
  • The outcome is continuous (interval/ratio), such as an averaged multi-item scale score.
  • Typical uses: is mean satisfaction above the neutral point? Does average service time differ from the 10-minute standard?

✗ When NOT to use

  • You are comparing two separate groups — use the Independent-Samples t-Test.
  • The same group is measured twice — use the Paired t-Test.
  • The outcome is ordinal or clearly non-normal in a small sample — use the Wilcoxon Signed-Rank test against the benchmark.
  • The benchmark value itself was estimated from the same data — the comparison value must be external and fixed.

Data requirements

Dependent / outcome variableOne continuous variable (interval or ratio).
Independent / grouping variableNone — instead, a fixed comparison value (test value) chosen before analysis.
DesignOne group, one measurement per participant; observations independent.
Sample size guidancen ≥ 30 gives good robustness to non-normality; for smaller samples check normality. G*Power: detecting d = 0.50 at power .80 requires n ≈ 34.

Assumptions

Hypotheses

H₀ — The population mean equals the test value (μ = μ₀).
H₁ — The population mean differs from the test value (μ ≠ μ₀); one-tailed variants if direction was predicted a priori.

The concept

The test divides the difference between the sample mean and the test value by the standard error of the mean (SD/√n), yielding t with n − 1 degrees of freedom. A large |t| means the sample mean is many standard errors away from the benchmark — unlikely if the population mean truly equalled it.

Effect size is Cohen's d = (M − μ₀)/SD, interpreted on the usual 0.20/0.50/0.80 benchmarks. Always report the mean, SD, and the confidence interval of the difference so readers see how far from the benchmark the group actually is.

Worked example

An HR analyst measures employee engagement (7-item scale, 1–5) in a firm (n = 85, M = 3.41, SD = 0.72) and asks whether engagement differs from the neutral midpoint of 3.00.

Result: t(84) = 5.25, p < .001, d = 0.57 — engagement is significantly above the midpoint, a medium effect.

How to run it

# engagement: numeric vector
shapiro.test(df$engagement)              # normality check

t.test(df$engagement, mu = 3)            # test against midpoint 3

library(effectsize)
cohens_d(df$engagement, mu = 3)          # effect size

Interpreting the output

APA-style reporting

A one-sample t-test indicated that employee engagement (M = 3.41, SD = 0.72) was significantly higher than the scale midpoint of 3.00, t(84) = 5.25, p < .001, 95% CI [0.26, 0.57], d = 0.57.

Common mistakes

Related methods

Independent-Samples t-TestTwo separate groupsPaired-Samples t-TestSame group, two time pointsWilcoxon Signed-Rank TestNon-parametric alternativeShapiro–Wilk TestCheck normality first
← Independent-Samples t-TestWelch's t-Test →