nightbrain
The course

Twenty-two lessons. One dataset: yours.

Nothing here unlocks on a schedule. Each lesson opens at the moment its concept becomes literally true of your own model — the first fit, the first excluded night, the first effect shrunk to zero — and quizzes you on your own numbers, never a textbook's.

How it teaches

Problem first, then the lesson.

The event is the trigger.

You meet the phenomenon — your model's silence, an unstable coefficient — before the lesson explaining it exists for you.

Guess before you see.

Interactive lessons make you commit — pick the shape of your own distribution before it draws, predict before the reveal.

Answer to advance.

Every lesson ends in one retrieval check on your own numbers. A concept counts as learned only when answered; later lessons stay locked until then — skimming unlocks nothing.

Wrong answers teach by name.

Every distractor encodes a documented misconception, and choosing it gets that misconception refuted directly — never a bare "incorrect."

Unit 1 · nine lessons

Statistical reasoning, watched live.

Your model trains in front of you, and every classic idea in statistics arrives as something it just did.

Why the app says nothing yet

unlocks · your first mornings

Small samples don't just hide patterns — they invent them. Your best and worst early stretches are usually the same phenomenon.

Your model made its first predictions

unlocks · the first fit

A model earns its keep only by beating "always guess your average" — scored on nights it never saw.

Two nights your tracker can't tell apart

unlocks · the first honest error

Differences smaller than your model's typical miss carry no information — the statistical root of tracker anxiety.

What it took to unlock that insight

unlocks · the first insight

Redraw your own history and watch the estimate wobble — stability across two hundred replays, not one strong showing, is the bar. Live resampling, on your actual nights.

interactive · resample your history

Why insights arrive one at a time

unlocks · the first insight

Ask twenty questions of one dataset and some answers are flukes by arithmetic alone — the jelly-bean problem, and why volume of claims signals a low bar.

What an insight does and doesn't say

unlocks · the first insight

Prediction and causation are different jobs. Only changing one thing on purpose — the n-of-1 trial — graduates one into the other.

Why some effects get shrunk to zero

unlocks · the first zeroed effect

Your model runs like a committee with a hard budget: effects pay rent by predicting, or get exactly nothing. Regularization, felt before it's named.

Why HRV and resting heart rate can't both get credit

unlocks · correlated evidence

When two features carry the same information, apportioning credit is a question your data cannot answer — and the model says so.

Yesterday leaks into today

unlocks · the carryover effect

Rough days cluster. Autocorrelation gets its own slot so momentum stops masquerading as whatever you did last night.

Unit 2 · eight lessons

Data analysis, on the same nights.

The moments most curricula invent with toy datasets — a missing value, a misleading chart, two instruments disagreeing — happen for real in your data, and each one is a trigger.

The question this app is built on

unlocks · your first rating

"Is my sleep good?" can't be answered by any amount of data. A real question names its label, its features, and what being wrong would look like.

What the ring measures, what it guesses

unlocks · the first sync

Temperature is measured; sleep stages are inferred by someone else's model. Provenance — and why raw records stay separate from derived ones.

The night that didn't count

unlocks · the first excluded night

A rating recalled a day later isn't noisy data — it's contaminated data. Why the app refuses backfill, and why honest deletions are decided by rule, in advance.

The shape of your nights

unlocks · fourteen mornings

The distribution is the object; the average is one summary of it. Your histogram won't draw until you commit to a guess about its shape.

interactive · guess the shape first

The same data, told two ways

after · the shape of your nights

Your own HRV history drawn twice — anchored at zero, then cropped into a crisis. Axis truncation deceives even when you notice it.

interactive · toggle the axis

The third thing behind both

after · correlated evidence

Confounding: a shared cause dressing up as a direct link between its effects — and why "control for everything" is a fantasy.

Evidence, not proof

after · five checks answered

A claim stated with its scope and uncertainty intact can be checked, argued with, and built on. Hedges aren't weakness; they're coordinates.

Your two devices disagree

unlocks · a second source

Two healthy instruments disagree systematically, not randomly. Calibration over shared nights — and the end of "machines are objective."

Unit 3 · five lessons

From your model to modern AI.

By now you own something rare: a real trained model you fully understand. This unit spends it on the shortest honest path to how frontier AI works — and it unlocks differently: not on data events, but on your answered checks. Mastery is the trigger.

Your model is a one-neuron network

answer to advance

Coefficients are weights; a neuron is a weighted sum. Not an analogy — an equivalence, with your own weights under your fingers.

interactive · be the neuron

Bend it, then stack it

answer to advance

Stacked linear layers collapse back into your lasso. One bend stops the collapse — and lets networks invent their own features.

Predicting the next word

answer to advance

Your rating-transition table is the gentlest language model there is. Same job, different table — and no database of answers anywhere inside.

interactive · your own bigram table

Words that update each other

answer to advance

Attention as context updating meaning, then count the knobs: thirteen coefficients here, hundreds of billions there. Same atoms; emergent chemistry.

What nobody can see

answer to advance

Preference training, fluency mistaken for truth, and the closing argument: your model's coefficients are its whole story — no one can say that of a frontier model.

The beta

The first lesson is one rating away.

The course starts the morning you do. Rate before you peek, let the model start earning, and the curriculum unlocks itself — one true moment at a time.

Join the beta iPhone · Oura