Skip to content
Statistical Arbitrage / The Factor-Residual Model and the S-Score

The S-Score: Normalizing the Residual into a Trading Signal

The OU model gives each stock an idiosyncratic residual XtiX^i_t with its own equilibrium mean mim^i and equilibrium standard deviation σeqi\sigma^i_\text{eq}. For a universe of 500 stocks, these are 500 different spread series with different scales: a deviation of +0.05+0.05 log-points is large for one stock (if σeq=0.02\sigma_\text{eq} = 0.02) and small for another (if σeq=0.08\sigma_\text{eq} = 0.08). A unified entry rule — "enter when the deviation exceeds threshold TT" — cannot be applied uniformly across stocks without normalisation.
The S-score solves this by expressing each residual in units of its own equilibrium standard deviation. A stock with st=2s_t = 2 is exactly 2 equilibrium standard deviations above its long-run mean, regardless of whether its absolute residual is 2 cents or 8 log-points. The S-score is the final step in the Avellaneda-Lee pipeline: it converts the output of the OU calibration into a single cross-sectionally comparable signal that drives position entry, exit, and stop-loss.
Learning objectives. By the end of this note you should be able to:
  • define the S-score and explain its normalisation;
  • state and apply the Avellaneda-Lee entry/exit thresholds (sentry=1.25s_\text{entry} = 1.25, sexit=0.5s_\text{exit} = 0.5, stop sstop=3s_\text{stop} = 3);
  • compare the S-score threshold with the Vidyamurthy band-design result (Δ∗≈0.75σ\Delta^* \approx 0.75\sigma);
  • describe the full cross-sectional trading rule applied to a universe of NN stocks;
  • identify the three situations where the S-score fails as a signal.

In this lesson

    1. The S-score defined
    1. The Avellaneda-Lee trading rule
    1. Comparison with Vidyamurthy band-design
    1. When the S-score fails
    1. Full pipeline summary

Before you start

The full lesson, with worked examples and exercise solutions, is for members.

Read the full lesson

New to SelfMadeQuant.com? See membership options or browse the Statistical Arbitrage syllabus.