In-sample overfitting: avoiding the pitfalls in data mining

Probably one of the biggest pitfalls in investment, in-sample biases are often among the most difficult to convey and explain and also to avoid. Using simulations along with real world data we try to demystify this effect, explain the dangers and put forward suggestions as to how they can be mitigated.