Internal and external validation of predictive models: a simulation study of bias and precision in small samples
Related Experiment Video
Updated: Sep 25, 2026

An R-Based Landscape Validation of a Competing Risk Model
Published on: September 16, 2022
Ewout W Steyerberg1, Sacha E Bleeker, Henriëtte A Moll
1Center for Clinical Decision Sciences, Department of Public Health, Erasmus MC, PO Box 1738 3000 DR, Rotterdam, The Netherlands. E.Steyerberg@ErasmusMC.nl <E.Steyerberg@ErasmusMC.nl>
Abstract:
We performed a simulation study to investigate the accuracy of bootstrap estimates of optimism (internal validation) and the precision of performance estimates in independent validation samples (external validation). We combined two data sets containing children presenting with fever without source (n=376+179=555; 120 bacterial infections). Random samples were drawn from this combined data set for the development (n=376) and validation (n=179) of logistic regression models. The models included statistically significant predictors for infection selected from a set of 57 candidate predictors. Model development, including the selection of predictors, and validation were repeated in a bootstrapping procedure. The resulting expected optimism estimate in the receiver operating characteristic (ROC) area was compared with the observed optimism according to independent validation samples. The average apparent ROC area was 0.74, which was expected (based on bootstrapping) to decrease by 0.07 to 0.67, whereas the observed decrease in the validation samples was 0.09 to 0.65. Omitting the selection of predictors from the bootstrap procedure led to a severe underestimation of the optimism (decrease 0.006). The standard error of the observed ROC area in the independent validation samples was large (0.05). We recommend bootstrapping for internal validation because it gives reasonably valid estimates of the expected optimism in predictive performance provided that any selection of predictors is taken into account. For external validation, substantial sample sizes should be used for sufficient power to detect clinically important changes in performance as compared with the internally validated estimate.
Related Concept Videos
Data Validation
Key parameters for method validation include:
Testing a Claim about Standard Deviation
The hypothesis testing for the claim of population standard deviation (or variance) requires the data and samples to be random and unbiased. The population distribution also must be normal. There is no specific requirement on the sample size as the estimation is based on the chi-square distribution.
As a first step, the hypothesis (null and alternative) concerning the claim about...
Accuracy and Errors in Hypothesis Testing
In hypothesis testing, the probability of making a Type I error, denoted as α, is commonly set at 0.05. This significance level indicates a 5% chance...
Contaminants and Errors
Another key consideration is determining the appropriate number of samples required to...
Confidence Intervals
A confidence...
Mechanistic Models: Compartment Models in Individual and Population Analysis