Mean-reversion and optimization
The purpose of these notes is to provide a systematic quantitative framework – in what is intended to be a ‘pedagogical’ fashion – for discussing mean-reversion and optimization. We start with pair trading and add complexity by following the sequence ‘mean-reversion via demeaning → regression → weighted regression → (constrained) optimization → factor models’. We discuss in detail how to do mean-reversion based on this approach, including common pitfalls encountered in practical applications, such as the difference between maximizing the Sharpe ratio and minimizing an objective function when trading costs are included. We also discuss explicit algorithms for optimization with linear costs, constraints and bounds. We also illustrate our discussion on an explicit intraday mean-reversion alpha.