- Published on
Pair Trading: A Quantitative Approach
- Authors
- Name
- Loi Tran
Introduction
Pair trading is a classic market-neutral strategy that involves taking opposing positions in two correlated assets. This post walks through a simple example and connects it to portfolio theory.
Example: Alpha & Omega
Imagine two tech firms, Alpha and Omega. We construct a pair trade:
- Short Omega
- Long Alpha
Initial Trade
| Alpha | Omega | |
|---|---|---|
| Price | $50 | $40 |
| Trade | Buy 20 | Short 25 |
| Cash Flow | -$1000 | +$1000 |
After 3 Months
| Alpha | Omega | |
|---|---|---|
| Price | $45 | $35 |
| Trade | Sell 20 | Buy 25 |
| Cash Flow | +$900 | -$875 |
Performance
- Alpha (45): 10% drop
- Omega (35): 12.5% drop
Position Types
- Long Position: Profit when price rises
- Short Position: Profit when price falls
Scaling Up: Portfolio Construction
Pair trading can be extended to a portfolio of carefully chosen stocks. The goal is to use mathematical models to balance risk and return, factoring in correlations.
Mean-Variance Optimization
The standard way to build a portfolio is through mean-variance optimization:
- Return Vector:
- Covariance Matrix:
- Weight Vector:
Portfolio Returns
Expected Return:
Portfolio Variance:
Objective Function (Loss Function):
The objective is to find weights that maximize this function, balancing return and risk according to your preferences.
Portfolio Constraints
| Portfolio Type | Description | Constraints |
|---|---|---|
| Long-Only Portfolio | No shorting, fully invested | , |
| Long-Short Portfolio | Allows shorts, fully invested | , |
| Market Neutral | Allows shorts, net exposure is zero | , |
Alternative Data
Coming soon...