HappyBearLandia / WebGPU compute lab

One outbreak. Many trajectories.

Run thousands of separate stochastic SIR outbreaks concurrently. Explore how transmission changes the spread and timing of an illustrative epidemic.

WGSL compute
01 / Configure your experimentPopulation · 2,000 people

Requesting a WebGPU adapter…

—median peak infected
—median peak day
—median ever infected
—dispatch + readback
02 / Read the ensembleEach line is one possible future
━ Median▰ Middle 80%━ Individual outbreaks

Infected population · 180 days

Peak size across outbreaks

Synthetic population: 2,000 people, initially 10 infected. Each lane samples transmission within ±15% of the chosen rate and evolves an SIR model with daily normal-approximated binomial transitions, rounded and bounded to conserve population. Teal band: middle 80%; white: median; faint lines: sampled outbreaks. Illustrative model, not a calibrated health forecast.

How to interpret this experiment

Compare presets, then change one rate at a time. A larger transmission-to-recovery ratio generally supports growth; random events still produce different outcomes. The shaded interval describes variation between simulated outbreaks, not confidence in a real-world forecast. Identical parameters and seed reproduce the same experiment.