Epidemic ModelingPolicy and practice

Module 11Uncertainty, sensitivity and model comparison

Where uncertainty comes from, and how to measure it. On made-up towns with known truths, we add the sources of uncertainty one layer at a time (chance, parameters, measurement, structure, scenarios, computation), show how different parameters can tell the same story and what breaks the tie, rank inputs with local derivatives, Morris screening and Sobol indices, and compare forecasters with proper scores and interval coverage.

By the end you should be able to name the sources of uncertainty in a forecast, recognize confounded parameters and the data that separates them, choose and read a sensitivity analysis, and evaluate forecasts with backtests, proper scores and calibration.

Key ideas, one per episode

  • Ep. 45Chance alone moved the peak by 17 days; unknown parameters stretched that to 43; adding measurement, structure and scenarios widened it further.
  • Ep. 46Three towns with the same first month of cases ended with 9,000 to 85,000 cases; one serosurvey pinned the reporting share to 29–32%.
  • Ep. 47R0 alone explained 78% of the variance in the final size; the cut's start day mattered only through interactions; reporting mattered only for reported peaks.
  • Ep. 48An overconfident forecaster had the same error as an honest one but covered the truth only 23% of the time; a simple blend scored best.

Textbook: Chapter 11 of T. Lazebnik, Epidemic Modeling: Principles, Algorithms, and Applications (Academic Press, 2026). The episodes and slides follow the chapter’s topics in our own words, figures and simulations; nothing is copied from the book.

The title slide of Module 11: Uncertainty, sensitivity and model comparison

38 slides, written to be read on your own, with worked examples, “try it” boxes, our own small simulations and check-yourself questions (answers at the end). PDF, 0.9 MB.

Watch

4 short episodes for this module. Pick one from the list, and open the transcript to read along: each timestamp plays the episode from there. The narration is generated with a voice clone of Teddy, used with his permission.

Episode 45 · 2:34

Where uncertainty comes from

Where uncertainty comes from: chance, parameters, measurement, model structure, scenarios and computation, added one layer at a time to the same simulated epidemic, and how much each one widens the forecast.

Chance alone moved the peak by 17 days; unknown parameters stretched that to 43; adding measurement, structure and scenarios widened it further.

TranscriptEpisode 45
0:00

A guess dressed up as a fact. A forecast without uncertainty is a guess dressed up as a fact. Welcome to Module eleven: where uncertainty comes from, and how to measure it.

0:15

Chance. Start with chance itself. Run the same epidemic, with the same parameters, two thousand times in a town of twenty thousand. The final size barely moves: about ninety one percent every time. But the peak day ranges from day forty seven to day sixty four, depending on how the first chains of infection happen to go. That's process uncertainty: the randomness of who meets whom. It's aleatory, so better data won't remove it.

0:40

Parameters. Now admit we don't know the parameters exactly. Let R₀ be anywhere from two to three. Let the infectious period last eight days, twelve days, or anything between. The earliest peak now comes on day thirty eight. The latest comes on day eighty one. And the peak height more than doubles across the range. Splitting the variance of the peak day, about four fifths came from not knowing the parameters, and one fifth from chance. Parameter uncertainty is epistemic: better data can shrink it.

1:09

Measurement, structure, scenarios. Then the measurement. We see only twenty to forty percent of infections, about six days later, with noise on top. The reported peak arrives about five days after the real one. Its height can be as low as about one hundred thirty cases a day, or as high as three hundred eighty. Next, the model itself. If half of our analysts add a latent period, with the same R₀, the range of peak days stretches out to day one hundred fourteen. Structural uncertainty never shows up inside any single model's intervals. And the future. If there's an even chance that people cut their contacts by thirty percent from day forty, the final size could be as low as fifty six percent, or as high as ninety four. That's scenario uncertainty: not a property of the virus, but of choices still to be made.

1:50

Computation, and the full stack. A sixth source completes the list: computation. Samplers, filters and approximations add their own error, and they can fail quietly. Each layer added uncertainty. Leave one out, and your intervals are too narrow, and your confidence is borrowed.

2:06

Next. Next: when the data can't tell parameters apart. Identifiability and confounding.

Interactive lab

Sensitivity and forecast scores

Run local, Morris and Sobol sensitivity analyses on the module's SEIR town, and backtest forecasters whose intervals you can stretch or shrink.

The first panel analyzes the module's SEIR town with seven uncertain inputs; the second backtests simple forecasters on a simulated epidemic. Everything runs in your browser.

Simple math

Sensitivity and forecast scores

The module's SEIR town with a 60-day contact cut and seven uncertain inputs, and a simulated epidemic with two waves for backtesting forecasters. Everything runs in your browser.

Local
elasticity = % change in output ÷ % change in input

Cheap and clear, but it only describes the neighborhood of the baseline you pick.

Morris and Sobol
S1 = alone · ST = with all its interactions

Morris walks random paths to rank inputs; Sobol splits the output's variance among them.

Scoring forecasts
weighted interval score: width + penalties for misses

A proper score rewards intervals that are both sharp and right; coverage checks they mean what they say.

Model runs
–
Largest
–
Baseline output
–

Running…

Sensitivity of the chosen output

Local: elasticity size; Morris: mean effect and spread (scaled); Sobol: first-order (solid) and total (pale) indices.

Challenges

Each one is checked on your current settings, in its own panel.

  1. Move the baseline cut start until its local effect on the reported peak drops below 0.5.
  2. Run Sobol with at least 1,024 samples and find an input that matters for the share ever infected almost only through interactions (first-order index under 0.05, total index at least 0.1 higher).
  3. Forecasts: stretch the trend's intervals until its 90% intervals cover 85–95% of the truths 14 days ahead.
  4. Forecasts: shrink the trend's intervals until they cover fewer than half the truths 7 days ahead, and see its score get worse with the same median.
Trend error
–
Trend score
–
Trend 90% coverage
–
Blend score
–

Running…

Weighted interval score

Lower is better.

Coverage of 90% intervals

Dashed: the nominal 90%.