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. Benchmark 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%
15.1%
2
PLOS ONE
4510 papers in training set
Top 18%
10.3%
3
eLife
5422 papers in training set
Top 10%
7.4%
4
Scientific Reports
3102 papers in training set
Top 22%
5.0%
5
Epidemics
104 papers in training set
Top 0.3%
4.4%
6
Nature Communications
4913 papers in training set
Top 38%
3.7%
7
Bioinformatics
1061 papers in training set
Top 5%
3.7%
8
Journal of The Royal Society Interface
189 papers in training set
Top 2%
2.7%
50% of probability mass above
9
BMC Bioinformatics
383 papers in training set
Top 3%
2.5%
10
Biomechanics and Modeling in Mechanobiology
25 papers in training set
Top 0.4%
1.8%
11
Royal Society Open Science
193 papers in training set
Top 2%
1.7%
12
Medical Decision Making
10 papers in training set
Top 0.1%
1.7%
13
Nature Computational Science
50 papers in training set
Top 0.6%
1.7%
14
Proceedings of the National Academy of Sciences
2130 papers in training set
Top 34%
1.5%
15
Bulletin of Mathematical Biology
84 papers in training set
Top 1%
1.5%
16
Patterns
70 papers in training set
Top 1%
1.3%
17
Methods in Ecology and Evolution
160 papers in training set
Top 2%
1.3%
18
Quantitative Biology
11 papers in training set
Top 0.5%
1.0%
19
PLOS Biology
408 papers in training set
Top 15%
1.0%
20
Infectious Disease Modelling
50 papers in training set
Top 1%
0.9%
21
Nature Biotechnology
147 papers in training set
Top 6%
0.9%
22
npj Digital Medicine
97 papers in training set
Top 3%
0.9%
23
Research Synthesis Methods
20 papers in training set
Top 0.2%
0.8%
24
Communications Biology
886 papers in training set
Top 22%
0.8%
25
Frontiers in Physics
20 papers in training set
Top 1.0%
0.7%
26
iScience
1063 papers in training set
Top 33%
0.7%
27
Epidemiology
26 papers in training set
Top 0.5%
0.7%
28
npj Systems Biology and Applications
99 papers in training set
Top 3%
0.7%
29
IEEE Journal of Biomedical and Health Informatics
34 papers in training set
Top 2%
0.7%
30
Biology Methods and Protocols
53 papers in training set
Top 3%
0.7%