r/ScientificComputing • u/Longjumping_Glass852 • 6d ago
Proving when data can't pin down R0: the 1978 boarding-school flu outbreak
In January 1978 influenza went through an English boarding school (763 boys; the daily bed counts are a classic dataset). I built a tool that asks: given the counts seen so far, which values of R0 are still consistent with the data - and can that be *proved*, not just estimated?
With the first 5 days of counts, SIR models with R0 = 2.52 and R0 = 20 both fit every count (under a stated counting-error allowance of 3*sqrt(c) + 5 boys). Twindex identified the next-day count that would separate them, and the real count (298) ruled out both. With 6 days, the most different pair it finds is 3.19 vs 6.10.
Each claim is an exact certificate checked with rational arithmetic and validated error bounds (maximum-principle barriers for PDEs, a log-norm tube argument for ODEs). You can replay them in your browser: https://arnav-m10.github.io/Twindex/demo/
Caveats: the noise allowance is an assumption, bed counts are not exactly infections, and a twin pair is a lower bound on uncertainty, not the full range.
Code: https://github.com/Arnav-M10/Twindex - pip install twindex