KatInterview

The t-Statistic: Purpose, Mechanics, and Small-Sample Inference

Statistics & ExperimentsModel answer
EasyModel answerStatistics & Experimentshypothesis-testingt-distributiondegrees-of-freedom

Last updated

Explain how and why the t-statistic differs from a z-score, what degrees of freedom represent, and how this matters when comparing two strategies on limited data.

Testing a Mean When You Don't Know the Population Spread

In practice, when you want to test a claim about a population mean, you almost never have access to the true population standard deviation — only the data in front of you. The t-statistic was designed precisely for this situation.

What to address

1. How it's built Write out the formula for the t-statistic and contrast it with the z-score. The formulas look nearly identical — what is actually different, and why does that difference matter for the shape of the sampling distribution?

2. Degrees of freedom Where does the value $n - 1$ come from? Explain what it captures conceptually, and describe how the t-distribution changes as that value grows.

3. Reaching a decision Walk through how the t-statistic is used to accept or reject a null hypothesis. In what sense is this procedure well-calibrated even with very few observations?

Scenario to analyze

You have 15 days of daily return data for two algorithmic trading strategies and want to know whether one significantly outperforms the other. A colleague proposes using a z-test with the standard normal critical value of 1.96.

  • What goes wrong if you follow that suggestion?
  • What test should you actually run, and how should the data be structured before you run it?
  • What does the result tell you about whether 15 days is even enough data to draw conclusions?

Hints

Hint 1

The z-score treats the denominator as a fixed constant. Ask yourself: what happens when that denominator is itself a random quantity estimated from the same small sample?

Hint 2

The n − 1 degrees of freedom come from a constraint hidden in the residuals. Think about how many of the values x_i − x̄ you can freely choose once you know the sample mean.

Hint 3

The two strategies were both running during the same 15-day window, so their returns share common market-wide moves. That structure should directly inform your choice of test.