WHAT: count entries of x. There are 4 numbers, so n=4.
WHY: the parent gives one center point plus one point on each side of every principal axis, i.e. 2n+1.
2n+1=2(4)+1===9==Answer: 9 sigma points.
Recall Solution 1.2
(a) W0(m) = center mean weight.
(b) λ = scaling parameter.
(c) W0(c) = center covariance weight (same as W0(m)plus the Gaussian-tuning term (1−α2+β)).
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.
Step 1 — λ (WHY: it fixes how far/weighted points are):λ=α2(n+κ)−n=1⋅(2+1)−2===1==
So n+λ=2+1=3.
Step 2 — center weights:W0(m)=n+λλ=31W0(c)=31+(1−α2+β)=31+(1−1+2)=31+2=37Step 3 — outer weights (there are 2n=4 of them):Wi(m)=Wi(c)=2(n+λ)1=61Sanity check (mean weights must sum to 1):31+4⋅61=31+32=1. ✔
Recall Solution 2.2
WHAT: we need the spread distance (n+λ)P.
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 variance.
(n+λ)P=3⋅4=12=23≈3.464X0=5,X1=5+23≈8.464,X2=5−23≈1.536Look at Figure s01: the red center point sits at 5, and two black points flank it symmetrically.
(a) UT. Sigma points: X0=0,X1,2=±3σ. Weights W0=32,W1,2=61.
Transform each: Y0=02=0,Y1,2=(3σ)2=3σ2.
yˉUT=32(0)+61(3σ2)+61(3σ2)=σ2(b) EKF. Linearize: F=dxdx20=2x0=0. So yˉEKF=f(0)+F⋅0=0.
(c) The true mean is σ2. The UT is exact; the EKF is completely wrong (predicts 0).WHY: at x=0 the slope of x2 is flat, so the EKF's linear model "sees" no change — it is blind to curvature. The UT samples f at points away from the mean, so it feels the upward bend and recovers the σ2 lift. Look at Figure s02: black parabola, red sigma points landing on the curve well above the flat tangent (dashed).
Recall Solution 3.2
(a)λ=α2(n+κ)−n=(10−6)(1)−1=10−6−1. Then n+λ=1+(10−6−1)=10−6.
(b) Distance =(n+λ)P=10−6σ=10−3σ. Points at ±10−3σ — hugging the mean.
(c) The covariance weight Wi(c)=2(n+λ)1=2⋅10−61=5×105 is huge, exactly cancelling the tiny squared distances so Py reconstructs correctly. Spread ↓, weight ↑ — they trade off by design.
X2−=f(−2.4641)=−2.4641+0.5(−2.4641)2=−2.4641+3.0359=0.5718Step 3 — predicted mean (weights W0=32, W1,2=61):
x^k−=32(1.5)+61(14.4282)+61(0.5718)=1.0+2.5=3.5Step 4 — predicted covariance (add Q! this is the classic trap):
Pk−=∑iWi(c)(Xi−−x^k−)2+Q
Deviations: 1.5−3.5=−2; 14.4282−3.5=10.9282; 0.5718−3.5=−2.9282.
=32(4)+61(119.4256)+61(8.5744)+1=2.6667+19.9043+1.4291+1=25.0000Answer:x^k−=3.5, Pk−=25. (Notice the covariance ballooned from 4 to 25 — the curvature of f stretched the uncertainty, and the UT captured it.)
Step 1 — new sigma points. Spread =3⋅25=75=53≈8.6603.
X0−=3.5,X1−=3.5+53≈12.1603,X2−=3.5−53≈−5.1603Step 2 — push through h(x)=2x:Z0=7,Z1=24.3205,Z2=−10.3205Step 3 — predicted measurement mean:z^k=32(7)+61(24.3205)+61(−10.3205)=4.6667+2.3333=7.0
(Makes sense: h is linear, so z^k=2x^k−=7.)
Step 4 — measurement covariance (add R!):
Deviations Zi−z^k: 0, 17.3205, −17.3205.
Pzz=32(0)+61(300)+61(300)+R=100+1=101Step 5 — cross-covariance (no R here):
State deviations Xi−−x^k−: 0, 8.6603, −8.6603.
Pxz=61(8.6603)(17.3205)+61(−8.6603)(−17.3205)=25+25=50Step 6 — Kalman gain:K=PxzPzz−1=10150≈0.49505Step 7 — corrected state:x^k=x^k−+K(zk−z^k)=3.5+0.49505(6−7)=3.5−0.49505≈3.00495Step 8 — corrected covariance:Pk=Pk−−KPzzK=25−0.495052(101)=25−24.7525≈0.24752Answers:K≈0.4950, x^k≈3.005, Pk≈0.2475.
WHY the covariance shrank so hard: the measurement was very informative (h=2x directly scales the state), so the update pulled the estimate toward z/2=3 and slashed uncertainty from 25 to ~0.25.
Recall Solution 5.2
EKF: at the origin ∥x∥x⊤=00 — undefined. The linearization simply does not exist, so the EKF has no gain to compute.
UKF:Pxz is a finite weighted sum of products (Xi−0)⋅(∥Xi∥−zˉ). 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 ∥Xi∥=0 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.