Skip to main content

Quant Analytics: from scratch to pro · Statistics for markets · Intermediate

How sure is an average? Standard error and confidence intervals

A mean return measured from a sample is an estimate with a margin of error. The standard error shrinks only with the square root of the number of observations, which is why telling a small edge from zero can take decades of data.

4 min read Reviewed Revision 1

In this lesson

  • Compute the standard error of a mean and a 95% confidence interval
  • Work out how many years of data are needed to separate a given edge from zero
  • Compute the standard error of a proportion such as a hit rate
  • Explain why sampling more often does not add information about the mean

Read first: Averages that mislead: arithmetic and geometric means, Volatility: from daily moves to an annual figure

Years of data needed for a t-statistic of 1.96

0 20 40 60 80 100 0.20.40.60.811.5 Ratio of annual mean to annual volatility
Years. Computed from the formula, not from market data. Halving the ratio of mean to volatility quadruples the years needed.

Worked numbers

Each result is recomputed from the formula shown.

WhatFormulaResult
annual standard deviation0.15
annual mean return0.06
standard error of the mean, 10 yearssigma / sqrt(10)4.74%
95% half-width, 10 years1.96 * se109.30%
lower end of the intervalmu - half103.3%
upper end of the intervalmu + half1015.3%
t-statistic of the mean, 10 yearsmu / se101.26
years for a t-statistic of 1.96(1.96 * sigma / mu)**224.0
years needed at a ratio of mean to volatility of 1.0(1.96 / 1.0)**23.8
years needed at a ratio of 0.2(1.96 / 0.2)**296
monthly standard deviationsigma / sqrt(12)4.33%
standard error of the monthly mean, 120 monthssd_month / sqrt(120)0.395%
same standard error scaled to a yearse_month * 124.74%
standard error of a 55% hit rate over 100 tradessqrt(0.55 * 0.45 / 100)4.97%
lower end of the hit-rate interval0.55 - 1.96 * se_p45.2%
upper end of the hit-rate interval0.55 + 1.96 * se_p64.8%
trades needed to separate 55% from 50%(1.96 * 0.5 / 0.05)**2384

Check yourself

Ten years of annual returns have a mean of 6% and a standard deviation of 15%. What is the standard error of the mean?

0.15 / sqrt(10) = 4.74%.

What is the 95% confidence interval for that mean, and does it include zero?

6% +/- 1.96 x 4.74% gives about -3.3% to +15.3%. It includes zero, so ten years do not rule out a true mean of zero.

How many years of data does it take for a mean of 6% with a standard deviation of 15% to reach a t-statistic of 1.96?

n = (1.96 x 0.15 / 0.06)^2 = about 24 years.

A rule wins 55 of 100 trades. Is a 50% hit rate ruled out?

The standard error is sqrt(0.55 x 0.45 / 100) = 4.97%, so the 95% interval is about 45.2% to 64.8%. 50% is inside it, so it is not ruled out.

You switch from annual to monthly returns. Does the standard error of the annual mean improve?

No. The 120 monthly observations have a standard deviation of 15% / sqrt(12) and give the same 4.74% for the annual mean. The span of time sets the information, not the number of data points.

Key terms

Standard errorConfidence intervalT-statisticStandard deviation

Sources

  • The Econometrics of Financial Markets. Princeton University Press (John Y. Campbell, Andrew W. Lo, A. Craig MacKinlay), 1997. Accessed 9 Nov 2026
  • The Statistics of Sharpe Ratios. Financial Analysts Journal 58(4), 36-52 (Andrew W. Lo), 2002. Accessed 9 Nov 2026

Informational content. Not investment advice.