" 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 …