Visual walkthrough — Kalman filter derivation — predict step, update step
We only need one running story: "Where is my drone, in one dimension?" A number line, marked in metres. That's it.
Step 1 — A guess is a hill, not a point
WHAT. I think my drone is at m. But I am not certain. So instead of one dot on the number line, I draw a hill — tall where I think it is, low where I doubt it. This hill is a Gaussian (a bell curve).
WHY a hill and not a dot? Because a dot claims perfect knowledge, which I don't have. The hill carries two facts at once: its peak (my best guess) and its width (my doubt). We will name these.
PICTURE. Look at figure s01. The peak sits at m — that's my best guess (the mean). The width is set by — the standard deviation, literally "how many metres of wiggle room." A fat hill = unsure; a thin spike = confident.

Why the exponential and not, say, a triangle? Because when you combine two independent pieces of evidence, probabilities multiply, and the exponential is the one shape that stays the same shape after multiplying (a hill times a hill is still a hill). We lean on that in Step 3. See Covariance matrices and Gaussian distributions.
Step 2 — A measurement is a second hill
WHAT. My GPS now reports m, and GPS is also fuzzy, with its own width . So I draw a second hill, peaked at .
WHY draw it the same way? So the two pieces of evidence live on the same picture and can be compared fairly — both as hills of position, both with an honest width.
PICTURE. Figure s02: the cyan hill is my prior guess (peak ), the amber hill is the measurement (peak ). Notice they overlap. The true position is probably somewhere in that overlap — near neither peak exactly.

Step 3 — Multiply the hills; the answer is another hill
WHAT. Two independent pieces of evidence combine by multiplying their hills, point by point along the number line. Where both are tall, the product is tall; where either is near zero, the product is squashed to zero.
WHY multiply? This is Bayesian inference in one move: independent evidence multiplies. It's the reason the fused hill sits between the two peaks and is thinner than either.
PICTURE. Figure s03: cyan hill × amber hill = the white hill. Three things to read off it:
- Its peak sits between and — a compromise.
- It leans toward whichever original hill was thinner (more trusted).
- It is narrower than both parents — combining evidence makes you more sure.

Multiplying two exponentials means adding their exponents:
- Each term :: a hill's "penalty" for a candidate being far from that hill's peak.
- The :: because — multiplying hills = adding exponents.
Step 4 — Find the new peak (that's the fused estimate)
WHAT. The fused hill's peak is where the sum of penalties above is smallest (least penalty = tallest hill). Slide until the slope is flat — that's the top of the hill.
WHY use the derivative? The derivative is the tool that measures slope. "Peak" means "slope ." So we differentiate the exponent and set it to zero — that's the one place the hill stops rising and starts falling. This is the only calculus on the whole page, and it's here for exactly this reason: to locate a maximum.
PICTURE. Figure s04: the white fused hill with a flat tangent line at its peak, marked . The two grey slopes on either side show the derivative is positive on the left, negative on the right, zero exactly at the top.

Differentiate the exponent, set to :
- :: how hard the prior hill "pulls" back toward ; a thin hill (small ) pulls harder.
- :: same pull toward the measurement .
- :: the two pulls balance — the peak sits where the tug-of-war is even.
Solve for (call it , the fused estimate):
- Notice the cross-weighting: is multiplied by the other hill's variance . Small (I'm confident) → 's weight dominates → answer leans to . Correct: the thinner hill wins.
Step 5 — Rewrite as "old guess + a nudge": meet the gain
WHAT. The formula above is symmetric and pretty, but a filter runs online: it has an old guess and wants to nudge it toward the new data. So we algebraically rearrange the same into
WHY this form? Because is the surprise (how far the measurement lands from my guess), and is the fraction of that surprise I actually act on. This is the seed of the real Kalman gain.
PICTURE. Figure s05: number line with at , at ; a full arrow from to of length ; a shorter amber arrow of length landing on . The gain literally is the fraction of the arrow you travel.

This is exactly from the parent, with , , and . Same idea, dressed for vectors — see State-space representation.
Step 6 — The new width: why confidence always grows
WHAT. The fused hill is thinner. Its variance:
WHY does the width shrink? Because , the factor is between and , so always. The second form is the punchline: precisions (1/variance) add. Each hill contributes its own sharpness, and sharpnesses stack.
PICTURE. Figure s06: the parent hills faint in the background, the fused white hill drawn solid and visibly taller and narrower than either. Its half-width is marked and is shorter than both and .

Step 7 — The two degenerate cases (never left unshown)
WHAT. Push the dials to their extremes so no reader is ever surprised.
Case A — a perfect sensor (). The measurement hill becomes an infinitely thin spike. . The fused hill collapses onto : , . We fully believe the sensor.
Case B — a useless sensor (). The measurement hill flattens into a pancake carrying no information. . The fused hill stays exactly where the prior was: , . We ignore garbage data. (This is why setting in the parent is a trap: it makes the prior the infinitely-thin one, so the filter ignores every real measurement forever.)
WHY show these? Because a formula you can't stress-test at its limits is a formula you don't understand. Both extremes agree with common sense — that's our proof it's right.
PICTURE. Figure s07: two side-by-side panels. Left: a spike measurement (amber) drags the fused peak onto it. Right: a flat measurement (amber) leaves the fused hill sitting on the prior.

The one-picture summary
Figure s08 stacks the whole derivation into one frame: prior hill (cyan) at , measurement hill (amber) at , and the fused hill (white) sitting between them — thinner than both — with the gain-fraction arrow carrying the peak from to . Every symbol on the page lives somewhere in this one picture.

Recall Feynman retelling — say it out loud
Imagine you're guessing where your drone is. Your first guess is a hill on a number line: tall where you think it is, wide if you're unsure. Then GPS gives you a second hill somewhere else. To combine two honest opinions, you multiply the hills — and a hill times a hill is another, skinnier hill sitting between the two. Its peak is your new best guess; it leans toward whichever hill was skinnier (the one you trusted more). To find that peak you slide along until the slope is flat — that's calculus doing one small job: locate the top. Rearranged, the answer says "start at your old guess, then step a fraction of the way toward the measurement." That fraction is your own doubt divided by the total doubt: unsure of yourself → step far; confident → barely budge. And the new hill is always thinner than both — because looking at data can only reduce your ignorance. That's the entire Kalman update. The matrix version just does this in many dimensions at once.
Recall Quick self-test
Why does multiplying two Gaussians give a Gaussian? ::: Because multiplying exponentials adds their exponents, and the sum of two quadratics in is still a single quadratic — the signature of one Gaussian. In , what does represent? ::: The innovation / surprise — how far the measurement lands from what I predicted. If , what happened? ::: The sensor was useless (or the prior was perfect); the estimate ignores the measurement and stays at . Why is the fused variance always smaller than ? ::: Because and , so — combining evidence can only sharpen.
Where this goes next: the same three-hill picture, made non-linear, becomes the Extended Kalman Filter (EKF) and Unscented Kalman Filter (UKF); the "precisions add" idea is the engine of Recursive Least Squares; and fusing hills from different instruments is exactly IMU and GPS sensor fusion.