t-Statistic for a Mean (Hypothesis Test)
Finds: whether an average differs from a target value.
When to use it: Use it to test whether an average is really different from a chosen value or just random noise. As a rough rule, a t value beyond about 2 (in either direction) is unlikely to be chance at the 5% level for a reasonable sample size.
The formula
In words: t = (sample mean − hypothesized mean) / (s / sqrt(n))
What each symbol means
| t | Test statistic, how many standard errors the sample mean is from the hypothesized value | number |
| x-bar | Sample mean | percent |
| mu_0 | The mean you are testing against, often 0 | percent |
| s | Sample standard deviation | percent |
| n | Sample size | number |
Worked example
A fund returned an average of 1% a month over 36 months with a standard deviation of 4%. Is that average different from 0?
| Standard error | 0.04 ÷ sqrt(36) | 0.67% |
| t | (mean − 0) ÷ 0.00666667 | 1.50 |
| Degrees of freedom | 36 − 1 | 35 |
The answer
The t-statistic is 1.50 with 35 degrees of freedom. It is below about 2, so we cannot rule out that the true average is zero.
Want every formula on a few pages?Get the free Cheat Sheet (PDF) →
Calculator
t1.50
Degrees of freedom35