Your Equation

Library / Statistics / STA-05

Statistics

One-sample t statistic

Compares a sample mean with a claimed value μ₀, measured in standard errors.

Ref
STA-05
Rev
v1
Field
Statistics
Result
t

x̄ is the sample mean, μ₀ the claimed (null) mean, s the sample standard deviation and n the sample size. The t value counts how many standard errors the sample mean lies from the claim. Compare |t| with the critical value of the t distribution for n − 1 degrees of freedom (about 2.06 for 95 % with 25 readings).

Compares a sample mean with a claimed value μ₀, measured in standard errors. Large |t| is evidence that the claim is wrong; compare it with the t-table for n − 1 degrees of freedom.

Calculator

Solve for
0200
0200
0.150
21,000
  • Standard error s/√n1.6
  • Degrees of freedom n − 124

What drives the result

Each variable is moved across its typical range while the others stay at the values above. The longest bar is the key driver.

t statistic () current value 1.25
x̄Sample meanKey driver
−31.393.8
μ₀Claimed mean
−92.532.5
sSample standard deviation
0.2100
nSample size
0.3547.91
  • The default t = 1.25 is well below the 95 % critical value of about 2.06 for 24 degrees of freedom, so the sample does not contradict the claimed mean.
  • A result that is not significant does not prove the claim; with few readings a real difference can go undetected.
Chart data as tables

Ranked variables

VariableTypical rangeLowest resultHighest resultSwing ()Local stepChange in result
x̄ Sample mean0 to 200 −31.2593.75125+10%+260 %
μ₀ Claimed mean0 to 200 −92.532.5125+10%−250 %
s Sample standard deviation0.1 to 50 0.210099.8+10%−9.09 %
n Sample size2 to 1,000 0.35367.9067.552+1 +1.98 %

Sweep of Sample mean

Sample meant statistic
0−31.25
25−15.63
500
7515.63
10031.25
12546.88
15062.5
17578.13
20093.75

Sweep one variable

t statistic ()Hover, touch, or use the arrow keys on the chart
−40−20020406080100 050100150200 Sample mean now 1.25

Variables and how each one contributes

t

t statistic

Result ·

What the equation gives you. Everything else feeds it.

x̄

Sample mean

· typical 0 to 200

The mean of the sample. Enters only through the gap x̄ − μ₀. At the default the gap is just 2, so a 10 % rise in x̄ (to 57.2) more than triples t, to about 4.5.

μ₀

Claimed mean

· typical 0 to 200

The mean being claimed or specified. Moving μ₀ towards x̄ shrinks |t|. A 10 % rise in μ₀ (to 55) turns the gap negative and t becomes about −1.9.

s

Sample standard deviation

· typical 0.1 to 50

The standard deviation of the readings. Inverse: noisier data give a smaller |t| for the same gap.

n

Sample size

· typical 2 to 1,000

The number of readings. Inverse square root in the standard error: four times as many readings double |t| for the same gap and scatter.

Worked example with the values above

  1. Gap from the claim: x̄ − μ₀ = 52 − 50 = 2.
  2. Standard error: s/√n = 8 / 5 = 1.6.
  3. t = 2 / 1.6 = 1.25.

Assumptions and limits

  • Readings are independent and approximately normally distributed.
  • The sample is random, with no systematic bias.

Common mistakes

  • Using σ of the population when only the sample s is available.
  • Treating a significant t as proof the difference is large enough to matter.

Statistics and uncertainty

Compare |t| with the critical value of the t distribution with n − 1 degrees of freedom. A large |t| means the sample mean is unlikely to come from a population with mean μ₀; it does not prove the difference matters in practice.

Where it is used

  • Testing whether a new batch meets a specified mean strength or accuracy.
  • Checking whether a system has changed after a modification.

Maths you need

  • Standard error: s/√n
  • Hypothesis testing: null claim and critical value

Related formulas

Practise this formula