FAILURE MAP
← Case archive

FA-65300 / Epidemic compartment models / Member archive

Household secondary attack rate: secondary consistency guard · case 05

Data-entry errors produce household SARs above 100%.

Member previewVariant 5 · 3 implementations · 7 checks per implementation

Case contract

Each household is [size, index_cases, secondary]; skip households without an index case, without members at risk, or with more secondaries than at-risk members; pooled SAR = sum secondary / sum (size-index); per-size table sorted by size ascending; return [pooled rounded 6 or None, table].

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: data error secondary too high[0.875, [[3, 1.25], [5, 0.5]]][0.5, [[3, 0.5], [5, 0.5]]]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 ↗