Mean-Reversion Cluster Strategy
Generalize pairs trading to N > 2 correlated stocks. Short outperformers and buy underperformers within a cluster (sector, industry, or theme) while maintaining dollar neutrality.
Overview
The mean-reversion cluster strategy extends pairs trading from 2 stocks to N > 2 correlated stocks. Instead of trading a single pair, you trade an entire cluster of related stocks—typically from the same industry or sector.
The intuition is simple: within a group of similar stocks, relative outperformers tend to revert and underperformers tend to catch up. Short stocks with positive demeaned returns, buy stocks with negative demeaned returns.
This approach provides better diversification than pairs trading. With more stocks in the cluster, idiosyncratic noise is reduced and the mean-reversion signal becomes more reliable.
Key Insight
Position Logic
Formulas
Key Insight
JPM outperformed the cluster by +2.4%, so we short it. PNC underperformed by -2.3%, so we buy it. Dollar positions are proportional to deviations.
Research
Research on statistical arbitrage, sector mean-reversion, and cluster-based trading strategies.
The Mathematics
In Plain English
The math behind this strategy is straightforward. Here's what you're actually doing:
- 1Define your cluster: Select N correlated stocks from the same industry or sector (e.g., all major banks, all oil companies).
- 2Calculate returns: Compute the log return for each stock over a short period (1-20 days).
- 3Compute the mean: Average the returns across all N stocks to get the cluster benchmark.
- 4Demean and trade: Subtract the mean from each stock's return. Short stocks above the mean, buy stocks below the mean.
That's it. The formulas below just express this process precisely.
1Log Return
Log return for stock i from time t₁ to t₂.
2Cluster Mean Return
Average return across all N stocks in the cluster.
3Demeaned Return
Stock i's return relative to cluster average. Positive = outperformer, negative = underperformer.
4Total Investment Constraint
Total dollar investment across all positions equals target I.
5Dollar-Neutrality Constraint
Dollar value of longs equals dollar value of shorts. Q_i < 0 for shorts, Q_i > 0 for longs.
6Dollar Position
Position proportional to negative demeaned return. Short outperformers (R̃ > 0), buy underperformers (R̃ < 0).
7Scaling Factor
Scaling factor that ensures total investment equals I while satisfying dollar-neutrality.
Why Clusters Work Better Than PairsNote
With only 2 stocks, idiosyncratic news can cause false signals. With N stocks, individual noise averages out and the mean-reversion signal becomes cleaner. The cluster mean is a more stable benchmark than a single stock.
Strategy Rules
Cluster Selection
- Choose stocks from same industry (e.g., banks, oil majors, tech giants)
- Require minimum 5-10 stocks for diversification benefit
- All stocks should have similar market caps and liquidity
- Verify high pairwise correlations (>0.60) within cluster
- Exclude stocks with pending corporate actions or extreme news
Signal Calculation
- 1Calculate log returns over lookback period (1-20 days)
- 2Compute cluster mean return R̄ = (1/N) Σ R_i
- 3Calculate demeaned returns R̃_i = R_i - R̄ for each stock
- 4Positive R̃_i = outperformer (short candidate)
- 5Negative R̃_i = underperformer (long candidate)
Position Sizing
- Set total investment I (e.g., $100,000)
- Calculate scaling factor γ = I / Σ|R̃_i|
- Dollar position D_i = -γ × R̃_i for each stock
- Convert to shares: Q_i = D_i / P_i
- Verify dollar-neutrality: Σ D_i should equal 0
Execution & Rebalancing
- 1Execute all positions simultaneously at market open or close
- 2Rebalance daily or weekly based on new demeaned returns
- 3Close positions when R̃_i reverts toward zero
- 4Stop-loss if cluster correlation breaks down
- 5Monitor for regime changes affecting the sector
Implementation Guide
Implementing cluster mean-reversion requires defining a stock cluster, calculating demeaned returns, and executing a dollar-neutral portfolio.
Define Your Cluster
Select 5-15 stocks from the same industry or sector. Common clusters: major banks (JPM, BAC, WFC, C, GS), big tech (AAPL, MSFT, GOOGL, META, AMZN), oil majors (XOM, CVX, COP, EOG, SLB).
- Use sector ETF holdings as a starting point
- Verify all stocks are liquid enough to trade
- Check that historical correlations are high (>0.60)
Calculate Demeaned Returns
Each day (or week), compute the log return for each stock over your lookback period. Then calculate the cluster mean and subtract it from each stock's return. Stocks above the mean are short candidates; below the mean are long candidates.
- Use log returns: ln(P_today / P_lookback)
- Lookback of 5-20 days captures short-term mean reversion
- Spreadsheet or Python makes this easy to automate
Calculate Position Sizes
Decide your total investment (e.g., $50,000). Calculate γ = I / Σ|R̃_i|. Then each position is D_i = -γ × R̃_i. A stock with R̃ = +2% gets a short position; one with R̃ = -2% gets an equal-sized long position.
- The formula automatically ensures dollar-neutrality
- Larger deviations get proportionally larger positions
- Cap individual positions at 20-25% to limit concentration
Always verify Σ D_i ≈ 0 before executing. Rounding errors can create unintended market exposure.
Execute and Monitor
Execute all trades simultaneously to minimize timing risk. Monitor the cluster daily and rebalance when demeaned returns shift significantly. Exit when positions revert (R̃_i approaches zero).
- Use market-on-close orders for cleaner execution
- Rebalance fully each period rather than adjusting incrementally
- Track cluster correlation—if it drops, the strategy may stop working
Execution Requirements
This strategy requires shorting multiple stocks simultaneously. Ensure your broker has shares available for all cluster members. Interactive Brokers provides good short availability and reasonable borrow rates for liquid stocks.
Helpful Tools & Resources
Strategy Variations
Explore different ways to implement this strategy, each with its own trade-offs and benefits.
Industry Cluster
Use stocks from a single industry (e.g., banks, airlines). Tightest correlations.
Sector Cluster
Broader sector (e.g., all financials, all energy). More diversification but weaker signal.
Factor Cluster
Group by factor exposure (high beta, low volatility). Captures factor-based mean reversion.
Thematic Cluster
Custom themes (e.g., EV stocks, AI stocks). Can capture emerging trends.
Risks & Limitations
Stocks may stop moving together due to fundamental changes. One stock's divergence may not revert.
Strategy is neutral to sector direction but not to dispersion changes. Low dispersion = weak signal.
Some cluster members may be hard to borrow, preventing full implementation.
Managing N positions simultaneously requires more infrastructure than pairs trading.
Market regimes (e.g., crisis periods) can change correlation structures rapidly.
References
- Avellaneda, M., & Lee, J.-H. (2010). Statistical Arbitrage in the US Equities Market. Quantitative Finance, 10(7), 761-782 [Link] [PDF]
- Pole, A. (2007). Statistical Arbitrage: Algorithmic Trading Insights and Techniques. Wiley Trading Series [Link]
- Jacobs, B. I., & Levy, K. N. (1993). Long/Short Equity Investing. Journal of Portfolio Management, 20(1), 52-63 [Link]
- Gatev, E., Goetzmann, W. N., & Rouwenhorst, K. G. (2006). Pairs Trading: Performance of a Relative-Value Arbitrage Rule. Review of Financial Studies, 19(3), 797-827 [Link]
Ready to Explore More Strategies?
Access our complete library of academic-backed trading strategies across stocks, options, ETFs, and more.
Browse All Stock Strategies