FAILURE MAP
← Case archive

FA-65108 / Epidemic compartment models / Member archive

Age-structured force of infection: susceptible base · case 03

Expected infections include people who are already infected or immune.

Member previewVariant 3 · 3 implementations · 7 checks per implementation

Case contract

lambda[a] = beta*susceptibility[a]*sum_b contacts[a][b]*infected[b]/sizes[b] (groups with zero size skipped); expected new infections susceptible[a]*(1-exp(-lambda[a])); return [lambdas rounded 6, new infections rounded 4, total rounded 4].

Why this case matters

Compartmental epidemic calculations drive outbreak forecasts, vaccine targets and hospital planning; a single wrong flow, rate conversion or boundary silently changes every downstream number.

One recorded failure

Sample boundary fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
regression: three age bands[[0.019, 0.0166, 0.0087], [3.7641, 8.2315, 2.5987], 14.5943][[0.019, 0.0166, 0.0087], [3.3877, 7.4083, 2.5121], 13.3081]Failed

MEMBER ARCHIVE

The complete case is available to members.

This record includes three runnable implementations, regression fixtures, execution results, and source hashes.

Member access is invitation-based. Sign in with your invited account to inspect the sources.

Sign in to the archive ↗