The loop is daily: overnight your wearable syncs, in the morning you rate, then the model refits and its prediction error updates. What follows is what "earned" actually means.
Fit
every morning
A lasso regression, refit from scratch on your history alone — duration and timing, bedtime consistency, HRV, resting heart rate, temperature, respiration, REM and deep sleep, 7-day sleep debt, yesterday's rating. Why lasso: with a few dozen mornings, a model must be forced to admit "not enough evidence." Its penalty shrinks weak effects to exactly zero — the silence is in the math, not bolted on afterward.
Check
out of sample
The model's one tuning knob is set by five-fold cross-validation, and the "typical miss" shown in the app is measured on mornings the fit never saw — honest error, not the flattering in-sample kind.
Survive
the unlock bar
Before an insight unlocks, its effect has to reappear in at least 80% of 200 bootstrap refits — two hundred alternate versions of your history, resampled night by night — and you need thirty rated mornings, minimum. One lucky week can't mint a claim.
200 resamples · 80% stability · 30 mornings
Interval
always shown
Every prediction carries an 80% interval and every effect its own range. An effect whose range still crosses zero stays unclaimed — "too uncertain to say," on screen, as a first-class answer.
Next
built to be replaced
Lasso is the opening act. A Bayesian sparse model, then a GAM — curves with uncertainty bands instead of straight lines — drop in behind the same interface once they prove themselves on real nights. The bar stays; the machinery under it improves.
fit · predict → (point, interval) · coefficients · curves