Statistics for Finance
Confidence intervals
Instead of one number, give a range: the estimate plus or minus a margin of error. With small samples, the t-distribution makes that margin a little wider.
How sure is that 1.2%?
Example, with made-up numbers. Over 36 months, a stock returned 1.2% a month on average, with a standard deviation of 6%. A report says "the stock earns 1.2% a month." What range of true averages is believable, and does it rule out zero?
The idea
A confidence interval wraps the estimate in a margin of error built from the standard error:
For a 95% interval with a large sample, the critical value is 1.96, close to the "2 standard errors" from the last lesson.
"95% confident" describes the method, not one interval. If you took many samples and built an interval from each, about 95% of those intervals would contain the true value:
Twenty simulated samples of 36 months, each with its own 95% interval. The true average is 1%. One of the 20 misses it, as expected.
Quick check
From the same data, which is wider: a 90% interval or a 99% interval?
Small samples: the t-distribution
The standard error uses a standard deviation estimated from the same data. With few observations, that estimate is shaky too. The t-distribution allows for this. It looks like a bell curve with fatter tails, so its critical values are bigger. As the sample grows, it turns into the normal curve:
| Sample size | Critical value for 95% |
| 5 | 2.78 |
| 10 | 2.26 |
| 30 | 2.05 |
| Very large | 1.96 |
In Excel: =T.INV.2T(0.05, n − 1). The n − 1 is called the degrees of freedom.
Worked example: the stock's average
| 1. Standard error | 6 ÷ √36 = 1.0% |
| 2. Critical value, 95%, 35 degrees of freedom | =T.INV.2T(0.05, 35) = 2.03 |
| 3. Margin of error | 2.03 × 1.0 = 2.03% |
| 4. Interval | 1.2 ± 2.03 |
The interval includes zero, so three years of data can't rule out that the stock's true average is nothing at all. Excel gives the margin in one step: =CONFIDENCE.T(0.05, 6, 36) = 2.03.
Try it yourself
Any average, standard deviation, sample size and confidence level.
| Standard error | |
| Critical value (t) | |
| Confidence interval | |
| Does it include zero? |
Common mistakes
Three slips beginners make.
- Mixing up the average and single values. A confidence interval is for the true average. Single months will swing far outside it.
- Using 1.96 with tiny samples. With 5 observations the 95% critical value is 2.78. Using 1.96 makes the interval too narrow.
- Trusting a narrow interval from biased data. The interval only covers random noise. A biased sample gives a confident wrong answer.
Remember
- Interval = estimate ± critical value × standard error.
- 95% describes the method: about 95 in 100 such intervals contain the true value.
- Small samples use the t-distribution's bigger critical values. In Excel, =CONFIDENCE.T or =T.INV.2T.
Check yourself
Three questions. Try them without scrolling up.
1. A large sample gives an average of 10 with a standard error of 2. What's the 95% confidence interval?
2. Why use the t-distribution instead of 1.96 for a sample of 8?
3. A 95% confidence interval for a fund's yearly extra return over its benchmark is −0.5% to 2.5%. What can you conclude?
Hypothesis tests and p-values
Could this result be luck? A yes-or-no test with a number attached.