---
title: "One-sample t-test"
method_id: SM.DIF.PAR.1SAM.TTEST
family: Difference
version: 1.1.0
date_modified: 2026-06-18
canonical: https://clarus.ofrencber.com/library/one_sample_t_test.md
source: Clarus method library
---

# One-sample t-test

> A classical statistical method in the Clarus library (Difference family).
> Clarus selects, assumption-checks and runs this method on your data with a
> deterministic rule engine and real numerical libraries (scipy / statsmodels);
> it never generates numbers, citations or results.

**Also known as:** single-sample t-test; one-sample location test; t-test against mu0.

## Hypotheses

- **Null (H0):** mu_{dependent} = {mu0}
- **Alternative (H1):** mu_{dependent} != {mu0}

## When to use it

Use this method when your goal is to:
- compare one mean to reference

## Data it expects

- **dependent:** 1 continuous
- **independent:** none
- **pairing:** single_sample_vs_constant

## Assumptions Clarus checks

- **normality** (gate: shapiro_wilk; severity: warning; on violation: reroute)
- **independence of observations** (severity: warning; on violation: warn_only)

## Effect size reported

- **cohen d** (Cohen (1988))

## Honest limitations

- Large n can pair statistical significance with a trivial difference from mu0 — read Cohen's d and the confidence interval.
- A one-sample t-test is observational; a difference from the reference value cannot support a causal claim.
- Results generalize only to the population from which the sample was drawn, and assume the reference value mu0 is meaningful on the same scale.
- If p >= alpha, this is absence of evidence for a difference, not evidence that the mean equals mu0.

## Primary sources

- Student (1908). The probable error of a mean. Biometrika, 6(1), 1-25. https://doi.org/10.2307/2331554
- Cohen, J. (1988). Statistical Power Analysis for the Behavioral Sciences (2nd ed.). Lawrence Erlbaum.
- Field, A. (2013). Discovering Statistics Using IBM SPSS (4th ed.). Sage.
- Moore, McCabe & Craig (2017). Introduction to the Practice of Statistics (9th ed.). W.H. Freeman, Ch.7.

## How to cite this

To cite this Clarus method page (the page itself — for the method's own primary sources, see above):

**Plain text**

Clarus, "One-sample t-test", version 1.1.0, Clarus method library, 2026. https://clarus.ofrencber.com/library/one_sample_t_test.md

**APA**

Clarus. (2026). One-sample t-test (Version 1.1.0) [Statistical method, Clarus method library]. Retrieved from https://clarus.ofrencber.com/library/one_sample_t_test.md

**BibTeX**

```bibtex
@misc{clarus-one-sample-t-test,
  author       = {Clarus},
  title        = {One-sample t-test},
  howpublished = {Clarus method library},
  version      = {1.1.0},
  year         = {2026},
  url          = {https://clarus.ofrencber.com/library/one_sample_t_test.md}
}
```

_No DOI is minted for Clarus method pages yet; this citation uses the canonical URL, version and date. Cite the primary sources above for the method's scientific provenance._

---

METHOD SM.DIF.PAR.1SAM.TTEST · VERSION 1.1.0 · UPDATED 2026-06-18 · SOURCE Clarus method library
