Learning Outcome Statement
Describe overfitting and identify methods of addressing it.
On the exam: You get a model-selection vignette with training, validation, cross-validation, or test evidence, then choose the diagnosis or remedy in a best-answer comparison.
Your model learns patterns from training observations. If it also learns noise specific to those issuers, it can look excellent on training data and fail on new issuer-quarter observations. Overfitting occurs when training performance improves but out-of-sample performance deteriorates. The training and validation samples contain non-overlapping issuer-quarter observations, the target is quarterly, and an untouched test sample waits for final assessment.
| Complexity | Bias | Variance and sample sensitivity |
|---|---|---|
| Simple | Usually higher | Usually lower |
| Complex | Usually lower | Usually higher |
Lower complexity may miss real structure, creating higher bias. A complex model can fit quirks in the sample, which makes its predictions more sensitive to the observations it sees.
Mean squared error, MSE, is a dimensionless loss measured in probability squared. To compare the training MSE, $\mathrm{MSE}{\mathrm{train}}$, with the validation MSE, $\mathrm{MSE}{\mathrm{validation}}$, use the generalization gap, $G$.
$$ G = \mathrm{MSE}{\mathrm{validation}} - \mathrm{MSE}{\mathrm{train}} $$
The validation term records error on held-out observations used for model selection, while the training term records error on observations used to fit the candidate. MSE is a loss, so lower is better. A positive $G$ means validation error is higher. A large or widening $G$ supports an overfitting diagnosis, but a lower validation loss alone does not prove an economic benefit.
Use validation data or cross-validation to select complexity.
Loading diagram…
Cross-validation changes which observations serve as validation data, so your selection decision is less tied to a single split. Each remedy attacks noise chasing or sample sensitivity in a different way. Choose a remedy that matches the source of instability: weak inputs call for feature selection, while excessive flexibility calls for regularization or pruning. The diagram keeps selection on validation evidence and protects the test sample for the final check.
| Method | Change |
|---|---|
| Representative data | Mirrors future issuer-quarter observations |
| Feature selection | Removes noisy or irrelevant inputs |
| Regularization | Penalizes excessive model complexity |
| Early stopping | Stops fitting before noise dominates |
| Pruning | Removes weak branches or rules |
| Ensembles | Combines models to reduce sample sensitivity |
Representative data should resemble future issuer-quarter observations. Keep the test sample outside all tuning decisions, then use it for final assessment. The figure traces that boundary: training observations fit candidate models, validation observations guide choices, and test observations stay untouched until the choice is fixed. Reusing test results during tuning would make that sample part of selection and weaken its role as a final assessment.
Worked example
You are handed a research team's quarterly model comparison for next-quarter corporate bond downgrade risk. It contains simple, moderate and complex candidate models, with non-overlapping issuer-quarter observations in the training and validation samples. An untouched test sample is reserved for final assessment. Which candidate should you select, and which candidate shows overfitting?
Each MSE is a dimensionless probability-squared loss, and lower values are preferred. The values are computed separately over the non-overlapping training and validation samples.
| Candidate model | Training MSE | Validation MSE |
|---|---|---|
| Simple | $0.42$ | $0.45$ |
| Moderate | $0.24$ | $0.27$ |
| Complex | $0.08$ | $0.39$ |
The bars show training MSE, and the line shows validation MSE. Read each pair together: the bar falls as complexity rises, but the line first falls and then rises. That reversal warns that the complex model fits its training observations much better without matching that gain on validation observations. Compare validation losses to select a candidate, then inspect the gap to diagnose overfitting; reserve the test sample for final assessment.
Loading diagram…
- For the simple candidate, subtract training MSE from validation MSE because the gap measures deterioration on held-out observations. The result is $G = 0.45 - 0.42 = 0.03$.
- For the moderate candidate, repeat the same comparison. The result is $G = 0.27 - 0.24 = 0.03$.
- For the complex candidate, calculate the same gap. The result is $G = 0.39 - 0.08 = 0.31$, a much wider gap.
- Choose the lowest validation MSE because it estimates held-out performance. Moderate wins with validation MSE $0.27$, below simple at $0.45$ and complex at $0.39$.
Select the moderate model, and diagnose the complex model as overfit because its strong training fit does not carry to held-out observations.
Changed condition
The same scenario now changes only the complex model's validation MSE. The training MSE and every other input stay unchanged.
| Measure | Base condition | Changed condition |
|---|---|---|
| Complex validation MSE | $0.39$ | $0.22$ |
| Complex generalization gap | $0.31$ | $0.14$ |
| Validation winner | Moderate | Complex |
Because the complex model's training MSE stays fixed while its validation MSE falls, predict a narrower gap before checking the result. The gap narrows, and complex becomes the validation winner. The changed evidence improves model selection, but it does not remove the need for final test assessment or prove an economic benefit. Before reading on, state why the untouched test sample cannot be used to choose complexity.
Common error
You choose the complex model because its training MSE is lowest. That feels right because the closest fit to observed issuers seems most likely to predict future issuers. What gives it away is a much larger validation MSE and a widening training-validation gap.
Check yourself
Practice
A research team predicts next-quarter corporate bond downgrade risk. The simple model has training MSE 0.42 and validation MSE 0.45. The moderate model has 0.24 and 0.27. The complex model has 0.08 and 0.39. Samples are non-overlapping, and an untouched test sample is reserved.
Question 1
Which candidate most clearly shows overfitting in the base case?
Question 2
Which procedure addresses the selection problem most directly?
Question 3
Which statement best describes the bias-variance trade-off?
Question 4
Which conclusion is justified by a lower validation MSE?
For the complex model in the base case, calculate the generalization gap, G, as validation MSE minus training MSE.
Under the changed condition, complex validation MSE is 0.22 while simple and moderate validation MSE remain 0.45 and 0.27. Which candidate should validation-based selection choose?
Revision snapshot
Overfitting occurs when training performance improves but out-of-sample performance deteriorates. Greater model complexity usually lowers bias but raises variance and sensitivity to the sample. For MSE, use the generalization gap shown below.
$$ G = \mathrm{MSE}{\mathrm{validation}} - \mathrm{MSE}{\mathrm{train}} $$
A positive, widening $G$ is the trap signal. Use validation data or cross-validation to select complexity, then reserve the test set for final assessment. Address overfitting with representative data, feature selection, regularization, early stopping, pruning, or ensembles. On the exam, reject the lowest-training-error choice when held-out error is much worse. A statistically or numerically better validation result is not automatically economically significant.
Unlock the full lesson and continue reading
Signup to continue reading this lesson and unlimited access questions, flashcards, AI notes, and more