AI Glossary / Causal inference and experimentation / Beginner
Validation
Definition
Validation is the assessment of a model or system against criteria that help determine whether it is suitable for its purpose. In machine-learning development, it commonly means evaluating candidate models on separate development data to guide choices before a final test.
What it means
Training adjusts a model using examples. Validation provides feedback about how candidate choices perform beyond those training examples. A team might use that feedback to select model complexity, tune a decision threshold or decide when to stop training.
The word also has a broader engineering meaning: checking that the system meets the needs of its intended users and environment. A model can perform well on validation data while failing that broader test because the interface, workflow or available information makes its outputs unsuitable.
State the intended meaning. A claim that a model is validated should identify the criteria, data, operating conditions and limits of the assessment. The word by itself does not describe a certification or a guarantee.
How it works
Begin by defining the prediction task and success measures. Separate data in a way that represents the intended use. For independent examples, a suitable random split may work. For future forecasts or repeated records from the same entity, time-aware or grouped separation may be needed.
Fit each candidate using its training portion. Fit learned preprocessing steps there too, then apply those transformations to validation examples. Compare candidates using the chosen measures, recording important trade-offs rather than selecting whatever number looks best afterwards.
Validation can use one held-out set or cross-validation, in which different portions take turns as the assessment data. Repeated selection still uses that feedback, so validation performance is not automatically an unbiased final estimate for the selected model.
Reserve separate test evidence where appropriate. Broader system validation additionally examines realistic tasks, user behavior, failure handling and operating constraints. These activities complement predictive measurement rather than following automatically from it.
Three practical examples
- A retailer compares forecasting settings on a later development period before testing the chosen approach on a subsequent period.
- A document team selects an extraction threshold using separately labeled documents and measures both missed fields and unnecessary reviews.
- A service team checks whether staff can act correctly on model suggestions during a realistic workflow trial.
Think of it this way
Think of rehearsing a presentation with a practice audience. Their responses help you improve the presentation, but those responses are no longer independent evidence about the final version after you have tailored it to them.
A rehearsal also cannot reproduce every real audience or setting. Similarly, useful validation provides structured evidence within a defined scope, without guaranteeing every future outcome.
Worked example
Selecting a model without spending the final test
An invented project has 1,000 suitably independent labeled examples. It allocates 600 for fitting, 200 for validation and 200 for a final test. These proportions illustrate roles rather than prescribe a universal split.
Candidate A makes 30 validation errors; candidate B makes 24. Their validation error rates are 15% and 12%. If the predeclared choice is the lower error rate and other requirements are satisfied, the team selects B.
It then evaluates the selected procedure on the reserved test data. Suppose B makes 29 errors there, or 14.5%. The difference from 12% is not surprising proof of a broken experiment; both estimates are sample-dependent, and B was selected using validation feedback. The final report distinguishes the selection result from the test result.
Illustrative case study
A fictional facilities company, Birch Scheduling, develops a model to suggest appointment lengths. Randomly separated records produce encouraging validation scores because repeated visits from the same sites appear on both sides of the split.
The planned launch targets new sites. The team changes the assessment to hold out whole sites and discovers a weaker result. It also observes that staff sometimes interpret suggested durations as fixed commitments rather than planning estimates.
The revised work addresses two different problems: the validation data did not represent the deployment question, and the system presentation did not fit the operational task. Improving only the headline metric would have left the second problem unresolved. No business improvement is claimed from the fictional exercise.
Common misconceptions and mistakes
Validation is not synonymous with training accuracy. Performance on examples used to fit the model cannot answer the same question as appropriately separated assessment.
A validation set is not an unlimited resource for independent confirmation. Repeatedly selecting against it can adapt the development process to its particular examples.
A strong aggregate score does not show that every subgroup, rare condition or workflow requirement is satisfactory. Nor does passing a historical assessment establish suitability after substantial changes to data, system components or intended use.
Business use
Treat validation as a documented decision process. Name the requirement being assessed, the evidence used and the person responsible for interpreting unresolved limitations.
For predictive models, connect selection measures to operational consequences. For deployed systems, include relevant user tasks and failure recovery. Preserve the data and system versions so later changes can be assessed against the original scope. A useful validation report supports a specific decision; it should not become a permanent badge detached from that decision.
People also ask
Is validation the same as verification?
Terminology varies, but engineering verification asks whether specified requirements are met, while validation asks whether the system suits its intended use.
Does cross-validation eliminate the need for careful data separation?
No. Its folds still need to respect time, groups and the information available when predictions will be made.
Can validation data affect the final model?
Yes. Selecting settings or checkpoints with it influences the final choice, even when its examples are not used for gradient updates.
Check your understanding
A team tries 100 configurations on a validation set, selects the best and calls that score an independent final test. Is that description justified?
Answer: No. The score helped select the winner. The report should describe it as validation evidence and obtain an appropriately separate estimate for the selected procedure.
Related terms
- Validation set
- Validation error
- Cross-validation
- Test set
- Data leakage
- Model selection
- Verification
- hyperparameter
- intended use
Learn next
Write the decision your validation must support, then identify the population and conditions it needs to represent. Draw the separation between fitting, selection and final assessment. Next compare predictive validation with a realistic workflow check to see what each can establish.
More in Causal inference and experimentation
- Treatment-confounder feedback - Treatment-confounder feedback occurs when earlier treatment changes a later variable that both influences subsequent treatment and predicts the outcome.
- Treatment effect - A treatment effect is the causal difference between outcomes under two specified interventions or treatment conditions.
- True positive rate - True positive rate is the proportion of actual positive cases that a classifier correctly identifies as positive. It is also called recall or sensitivity.
- Validation loss - Validation loss is the value of a specified loss function measured on validation data for a model checkpoint or candidate.
- Variable importances - Variable importances are scores that describe how input variables matter to a fitted model according to a particular assessment method.
- Verification and validation - Verification and validation, often abbreviated V&V, are complementary activities for assessing a system.
Sources
Sources: Google Machine Learning Glossary, validation: https://developers.google.com/machine-learning/glossary#validation Scikit-learn, cross-validation and model selection: https://scikit-learn.org/stable/modules/cross_validation.html Scikit-learn, data leakage and preprocessing: https://scikit-learn.org/stable/common_pitfalls.html NASA, verification and validation distinctions: https://www.nasa.gov/reference/2-4-distinctions-between-product-verification-and-product-validation/
Previous: Vague set Next: Validation error