Learning Outcome Statement
Describe objectives, steps, and techniques in model training.
On the exam: You get a model-training workflow, data-split roles, techniques, and observed performance. You describe the objective, make a selection decision, or diagnose behavior in a short explanation or multiple-choice question.
Think of training as a controlled rehearsal. The model learns patterns from data, but the training score alone cannot tell you how it will behave on new observations. The training objective is to optimize a loss on the training sample while preserving out-of-sample performance.
| Component | Rule |
|---|---|
| Training data | Fits parameters on observed outcomes |
| Validation data | Selects models or hyperparameters |
| Test data | Estimates final generalization |
| Cross-validation | Rotates validation folds within development data |
| Regularization | Trades fit for lower complexity |
The development sample supports fitting and selection, while the final test set stays untouched until those decisions are finished so its loss can estimate final generalization. A lower loss is better, and cross-validation rotates validation folds within the development sample to make selection less dependent on a particular split without turning the final test set into a tuning set.
Reconstruct the sequence in a vignette from the deployment loss to the final estimate.
Loading diagram…
Use the following rule to show fitting and selection. Training loss, $L_{\mathrm{train}}$, measures forecast error on training data in the deployment unit. Validation loss, $L_{\mathrm{val}}$, measures that same loss on validation data. A parameter vector, $\theta$, contains values the fitting process can learn.
A candidate specification, $m$, includes its model form and hyperparameters. The candidate set is $\mathcal{M}$, and the selected specification is $\hat{m}$. The fitted parameters for candidate $m$ are $\hat{\theta}_m$. Regularization adds complexity measure $\Omega(\theta,m)$ weighted by penalty weight $\lambda$.
$$ \begin{aligned} \hat{\theta}m &= \operatorname{argmin}{\theta} \left[ L_{\mathrm{train}}(\theta,m) + \lambda \Omega(\theta,m) \right] \ \hat{m} &= \operatorname{argmin}{m \text{ in } \mathcal{M}} L{\mathrm{val}}(\hat{\theta}_m,m) \end{aligned} $$
Read the parameter line as a contest between values inside a candidate. Lower training loss pulls the fit toward observed data, while a larger $\lambda$ makes complexity more expensive. That trade can accept a worse in-sample score for lower model complexity and potentially better out-of-sample performance. The selection line chooses the candidate and its hyperparameters using validation loss, which must reflect the data and loss function expected at deployment.
When training performance improves while validation or test performance stalls or worsens, the widening gap signals overfitting. The model is learning quirks of the training sample that do not travel to new data.
Worked example
You are handed monthly account-return observations for an asset manager’s forecasting task. The team has set forecast-error loss as the deployment loss and has separated development data from a final test set. The exam asks which selection decision is defensible and what the final test loss means.
| Given | Detail |
|---|---|
| Frequency | Monthly observations |
| Target | Account return, percentage points |
| Deployment loss | Forecast-error loss |
| Development candidates | Simple and flexible specifications |
| Training result | Flexible specification has lower loss |
| Validation result | Simple specification has lower loss |
| Test status | Untouched |
Read the two performance rows together: the flexible specification fits the training observations better, but the simple one performs better on validation data. That reversal is the useful evidence for selection, because validation represents new development observations under the chosen forecast-error loss. Keep the final test set outside this comparison; its untouched status preserves a later estimate of generalization.
- Use monthly account returns as the target and forecast error as the deployment loss. This fixes the observation frequency and scoring unit before you compare models. The output is a monthly account-return target measured in percentage points and a forecast-error loss value for each forecast.
- Fit each candidate specification on training data. This measures each model’s in-sample fit without using validation information to choose between them. The output is a training-loss number for each candidate, with the flexible specification showing the lower loss.
- Use validation data to select the specification and its hyperparameters. This compares out-of-sample development performance under the loss the team will deploy. The output is a validation-loss number for each candidate, with the simple specification showing the lower loss.
- Apply the selected specification to untouched test data only after selection is complete. This gives an unbiased final check because the test observations did not influence the choice. The output is the selected model’s test-performance number, which estimates final generalization and cannot be used to retune the model.
Select the simple specification and report its untouched test performance as the estimate of final generalization.
Changed condition
| Condition | Original case | Changed case |
|---|---|---|
| Validation result | Simple specification favored | Flexible specification favored |
| Deployment loss | Forecast-error loss | Forecast-error loss |
| Test status | Untouched | Untouched |
Predict the move before reading the result. The deployment loss and test boundary are unchanged, so the selection rule stays fixed. The changed validation direction now points to the flexible specification, while the test set still waits until selection is complete. Before reading on, state which data split remains untouched and why.
Common error
You may repeatedly use the test set to choose a model because its score appears to be the most objective. The choice feels right because the test set looks fresh, but each look makes it part of your model or hyperparameter selection. When a vignette says you viewed test performance before finalizing the selection, you have contaminated the test set, and the final test estimate is no longer independent.
Check yourself
Practice
A forecasting team trains candidate models on a development sample, reviews validation behavior, and reserves a final test set. Training performance favors a flexible specification, while validation performance favors a simple specification.
Question 1
Which statement best describes the training objective?
Question 2
Which assignment of data roles is correct?
Question 3
Which statement correctly describes cross-validation?
Question 4
What does regularization do?
Question 5
What behavior signals possible overfitting?
A portfolio forecast will be deployed with a loss that penalizes underprediction more heavily than overprediction. Validation scores are available under that deployment loss and under squared error. Which choice is best?
An analyst reviews test performance after each hyperparameter change. What is the best diagnosis?
Revision snapshot
The fitting rule below combines parameter fitting, complexity control, and validation selection.
$$ \begin{aligned} \hat{\theta}m &= \operatorname{argmin}{\theta} \left[ L_{\mathrm{train}}(\theta,m) + \lambda \Omega(\theta,m) \right] \ \hat{m} &= \operatorname{argmin}{m \text{ in } \mathcal{M}} L{\mathrm{val}}(\hat{\theta}_m,m) \end{aligned} $$
The training objective is to optimize a loss on the training sample while preserving out-of-sample performance. Training data fit parameters. Validation data selects models or hyperparameters. Test data estimates final generalization. Cross-validation rotates validation folds within the development sample. The final test set remains untouched. Regularization trades in-sample fit for lower model complexity and potentially better out-of-sample performance. Overfitting is signaled by a widening gap between training performance and validation or test performance. A model-selection decision must reflect the data and loss function expected at deployment. On the exam, never use the test set repeatedly to select a model. Its apparent objectivity is the trap, and its score belongs to final generalization.
Unlock the full lesson and continue reading
Signup to continue reading this lesson and unlimited access questions, flashcards, AI notes, and more