# Overfitting

*Math & Statistics — Finicade finance glossary*

Overfitting is building a model that captures the noise in your sample rather than the signal, so it performs beautifully in-sample and fails on new data. It's the central hazard of quantitative finance, where thousands of strategies can be tested against the same price history until one looks brilliant by chance. The defences are out-of-sample testing, cross-validation, and being honest about how many variants were tried.

**Also known as:** curve fitting, data mining, in-sample overfit

**Related terms:** [R-Squared](https://finicade.com/glossary/r-squared), [Backtesting](https://finicade.com/glossary/backtesting), [Statistical Significance](https://finicade.com/glossary/statistical-significance), [Degrees of Freedom](https://finicade.com/glossary/degrees-of-freedom), [Survivorship Bias](https://finicade.com/glossary/survivorship-bias)

Source: https://finicade.com/glossary/overfitting
