Importance of sample size for AI-based prediction models in healthcare

24 Feb 2026 · 52 min
51:32

In this lecture Richard Riley explains why adequate sample size is essential when developing or validating healthcare prediction models, whether built with traditional regression or modern AI/ML methods. He defines clinical prediction models, outlines the three phases of model research (development, evaluation, impact), and reviews the key performance metrics—discrimination, calibration, and clinical utility. Riley then details the many harms of using too‑small datasets: lack of generalisability, unfairness to minority groups, unstable predictor estimates, over‑fitting, mis‑calibration, and wildly uncertain individual risk predictions. He illustrates these issues with simulation studies that show how prediction variance explodes as sample size shrinks, and how performance measures (C‑statistic, R‑squared, calibration slope) degrade. The second half of the talk presents concrete solutions: sample‑size calculation methods for model evaluation (pmvalsample size) and for model development (pmsampsize), which incorporate outcome prevalence, expected discrimination, number of predictors, desired precision of performance metrics, and acceptable shrinkage. Riley discusses extensions such as Bayesian assurance probabilities, individual‑level stability (pmstabilityss), and the need for larger samples for machine‑learning algorithms. He concludes with practical advice to avoid “freezer‑dataset” shortcuts, use the provided R/Stata/Python packages, and consider emerging tools for anticipating predictive distributions.

Chapters

More from Richard

1:00:29
youtube.com

A general sample size framework for clinical prediction models | Prof. Richard Riley

3mo ago
52:38
youtube.com

Clinical Prediction Models & The Multiverse of Madness

4mo ago
56:51
youtube.com

The importance of sample size for clinical prediction models - NIHR RSS Research Methods Academy

1y ago
1:11:05
youtube.com

RSS Seminar with Richard Riley

3y ago
33:46
youtube.com

Sample size calculations for external validation of a clinical prediction model

4y ago
44:23
youtube.com

Stability of Clinical Prediction Models Developed Using Statistical or Machine Learning Approaches

4y ago
16:35
youtube.com

Sample size calculations for clinical prediction model research (aka "goodbye rules of thumb")

5y ago
23:34
youtube.com

PROGRESS in Prognosis Research

6y ago
See all content