VerifiedEvidence: highv1.0.0

Cross-Validation

A statistical technique assessing how well a model generalises to independent data, typically by repeatedly splitting data into fitting and testing subsets.

Last reviewedDarrin Baines IP Ltd

Concept Architecture

Concept

Theoretically, Cross-Validation is a statistical resampling technique used to evaluate the predictive performance and generalisability of a model by repeatedly partitioning data into training and validation subsets. It estimates how accurately a model is expected to perform on independent data, thereby reducing the risk of overfitting and supporting model selection. In health economics, cross-validation is commonly applied during the development of prediction models, mapping algorithms, risk equations and surrogate models incorporated into economic evaluations.

Mathematically, cross-validation is based on repeated estimation of a prediction error function across multiple data partitions. In k-fold cross-validation, the dataset is divided into k approximately equal subsets. Each subset serves once as the validation set while the remaining k ? 1 subsets form the training data. The overall cross-validation error is calculated as the average prediction error across all folds.

In practice, cross-validation is implemented by selecting an appropriate resampling strategy, fitting the model repeatedly and calculating predictive performance measures such as mean squared error, root mean squared error, mean absolute error or classification accuracy. In health economics, it is frequently used to validate utility mapping algorithms, disease risk prediction models and statistical models informing decision-analytic model parameters.


Purpose

Used to assess the predictive performance and generalisability of statistical models, compare competing model specifications and reduce overfitting before models are applied within health economic evaluations.


Mathematical Formulae

Primary Formula

For k-fold cross-validation,

CV = (1/k) �???? L?

where:

  • k = number of folds
  • L? = prediction loss calculated on validation fold i

Supporting Formulae

Mean Squared Error (common loss function):

MSE = (1/n) �???� (y? ? ??)�

Root Mean Squared Error:

RMSE = �MSE

Mean Absolute Error:

MAE = (1/n) �???� |y? ? ??|

Related Mathematical Methods

  • k-fold cross-validation
  • Leave-one-out cross-validation (LOOCV)
  • Repeated k-fold cross-validation
  • Bootstrap validation
  • Prediction error estimation
  • Model selection

Example

A health economist develops a mapping algorithm to predict EQ-5D utility values from a disease-specific quality-of-life questionnaire using data from 500 patients.

Ten-fold cross-validation is performed.

Validation fold mean squared errors are:

0.022, 0.020, 0.024, 0.021, 0.023, 0.019, 0.021, 0.022, 0.020 and 0.023.

The cross-validation error is

CV = (0.022 + 0.020 + ? + 0.023) / 10 = 0.0215

The low average prediction error indicates good expected performance on new patient data.


Excel Implementation

FunctionExample FormulaHealth Economics Application
AVERAGE=AVERAGE(B2:B11)Calculates the average validation error across folds.
SUM=SUM(B2:B11)Sums prediction errors before averaging.
COUNT=COUNT(B2:B11)Determines the number of validation folds.
SQRT=SQRT(B12)Calculates RMSE from MSE.
ABS=ABS(C2-D2)Computes absolute prediction error for MAE calculations.

VBA (Optional)

Automate repeated model fitting across validation folds and produce a summary report of cross-validation performance measures.


Sources

  • Drummond MF, Sculpher MJ, Claxton K, Stoddart GL, Torrance GW. Methods for the Economic Evaluation of Health Care Programmes. 4th ed.
  • Briggs A, Claxton K, Sculpher M. Decision Modelling for Health Economic Evaluation.
  • Hastie T, Tibshirani R, Friedman J. The Elements of Statistical Learning.
  • James G, Witten D, Hastie T, Tibshirani R. An Introduction to Statistical Learning.
  • ISPOR Good Practice Reports on statistical modelling and model validation.

Library

Publications

1
  • Journal article

    Model Transparency and Validation: A Report of the ISPOR-SMDM Modeling Good Research Practices Task Force-7 — Eddy, Hollingworth, Caro, Tsevat, McDonald & Wong, Task Force Report 7 ed., 2012 (Value in Health / Medical Decision Making)

    Best-practice guidance on model transparency and validation, defining face, internal, external and predictive validation and setting out how models should be documented for scrutiny.

Frequently Asked Questions (6)

  • What is cross-validation?

    A statistical technique assessing how well a model generalises to independent data, typically by repeatedly splitting data into fitting and testing subsets.

    Source: Stone 1974

  • How does cross-validation test a model on data it was not fitted to?

    Cross-validation splits the available data into parts, fits the model to some of them, and then tests how well it predicts the part held back, repeating this with different splits so every observation is used for testing in turn. Because each test uses data the model did not see while fitting, it measures how well the model generalises rather than how closely it echoes the data it learned from. Averaging the test results gives an honest estimate of predictive performance. Hastie and colleagues (2009) describe the method.

    Source: Hastie et al. 2009

  • How does cross-validation work?

    Cross-validation works by dividing the data into subsets, fitting the model on some subsets and testing its predictions on the held-out subset, then repeating so that each part serves as the test set in turn. In k-fold cross-validation, the data are split into k parts, and the model is fitted and tested k times, each time holding out a different part. Averaging the performance across the repetitions gives an estimate of how the model predicts on data not used in fitting.

    Source: Stone 1974

  • Why is cross-validation used?

    Cross-validation is used to estimate how well a model will perform on new, independent data, rather than on the data it was fitted to, on which it may fit deceptively well. By testing on held-out data, it detects overfitting, where a model captures noise and predicts poorly out of sample. It also helps compare and select models by their predictive performance. Cross-validation thus provides a more honest assessment of a model's generalisation than fit to the training data alone.

    Source: Akaike 1974

  • How does cross-validation detect overfitting?

    Cross-validation detects overfitting by testing the model on data it was not fitted to, so that a model which fits the training data closely but has captured noise will predict poorly on the held-out data, revealing the overfitting. A well-generalising model performs similarly on training and test data, while an overfitted one performs much worse on the test data. By exposing this gap, cross-validation shows whether a model's apparent fit reflects genuine relationships or overfitting to the sample.

    Source: Akaike 1974

  • What are the limitations of cross-validation?

    Cross-validation is computationally demanding, since the model is fitted many times, and its estimate of performance carries variability depending on how the data are split, especially with small datasets where subsets are small. It assumes the test data represent the intended target, so it estimates generalisation to data like the sample, not necessarily to a very different population. Choices such as the number of folds affect the result. These limitations mean cross-validation is a useful but not infallible guide to generalisation.

    Source: Stone 1974

Trust Record

Verified by Dr Darrin Baines

British health economist

Professional identity: darrinbaines.org

Verification date: 14 Oct 2025

Content version: 1.0.0

Canonical Identity

Term code
HE-EM-MV-015

Stable URI · Machine-readable · Resolvable · CC BY 4.0