Cheap and clear, but it only describes the neighborhood of the baseline you pick.
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.
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.
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
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.
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.
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.
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.
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.
Next. Next: when the data can't tell parameters apart. Identifiability and confounding.
A perfect fit, unknown parameters. A model can fit the data perfectly and still not know its own parameters. That's not a bug in the fitting. It's a limit of the data.
Reporting or infections?. There are two kinds of identifiability. Structural: with perfect, noise free data, could the parameters be pinned down at all? Practical: with the noisy, finite data we actually have, can they? Here's a classic tie. Picture three towns. The first reports ten percent of its infections. The second reports thirty percent, and the third reports ninety. Each starts with a different number of infections, chosen so that all three show the same reported cases for thirty days, within ten percent, which is less than the daily noise. Their futures differ enormously. The reported peaks fall twelve days apart, from day thirty eight to day fifty, and the totals run from about nine thousand up to eighty five thousand. The early curve fixes the product of reporting and infections, not either one.
The generation interval. Assumptions can confound too. To turn a growth rate into a reproduction number, you need the generation interval. The same epidemic, doubling every seven days, gives R of about one and a half if the interval is four days. Stretch the interval to ten days, and R becomes about two and a half.
Sloppiness. Even when every parameter is identifiable in principle, most combinations are barely constrained. Fit a five parameter SEIR model to sixty days of cases, and the loosest combination of parameters is about three and a half thousand times more uncertain than the stiffest. That's sloppiness. The stiff direction here is essentially the growth rate. Along the sloppy directions, parameters can move a lot while the fit barely changes.
Breaking the tie. How do you break a tie? Bring in data that sees what cases can't. From forty days of noisy cases, the reporting share could be anywhere from sixteen to thirty five percent. Add one serosurvey of two thousand people on day forty, and the range shrinks to between twenty nine and thirty two percent. The truth was thirty. Before you trust a parameter, ask: could different values tell the same story? If so, find data that tells them apart, or report the whole range.
Next. Next: which inputs drive a model's output? The sensitivity toolbox.
Which inputs matter?. Seven uncertain inputs, three outputs we care about. Which inputs actually matter? Sensitivity analysis answers that, if you ask it the right way.
Local sensitivity. Our town is an SEIR model with a sixty day cut in contacts. The inputs: R₀, the latent and infectious periods, the reporting share, the first infections, how strong the cut is, and when it starts. The outputs: the share ever infected, the peak of reported cases, and the day of that peak. The quickest check is local: nudge one input by one percent and watch the outputs. At our baseline, a one percent rise in R₀ raises the final size by about 0.9 percent, and the peak of reported cases by almost seven percent. But local answers hold only near the point where you stand. Here the cut starts on day fifty, right at the peak, so the start day looks hugely important: one percent later raises the peak by four percent.
Morris screening. Global methods move all inputs across their whole ranges. Morris screening is cheap: it walks random paths through the input space, changing one input at a time, and records each effect. One hundred paths cost eight hundred runs. The mean size of those effects ranks the inputs; their spread flags curves and interactions. For the final size, R₀ ranks first by far. For the peak of reported cases, the reporting share comes a close second.
Sobol indices. Sobol indices go further: they split the output's variance among the inputs. The first order index is the share due to an input alone; the total index adds every interaction it takes part in. With about one hundred forty seven thousand runs, R₀ alone explains seventy eight percent of the variance in the final size. The start day of the cut explains almost nothing alone, yet its total index is fifteen percent: it matters only together with other inputs. And the reporting share has a total index of zero for the final size and the peak day, but thirty seven percent for the peak of reported cases. Sensitivity always depends on the question.
The toolbox. The toolbox, in order of cost. Local derivatives give a first look in about fifteen runs. Morris screens many inputs with hundreds of runs. Sobol apportions the variance, but needs tens of thousands of runs or more, or a fast emulator trained to stand in for the model. Sensitivity tells you where to spend effort: which input to measure better, and which to stop arguing about.
Next. Next: comparing models, with scores, coverage, and fitness for purpose.
Best for what?. Which model is best? Wrong question. Best for what? Nowcasting, forecasting and explaining reward different things.
Fit is not foresight. First trap: in-sample fit. We fitted polynomials to twenty eight days of log cases. Each extra degree fitted the past better, but forecasts seven days ahead got worse. By degree five, they were typically off by a factor of about fourteen. Penalized criteria like AIC push back on complexity: here, AIC preferred the straight line. Better still, test a model the way you'll use it: forecast from many past dates, using only the data available on each date.
Proper scores. Then score the whole forecast, not just its middle. We backtested four forecasters on a simulated town with two waves, from twenty six dates, seven days ahead. A trend forecaster and an overconfident copy of it have the same median, and so the same average error. But the copy's ninety percent intervals caught the truth only twenty three percent of the time. The honest version: ninety six percent. A proper score, like the weighted interval score, rewards being both sharp and right. It ranked the overconfident copy behind the honest one: 9.5 against 7.9, lower is better. A very wide forecaster caught everything, and still scored worse: 9.9.
Calibration and ensembles. Calibration asks whether intervals mean what they say: ninety percent intervals should contain the truth about ninety percent of the time. Check it with coverage, and with histograms of where each observation falls within its forecast. Combining forecasters often helps. An equal blend of last week's level and the trend scored 6.5, better than either alone, with ninety six percent coverage.
Fitness for purpose. Finally, match the criteria to the decision. When running out of beds costs far more than having beds to spare, a model that captures the tail may beat one with a smaller average error. Uncertainty quantified, sensitivity explained, models compared for their purpose: that's what makes a model trustworthy.
Next. That closes Module eleven. Next, in Module twelve: the computer side of epidemic modeling.
2:34Episode 45 · 11.1Where uncertainty comes fromChance alone moved the peak by 17 days; unknown parameters stretched that to 43; adding measurement, structure and scenarios widened it further.
2:40Episode 46 · 11.2Identifiability and confoundingThree 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%.
2:55Episode 47 · 11.3The sensitivity toolbox: Morris and SobolR0 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.
2:38Episode 48 · 11.4Comparing models: scores and coverageAn overconfident forecaster had the same error as an honest one but covered the truth only 23% of the time; a simple blend scored best.
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.
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.
Morris walks random paths to rank inputs; Sobol splits the output's variance among them.
A proper score rewards intervals that are both sharp and right; coverage checks they mean what they say.
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.
- Move the baseline cut start until its local effect on the reported peak drops below 0.5.
- 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).
- Forecasts: stretch the trend's intervals until its 90% intervals cover 85–95% of the truths 14 days ahead.
- 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.
Running…
Weighted interval score
Lower is better.
Coverage of 90% intervals
Dashed: the nominal 90%.
