How to spot it

Worked example (illustrative figures)

ModelGini in trainingGini in testing
Deep trees, 300 variables0.720.45
Regularized, 40 variables0.520.49

The second model looks worse in training but is better where it matters: on applicants it has never seen.

How to prevent it

How Thorcast.AI helps

Frequently asked questions

What is the difference between overfitting and underfitting?

Overfitting learns too much of the training data, including noise; underfitting learns too little and misses real patterns. Both perform poorly on new data.

Is a small gap between train and test normal?

Yes. Some gap is expected; what matters is that it is small and that test performance is stable over time.

Does more data always fix overfitting?

It helps a lot, but the variables and the model's complexity still need to match the size and quality of the data.

Related terms and guides