Riley 2020 - Precision Criteria for Overall Risk, MAPE and Residual SD

Summary

Steps 1 and 2 of Riley et al.’s procedure are precision criteria. Step 1 sizes the study so the null-model intercept (overall risk or mean) is estimated within a margin : for binary outcomes (385 at ), and person-years under an exponential model for survival (2366 person-years for a 10-year risk of 0.632 at rate 0.10). Step 2 sizes it so predictions are accurate across the range. For binary outcomes it uses van Smeden’s simulation-derived (461 participants for , , MAPE 0.05). For continuous outcomes it needs for a residual SD within 10%.

Overview

A model that cannot even reproduce average risk in the target population is miscalibrated-in-the-large, whatever its discrimination. Step 1 is the floor. Step 2 asks for more: the whole set of individual predictions should be close to the truth on average. Both are precision targets, as opposed to the overfitting targets of Steps 3-4 (Riley 2020 - Shrinkage and Optimism Criteria for Overfitting).

Main Content

Step 1: precise overall outcome risk or mean (p. 2, Fig 1)

The intercept must be precise so the model predicts the mean outcome (continuous) or overall proportion (binary, time-to-event) accurately. A simple target is the intercept of the null model (no predictors). The recommended margin of error is .

Criterion B1: binary outcome (Fig 1, p. 9)

The approximate 95% CI for the overall proportion is . The absolute margin of error is . Solving for :

Worked values (): gives , so 385 participants (about with the outcome), targeting CI 0.45-0.55. gives 139 and gives 246 (p. 2).

Criterion T1: time-to-event outcome (Fig 1, p. 9)

Assume an exponential survival model (constant event rate ). The cumulative incidence at time is , with = events per person-year. The variance of is , where = total person-years of follow-up. The approximate 95% CI for is

Prespecify the anticipated and the key time point , then choose so that both CI bounds lie within (say) 0.05 of .

Worked value: years, , so . With person-years: to . Both bounds are within 0.05 of 0.632 (verified numerically: 0.5821 and 0.6761).

Continuous outcome (criterion C1)

The anticipated mean and variance of the outcome, plus the anticipated percentage of variation explained, must be prespecified. The Step 1 text (p. 2) sends readers to supplementary S2 for details; Box 1 (p. 4) points C1 to “supplementary material 1” instead. Neither supplement is in the PDF.

Step 2: small mean error across all individuals (pp. 2-3, Fig 2)

Definition: Mean absolute prediction error, MAPE (Fig 2, p. 10)

The average absolute difference between the model’s estimated outcome probabilities and the true probabilities, over individuals in the intended setting. It is the average error one is willing to allow.

Criterion B2: van Smeden MAPE formula (Fig 2, p. 10)

From simulation across many scenarios, van Smeden et al. (2019) found that the main drivers of a model’s mean predictive accuracy are , and . Their fitted approximation is

Rearranged for a target MAPE:

Conditions: (if the proportion exceeds 0.5, use proportion); . The formula was originally derived for parameters and later updated by simulation to . Recommended MAPE , lower when wrong decisions are costly.

Worked values: , , MAPE 0.050 gives , so 461 participants (about 138 events, EPP 13.8). MAPE 0.04 gives 695 (about 209 events, EPP 20.8).

Reading the coefficients: MAPE falls as , roughly the of parametric estimation. It rises as , roughly . So holding MAPE fixed requires to grow about linearly in (). That is why an “events per parameter” idea is not absurd, but the constant depends on .

Software: the interactive Shiny tool BeyondEPV (mvansmeden.shinyapps.io/BeyondEPV) implements B2. It is not in pmsampsize. Work to extend it to and to time-to-event outcomes was ongoing at publication.

Criterion C2: continuous outcome residual SD (p. 3; supplementary S3)

Accurate predictions across the range require the residual standard deviation to be estimated precisely. To target a multiplicative error below 10% in the estimated residual SD:

Reconstruction (not in the PDF; S3 holds the authors’ derivation): the 234 matches an exact chi-square CI for a variance. With residual degrees of freedom, the upper 95% bound for relative to is . Requiring this to be (a multiplicative error under 10%) gives (checked numerically with scipy.stats.chi2), so . The cruder normal approximation gives only , because the chi-square bounds are asymmetric. That this reconstruction reproduces 234 exactly is a consistency check, not a quotation of S3.

Examples

Step 1 and 2 numbers verified (python)

import math
z = 1.96
n_B1 = lambda phi, d=0.05: z**2*phi*(1-phi)/d**2
print([math.ceil(n_B1(p)) for p in (0.5, 0.1, 0.2, 0.05)])   # [385, 139, 246, 73]
n_B2 = lambda phi, P, m=0.05: math.exp((-0.508+0.259*math.log(phi)+0.504*math.log(P)-math.log(m))/0.544)
print(round(n_B2(0.3, 10), 1), round(n_B2(0.3, 10, 0.04), 1))  # 460.9 694.6
lam, t, T = 0.10, 10, 2366
ci = [1-math.exp(-(lam+s*z*math.sqrt(lam/T))*t) for s in (-1, 1)]  # [0.582, 0.676]

Marketing-analytics illustration (not from the paper)

For a churn or conversion propensity model with base rate 0.05 and 25 candidate parameters, B1 needs only 73 rows. B2 at MAPE 0.05 needs . Neither is the binding constraint. The shrinkage criterion usually is (see Example 1).

Connections

See Also