endurance-coach-proof-and-analysis-toolkitlisted
Install: claude install-skill maxeskell/personal-training-app
# Proof & analysis toolkit — first-principles statistics of the insight engine
**Use this when** you must convince yourself (or a reviewer) that a statistical method in `src/insights/`
is *correct* — derive a confidence interval, justify a multiple-comparisons correction, re-derive the load
model, or reproduce a reported number by hand. **Don't use this when** you want the *decision procedure* for
whether a finding ships confirmed vs exploratory (that is the executable campaign in sibling
`endurance-coach-n1-validation-campaign`), or the *domain meaning* of CTL/EF/decoupling (sibling
`endurance-domain-reference`), or you are triaging a live "this correlation looks too good" symptom (sibling
`endurance-coach-debugging-playbook`).
Everything here is *deterministic and makes zero LLM calls* — these are pure functions with fixture tests.
You can reproduce every number in a Node REPL or a `node:test` file. Verify claims against the repo before
trusting them; exact line citations are given so you can `sed -n` the source.
## Why this toolkit exists (the one failure mode it fights)
The named enemy, stated in the header comment of `src/insights/stats.ts:1`: **"impressive-looking nonsense."**
Fitness (CTL), fatigue (ATL), HRV, RHR and weight are all heavily *autocorrelated* (today looks like
yesterday) and *trending*. Run a naive Pearson correlation on two such series and you get a big r with a tiny
p-value that means nothing — the effective information is a fraction of the point c