Quant GT
Browse all lessons
Section 8 · Lesson 8.2

Hypothesis Testing

Testing claims about the world using sample data.

A hypothesis test is a structured way to evaluate claims about a population using sample data. The framework pits a null hypothesis H0H_0 against an alternative H1H_1, computes a test statistic from the data, and compares it to a reference distribution under H0H_0.

The standard recipe:

  1. Specify H0H_0 and H1H_1. 2. Choose a significance level α\alpha — usually 0.050.05. 3. Compute the test statistic and its pp-value. 4. Reject H0H_0 if p<αp < \alpha.

A canonical example: the two-sample tt-test for a difference in means uses

t=Xˉ1Xˉ2SEt = \frac{\bar{X}_1 - \bar{X}_2}{\mathrm{SE}}

compared to a tt-distribution with the appropriate degrees of freedom.

In trading, hypothesis tests are everywhere — A/B comparisons of execution algorithms, signal strength tests, alpha decay studies. Note that financial data is heavy-tailed and serially dependent, so vanilla tt-tests can be misleading. Robust standard errors, block bootstrap, and stationary corrections become important in practice.