Back

Educational Browser-Native SIR Simulation: Analytical Benchmarks Showing Numerical Accuracy for Lightweight Epidemic Modeling

Ben-Joseph, J.

2026-04-17 epidemiology
10.64898/2026.04.15.26350961 medRxiv
Show abstract

Lightweight epidemic calculators are widely used for teaching and rapid scenario exploration, yet many omit the methodological detail needed for scientific reuse. We present a browser-native SIR calculator that exposes forward Euler and classical fourth-order Runge-Kutta (RK4) integration alongside epidemiologically interpretable outputs and a population-conservation diagnostic. The implementation is anchored to analytical properties of the deterministic SIR system, including the epidemic threshold, the peak condition, and the final-size relation. Bench-mark experiments show that RK4 is essentially step-size invariant over practical discretizations, whereas Euler at a coarse one-day step overestimates peak prevalence by 3.97% and final size by 0.66% relative to a fine-step RK4 reference. These results demonstrate that browser-based tools can support publication-quality computational narratives when solver choice, diagnostics, and assumptions are treated as first-class outputs.

Matching journals

The top 8 journals account for 50% of the predicted probability mass.

1
PLOS Computational Biology
1633 papers in training set
Top 2%
14.9%
2
PLOS ONE
4510 papers in training set
Top 18%
10.3%
3
eLife
5422 papers in training set
Top 10%
7.3%
4
Scientific Reports
3102 papers in training set
Top 22%
4.9%
5
Epidemics
104 papers in training set
Top 0.3%
4.4%
6
Nature Communications
4913 papers in training set
Top 37%
4.0%
7
Bioinformatics
1061 papers in training set
Top 6%
3.3%
8
Journal of The Royal Society Interface
189 papers in training set
Top 2%
2.6%
50% of probability mass above
9
BMC Bioinformatics
383 papers in training set
Top 3%
2.4%
10
Biomechanics and Modeling in Mechanobiology
25 papers in training set
Top 0.4%
1.8%
11
Nature Computational Science
50 papers in training set
Top 0.6%
1.7%
12
Medical Decision Making
10 papers in training set
Top 0.1%
1.7%
13
Royal Society Open Science
193 papers in training set
Top 2%
1.7%
14
Proceedings of the National Academy of Sciences
2130 papers in training set
Top 33%
1.7%
15
Bulletin of Mathematical Biology
84 papers in training set
Top 1%
1.5%
16
Patterns
70 papers in training set
Top 1%
1.4%
17
Methods in Ecology and Evolution
160 papers in training set
Top 2%
1.2%
18
PLOS Biology
408 papers in training set
Top 13%
1.2%
19
Infectious Disease Modelling
50 papers in training set
Top 1.0%
1.0%
20
Quantitative Biology
11 papers in training set
Top 0.4%
1.0%
21
npj Digital Medicine
97 papers in training set
Top 3%
0.9%
22
Nature Biotechnology
147 papers in training set
Top 7%
0.9%
23
npj Systems Biology and Applications
99 papers in training set
Top 2%
0.8%
24
Research Synthesis Methods
20 papers in training set
Top 0.2%
0.8%
25
iScience
1063 papers in training set
Top 31%
0.8%
26
Communications Biology
886 papers in training set
Top 23%
0.8%
27
Epidemiology
26 papers in training set
Top 0.6%
0.7%
28
Frontiers in Physics
20 papers in training set
Top 1.0%
0.7%
29
Physical Review X
23 papers in training set
Top 0.6%
0.7%
30
Frontiers in Neuroinformatics
38 papers in training set
Top 0.9%
0.7%