3.5.21 · D1Guidance, Navigation & Control (GNC)

Foundations — Kalman filter derivation — predict step, update step

2,174 words10 min readBack to topic

This page assumes you know nothing. Before you touch the predict/update equations in the parent topic, you must be fluent in a small pile of symbols. We build them one at a time, each from a picture, each earning the next.


0. The single picture to hold in your head

Everything is about a bump. A "guess with doubt" is drawn as a bell curve: the peak sits at your best guess, and the width says how unsure you are. Narrow bump = confident. Wide bump = clueless.


1. Scalars, vectors, and the state

The hidden thing we care about is the state . In GNC it usually bundles several physical quantities:

means "the state at time step ". The little is a clock tick: is the previous instant, is now, is next. We build State-space representation out of exactly this indexing.


2. The hat — guess versus truth

This distinction is the most-missed idea in the whole subject. Every time you see a hat, remind yourself: this is a belief, not a fact.


3. Variance and the width of the bump


4. The covariance matrix

One number () captures doubt about one quantity. But is a vector, so we need doubt about each entry and how their doubts are linked. That bookkeeping is the matrix .

The symbol means expectation — the long-run average if you repeated the experiment forever. Picture: run the noisy world a million times, average the result. That is all ever means.

The superscript (as in ) is transpose: flip a matrix over its diagonal, turning rows into columns. Picture: a grid reflected across its top-left-to-bottom-right line. We need it because a column times a row builds a whole grid — exactly the outer product inside .


5. The Gaussian and noise

Two noises appear on the parent:

  • process noise. Picture: little random shoves the physics model fails to predict (wind gusts, unmodelled forces). = how big those shoves are.
  • measurement noise. Picture: the jitter on a sensor reading. = how shaky the sensor is.

6. The transforming matrices , ,

These three matrices are the "machines" that connect states, controls, and measurements.


7. The measurement , the innovation , and the gain

The superscript minus, as in and , marks a priorbefore the measurement is folded in ("predicted, not yet corrected"). No minus = posterior, after correction. Picture: minus = "coasting", no-minus = "just snapped to the sensor".


8. Two calculus tools the derivation borrows

The parent finds the best gain by minimising doubt. Two tools do that:


How it all feeds the topic

scalar, vector, matrix

state x and index k

hat x-hat estimate vs truth

variance and precision

covariance matrix P

Gaussian noise Q and R

machines F, B, H

predict step

measurement z, innovation y

gain K

derivative and trace

Kalman filter

Once these foundations are solid, the two big steps (predict, update) are just this machinery applied twice: push the bump forward with (widen by ), then squeeze it toward the sensor with . From here you can also climb to the Extended Kalman Filter (EKF) and Unscented Kalman Filter (UKF) for nonlinear worlds, all resting on Bayesian inference.


Equipment checklist

Test yourself — cover the right side and answer:

What does a hat, as in , always mean?
My best estimate of a quantity, never the true value.
What does variance measure, as a picture?
The squared width of the belief bump — big means unsure.
What is precision and what special property does it have?
; precisions of independent estimates add.
What lives on the diagonal of vs. the off-diagonal?
Diagonal = variance of each component; off-diagonal = how their doubts are correlated (the ellipse's tilt).
Read in plain words.
is drawn from a bell curve centred at zero with covariance (width) .
What is the difference between and ?
is model/process noise (predict step); is sensor/measurement noise (update step).
What does the matrix do?
Rolls the state forward one time step using the physics model.
Why do we need ?
It translates a state into the units/subset the sensor actually reports, so measurement and prediction can be compared.
What is the innovation , exactly?
Measurement minus predicted measurement, — the computable surprise.
What does a superscript minus (as in ) signify?
A prior — value before the measurement is folded in.
Why does the gain derivation use a derivative set to zero?
To find the that minimises total doubt; the minimum of a curve is where its slope is zero.
What does represent?
Total variance across all state components — the single number we minimise.