← Simulation Lab

πŸ“ˆ Find the model that does not overfit

Data & AI

A more complex model fits the training data better, but past a point it memorises noise and does worse on new data. Choose model complexity and data size and watch training vs test error. (Illustrative curve.)

⭐ Level 1: Trainee0 XP · next level at 300
🎯 With only 50 examples, find the complexity with the lowest test error.
Controls
Results
Training error0.01
Test error (new data)βœ— 1.238
Gap (overfitting)βœ— 1.228

Overfitting: great on training data, poor on new data. Simpler model or more data.

πŸ“˜ How it works

Error on new data = bias (too simple) + variance (too sensitive to the training sample) + noise. More data shrinks variance. Always judge a model on data it has never seen.

Test error β‰ˆ biasΒ² + variance + noise Β· bias falls with complexity, variance rises with complexity Γ· data sizeA simplified textbook model for learning. Real designs follow the full codes and standards.