Ask Mallard
Analysis method

Sample size for one mean against a target

5 min read

Size one sample to detect a meaningful mean difference from a fixed target, using exact noncentral t power.

Fit

When to use it, and when not to

Use it when

  • One independent sample provides a continuous outcome.
  • The null mean is a fixed target, and the question concerns a difference from that target.

Not when

Before you start

What you need

Decide these first
  1. The meaningful gap from the fixed targetSupply delta as the positive absolute gap. The target itself is not an engine input; it defines the gap.
  2. The population standard deviationSupply sd in the same units as the mean gap. Use a plausible population spread, not a standard error.
  3. The two-sided significance levelAlpha is the chance of rejecting a true null under the model. Supply a probability between zero and one.
  4. The target powerPower is the chance of rejecting the null at the assumed effect. The engine limits this input to 0.5 through 0.999.
It rests on these
  1. The units counted in the sample size are independent.How to check: Check for shared clinics, families or repeated observations before using an individual-level calculation.
  2. The effect and spread are defensible planning values.How to check: Use prior data and clinical judgment. Repeat the calculation with smaller effects and larger spreads.
  3. The target is fixed, and outcomes follow the assumed normal model.How to check: Check where the target came from. Assess skew and outliers in prior outcome data.

Plain language

How it works

The engine tests a mean gap from a fixed value using both tails of the noncentral t distribution. The SD describes individual outcomes.

The test model

For N people, noncentrality is delta times the square root of N, divided by SD. Degrees of freedom are N minus one.

What the engine counts

The engine searches whole sample sizes for the target power. It does not account for uncertainty in a historical benchmark or add covariate adjustment.

Match the planned analysis

Choosing a sample-size method helps distinguish a fixed target from an estimated comparison mean and a superiority question from a margin-based question.

The method at a glance
Sample size for one mean against a target: Target gap and population SD. Then Exact two-sided noncentral t power. Then Required total of independent people.Sample size for one mean against a targetTarget gap and populationSDExact two-sided noncentralt powerRequired total ofindependent peopleThe target is treated as fixed and known. A historical mean estimated from another sample has uncertaintythis calculation does not include. The result does not establish equivalence or non-inferiority.
Conceptual diagram. It shows the structure of the idea, not data from any study.

Worked example

A worked example

Invented for illustration
Setting
A service plans to compare mean blood pressure with a fixed benchmark.
Question
How many people are needed to detect a meaningful gap from the target?
Approach
Use delta = 3; sd = 10; alpha = 0.05; power = 0.8. The gap and SD are in mmHg.
Result
The engine returns 90 people. Power at that total is 80.38%.
What it means
The result counts independent people with observed outcomes. It assumes the benchmark has no sampling uncertainty and does not add an attrition allowance.

In practice

Recent studies PubMed search · not vetted

Searching PubMed…

Watch out

Common mistakes

The one to remember

The target is treated as fixed and known. A historical mean estimated from another sample has uncertainty this calculation does not include. The result does not establish equivalence or non-inferiority.

  • Entering the target value as the meaningful difference.Instead: Supply the magnitude of the gap you need to detect.
  • Calling a nonsignificant difference proof of meeting the target.Instead: Plan margin-based inference if the question is equivalence or non-inferiority.

Inside Mallard

How Mallard uses this

For one mean, Mallard returns the required total and power at a supplied total. The model takes the target gap, not the target value.

No Mallard code example points to this page.
Atlas node analysis.sample_size_one_mean, the id a plan cue records.

Related Learn pages

Related designs and methods

Evidence

Sources & further reading

  1. Statistics review 4: sample size calculations. (opens in a new tab) · Crit Care · doi 10.1186/cc1521
  2. Use of the one sample t-test in the real world. (opens in a new tab) · J Chronic Dis · doi 10.1016/0021-9681(84)90052-3
Prepared with AI assistance. PubMed records checked on 2026-11-06 by title, authors, year and DOI: record verified, confirm it supports this use. No independent professional or methodological approval is claimed. The sources provide context for mean inference and sample-size planning. The worked figures come from Mallard’s engine, not a table copied from a source.
Last source review: 2026-11-06
AI-generated educational content
Mallard uses reputable methodological and reporting sources, but this material may contain errors or omit important context. Verify important methodological decisions with the cited sources and, when appropriate, a qualified research methodologist or statistician.