3.5.25 · D4Guidance, Navigation & Control (GNC)

Exercises — Unscented Kalman Filter (UKF) — sigma points, better for nonlinear

1,948 words9 min readBack to topic

Quick symbol reminder (all from the parent):

  • = dimension of the state vector (how many numbers describe it).
  • = mean of ; = its covariance (the "spread" matrix).
  • = the scaling number that decides how far sigma points sit.
  • = the sigma points; = their mean- and covariance-weights.
  • = nonlinear dynamics map, = nonlinear measurement map.

Level 1 — Recognition

Recall Solution 1.1

WHAT: count entries of . There are numbers, so . WHY: the parent gives one center point plus one point on each side of every principal axis, i.e. . Answer: 9 sigma points.

Recall Solution 1.2
  • (a) = center mean weight.
  • (b) = scaling parameter.
  • (c) = center covariance weight (same as plus the Gaussian-tuning term ). WHY it matters: (a) and (c) differ only at the center. That is the whole trick that lets us tune covariance without shifting the mean.

Level 2 — Application

Recall Solution 2.1

Step 1 — (WHY: it fixes how far/weighted points are): So . Step 2 — center weights: Step 3 — outer weights (there are of them): Sanity check (mean weights must sum to 1): . ✔

Recall Solution 2.2

WHAT: we need the spread distance . WHY the square root: covariance measures spread² (variance); to turn it into an actual distance along the axis we take its square root — same reason standard deviation is . Look at Figure s01: the red center point sits at , and two black points flank it symmetrically.

Figure — Unscented Kalman Filter (UKF) — sigma points, better for nonlinear

Level 3 — Analysis

Recall Solution 3.1

(a) UT. Sigma points: . Weights . Transform each: . (b) EKF. Linearize: . So . (c) The true mean is . The UT is exact; the EKF is completely wrong (predicts 0). WHY: at the slope of is flat, so the EKF's linear model "sees" no change — it is blind to curvature. The UT samples at points away from the mean, so it feels the upward bend and recovers the lift. Look at Figure s02: black parabola, red sigma points landing on the curve well above the flat tangent (dashed).

Figure — Unscented Kalman Filter (UKF) — sigma points, better for nonlinear
Recall Solution 3.2

(a) . Then . (b) Distance . Points at — hugging the mean. (c) The covariance weight is huge, exactly cancelling the tiny squared distances so reconstructs correctly. Spread ↓, weight ↑ — they trade off by design.


Level 4 — Synthesis

Recall Solution 4.1

Step 1 — sigma points. Spread . Numerically: , . Step 2 — push through .

  • Step 3 — predicted mean (weights , ): Step 4 — predicted covariance (add ! this is the classic trap): Deviations: ; ; . Answer: , . (Notice the covariance ballooned from 4 to 25 — the curvature of stretched the uncertainty, and the UT captured it.)

Level 5 — Mastery

Recall Solution 5.1

Step 1 — new sigma points. Spread . Step 2 — push through : Step 3 — predicted measurement mean: (Makes sense: is linear, so .) Step 4 — measurement covariance (add !): Deviations : , , . Step 5 — cross-covariance (no here): State deviations : , , . Step 6 — Kalman gain: Step 7 — corrected state: Step 8 — corrected covariance: Answers: , , . WHY the covariance shrank so hard: the measurement was very informative ( directly scales the state), so the update pulled the estimate toward and slashed uncertainty from 25 to ~0.25.

Recall Solution 5.2

EKF: at the origin undefined. The linearization simply does not exist, so the EKF has no gain to compute. UKF: is a finite weighted sum of products . Every term is a plain multiplication of numbers we can evaluate — no derivative, no division by zero. The sigma points sit away from the origin, so and the sum is well-defined. The lesson: the UKF never asks "what is the slope here?" It asks "how does the output co-vary with the input across a spread of samples?" — a question with an answer even where the slope has none.


Related: Extended Kalman Filter (EKF) · Kalman Filter (linear) · Particle Filter · Cholesky Decomposition · Taylor Series Expansion · State Estimation in GNC · Nonlinear Systems