Finance Formulas

Quantitative Methods

core

Test Statistic for a Mean (t / z)

Builds onStandard Error of the Mean and Confidence Interval — if this page feels steep, start there.

t=Xˉ−μ0s/n,df=n−1t = \frac{\bar{X} - \mu_0}{s/\sqrt{n}}, \qquad df = n-1

Reading the notation

tt
the test statistic: how many standard errors the sample mean sits away from the value claimed by the null hypothesis
Xˉ\bar{X}
the sample mean — what the data say the average return is
μ0\mu_0
the hypothesised mean under the null hypothesis, often 0 (for 'no excess return') or a benchmark return
s/ns/\sqrt{n}
the standard error of the mean: the typical sampling wobble of the average. It is the yardstick the gap is measured against
Xˉ−μ0\bar{X}-\mu_0
the gap between what you found and what the null says. Its sign tells you the direction of the difference
df=n−1df = n-1
degrees of freedom for a test of a single mean: look up the critical value in the t-table with this many
∣t∣>tcrit|t| > t_{crit}
the decision rule for a two-tailed test: reject the null if the statistic is larger in size than the critical value

Why it must be true

A sample mean will almost never equal the hypothesised value exactly, so the real question is whether the gap is bigger than sampling noise can explain. The yardstick for noise is the standard error s/ns/\sqrt{n}.

The test statistic expresses the gap in standard errors: t=(Xˉ−μ0)/(s/n)t = (\bar{X}-\mu_0)/(s/\sqrt{n}). A gap of 0.5 percentage points is huge if the standard error is 0.1, and trivial if it is 2. Compare ∣t∣|t| with the critical value (roughly 2 at the 5% level for decent sample sizes): beyond it, the data are too far from the null to blame luck, so reject; inside it, fail to reject (not "prove the null true", only "no convincing evidence against it").

The derivation

Under the null hypothesis H0:μ=μ0H_0: \mu = \mu_0 and the usual assumptions, the sample mean is centred on μ0\mu_0 with spread estimated by s/ns/\sqrt{n}. Standardising it gives a statistic with a t-distribution having n−1n-1 degrees of freedom (because ss was estimated from the same data):

t=Xˉ−μ0s/n∼tn−1t = \frac{\bar{X} - \mu_0}{s/\sqrt{n}} \sim t_{n-1}

For a two-tailed test at significance level α\alpha we reject H0H_0 when

∣t∣>tα/2, n−1|t| > t_{\alpha/2,\,n-1}

For large samples (n≥120n \ge 120 here) the t-distribution is almost the normal, so the z critical value 1.96 (5% two-tailed) is used.

When to reach for it

You must decide whether a sample mean differs from a hypothesised value, given the sample standard deviation and the number of observations.

Listen for

“test the null hypothesis that the mean return equals …”“test statistic for the population mean”“is the mean excess return significantly different from zero”“at the 5% significance level (two-tailed)”

Back-of-the-envelope

Estimate it in your head first — then the calculator only confirms.

  • ≈

    Magnitude check: |t| of about 2 or more is significant at 5% for decent samples. If you get a t of 0.4 or 14 with ordinary-looking numbers, recheck the standard error.

  • ≈

    Sign check: t has the sign of (Xˉ−μ0\bar{X}-\mu_0). A sample mean below the hypothesised value must give a negative statistic.

  • ≈

    To see how the data would need to look: Xˉ=μ0+t×SE\bar{X} = \mu_0 + t \times SE. A t of 2 means the sample mean sits two standard errors above the null value.

Traps in applying it

  • ✗Dividing by $s$ instead of the standard error $s/\sqrt{n}$ — that compares the gap with the spread of individual returns, not with the precision of the average.
  • ✗Forgetting to subtract the hypothesised mean $\mu_0$ (right only when $\mu_0 = 0$).
  • ✗Using a one-tailed critical value (about 1.7) for a two-tailed test (about 2.0), or vice versa.
  • ✗Concluding 'the null is proven' when you fail to reject — you have only failed to find evidence against it.

Limits & criticisms

The test assumes independent observations from an approximately normal population (or a large enough sample for the central limit theorem). Return series that are autocorrelated, heteroskedastic or fat-tailed overstate the statistic's reliability, and with many strategies tested a handful will show |t| > 2 by pure chance (data mining), which is why the critical value should be raised for multiple tests. Statistical significance is also not economic significance: a tiny difference becomes significant with enough data.

Where it came from

William Sealy Gosset, a chemist at the Guinness brewery in Dublin, derived the t-distribution in 1908, publishing as "Student", because he had to judge the quality of barley from very small samples and the normal approximation was misleading. Ronald Fisher later put hypothesis testing on a systematic footing in the 1920s.

Today this test is the everyday check for "is this average really different from zero (or from a benchmark)?" — used to test whether a fund's mean excess return, a strategy's alpha, or an event-study abnormal return can be told apart from luck.

One identity, 3 questions

The exam can hide any variable. Each face below is the same equation solved for a different unknown — drill them separately.

Test statistic

t=Xˉ−μ0s/nt = \frac{\bar{X}-\mu_0}{s/\sqrt{n}}

The gap between the sample mean and the null value, measured in standard errors. Compare its size with the critical value to decide.

Drill this face →

Standard error (the yardstick)

SE=snSE = \frac{s}{\sqrt{n}}

The denominator of the test: the sampling precision of the average. A bigger sample shrinks it and makes the same gap more convincing.

Drill this face →

Sample mean implied by a given statistic

Xˉ=μ0+t⋅sn\bar{X} = \mu_0 + t\cdot\frac{s}{\sqrt{n}}

Read backwards: a test statistic of t means the sample mean lies t standard errors from the hypothesised mean.

Drill this face →

On the BA II Plus

Worked example: A risk team tests whether the mean return of 30 observations (standard deviation 5%) differs from 0%. To compute the statistic they first need the standard error of the mean. It is closest to:

  1. 1.5 [÷] 30 [2ND] [√x] [=] [STO] 1standard error: s ÷ √n (enter n, then [2ND] [√x]), in percent

→ 0.91%