docs: clarify that synthetic draw generation is the fallback mechanism

AGENTS.md Error Bar Convention section now explicitly states that synthetic
draw generation from normal approximation is only used when real draws can't
be fetched (network error, unsupported browser, HF outage). Makes clear the
fallback is secondary, not primary, to the real-draw mechanism described in
the new §5.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-11 10:02:19 -04:00
co-authored by Claude Sonnet 5
parent 523c21d78c
commit b5ebf6bec2
+1 -1
View File
@@ -46,7 +46,7 @@ App.jsx (router)
### Error Bar Convention: 90% Intervals ### Error Bar Convention: 90% Intervals
The API returns 95% HPD intervals (`count_lower`, `count_upper`). However, all chart labels and calculations in this app use **90% intervals**. When converting HPD bounds to standard deviations for synthetic draw generation (used in Chart 5's ridgelines), the divisor used is **3.29** (corresponding to z = 1.645 for a two-tailed 90% interval). The API returns 95% HPD intervals (`count_lower`, `count_upper`). However, all chart labels and calculations in this app use **90% intervals**. When converting HPD bounds to standard deviations for the synthetic draw generation fallback (used in the ridgeline chart if real draws can't be fetched — see "Real posterior draws via duckdb-wasm" above), the divisor used is **3.29** (corresponding to z = 1.645 for a two-tailed 90% interval).
If you change this convention, update: If you change this convention, update:
- `RateDensityRidgeline.jsx` — SD calculation (`intervalWidth / 3.29`) and label text - `RateDensityRidgeline.jsx` — SD calculation (`intervalWidth / 3.29`) and label text