mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-14 06:40:50 +00:00
feat(insights): explain the shorter correlation list once
Since correlations are tested on seasonally adjusted residuals with an effective sample size, an account with history sees far fewer relationships, which reads as a defect without a word about it. The correlations response now carries findingsBeforeSeasonalAdjustment: true when the record kept a discovery pattern first stored before the change, one indexed lookup on the pattern store. An account created since can never qualify. The mood "What stands out" card shows a short note for those records, closable, remembered per viewer like the AI setup hint. Copy in all seven locales; OpenAPI regenerated.
This commit is contained in:
1 parent
4c58274bed
commit
898729d1a8
17 files changed
+445
-19
No files matched your search
@@ -62559,11 +62559,17 @@ components:
|
||||
description: v1.22 — labs ↔ outcome associations (each draw vs the contemporaneous outcome window-mean), FDR-controlled;
|
||||
absent-degrading on sparse draws.
|
||||
$ref: "#/components/schemas/LabCorrelationResult"
|
||||
findingsBeforeSeasonalAdjustment:
|
||||
type: boolean
|
||||
description: v1.42 — true when the record held a discovery finding before the engine began removing trend and season
|
||||
from both series. Drives a one-time explanation of why fewer pairs surface; false for every account created
|
||||
since.
|
||||
required:
|
||||
- discovered
|
||||
- pairsTested
|
||||
- fdrQ
|
||||
- minPairs
|
||||
- findingsBeforeSeasonalAdjustment
|
||||
additionalProperties: false
|
||||
description: v1.10.0 — FDR-controlled correlation discovery over a curated behaviour × outcome matrix, lagged behaviour
|
||||
→ next-day outcome. Only statistically-defensible pairs surface; descriptive, never causal.
|
||||
|
||||
Reference in new issue
Block a user