← All posts

Modified MAPE: Mean Absolute Prediction Error as a Prediction Instability Metric

Clinical Epidemiology ResearchUniqcret doctor knowledgesData Analytics or Statistics
Modified MAPE: Mean Absolute Prediction Error as a Prediction Instability Metric
On this page

Bootstrap-Based Assessment of Prediction Reproducibility


1. Concept Overview (Important Reset)

In this framework, MAPE is NOT a performance metric.

It does not compare prediction vs outcome.

Instead, it measures:

How much predictions change when the model is re-fitted on different bootstrap samples


2. Core Idea

You have:

MAPE quantifies:

The absolute difference between the original prediction and the bootstrap prediction for the same patient.


3. Step-by-Step Definition

Step 1: Fit Final Model

p^iorig

for all patients


Step 2: Bootstrap Loop (b = 1 to 500)

For each bootstrap iteration:

2.1 Fit Bootstrap Model


2.2 Predict on Original Data

p^iboot(b)

2.3 Identify Overlapping Patients

Because bootstrap sampling is with replacement:

Let S_b denote the set of patients included in bootstrap sample b.

Typically ~63% (~360 patients)


2.4 Compute MAPE for bootstrap b

Only for patients in (S_b):

MAPE(b)=1|Sb|i\inSb|p^iorig-p^iboot(b)|

4. Final MAPE

After 500 iterations:

FinalMAPE=1Bb=1BMAPE(b)

5. Interpretation

This MAPE reflects:

Prediction instability across resampled datasets

Meaning:


6. Why Only Use Overlapping Patients (~63%)?

Because:

“Prediction from full-data model” vs “Prediction from bootstrap model trained on (partly) same patients”

👉 This isolates model variability, not extrapolation


7. Why This is NOT Standard MAPE

Standard MAPE:

|y^-y|

Your MAPE:

|p^orig-p^boot|

👉 Therefore:

Type Measures
Standard MAPE prediction vs truth
This MAPE prediction vs prediction

8. Why Apparent MAPE Does NOT Exist Here

❗ “You cannot define apparent MAPE.”

Because:

So:

This is purely:

model-to-model variability metric


9. Relation to Clinical Modeling

This metric evaluates:

It complements:

Domain Metric
Discrimination AUROC
Calibration slope / intercept
Accuracy Brier
Stability MAPE (this definition)

10. Key Insight (PhD-level)

This MAPE is essentially:

Bootstrap-based L1 distance between prediction functions

It answers:

“If I rebuild the model on slightly different data, how much do predictions change?”


11. Suggested Reporting Statement

“Prediction stability was assessed using a bootstrap-based Mean Absolute Prediction Error (MAPE), defined as the average absolute difference between predictions from the final model and bootstrap-refitted models across overlapping individuals. Lower values indicate greater model stability.”


Final Takeaway

0
Message for International and Thai ReadersUnderstanding My Medical Context in ThailandRead more →Message for International and Thai ReadersUnderstanding My Broader Content Beyond MedicineRead more →

Comments

No comments yet. Be the first to share your thoughts.

Sign in to comment