WHAT:x ki entries count karo. Wahan 4 numbers hain, isliye n=4.
WHY: parent deta hai ek center point plus har principal axis ke dono taraf ek-ek point, yaani 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 (W0(m)plus Gaussian-tuning term (1−α2+β)).
WHY it matters: (a) aur (c) mein fark sirf center pe hota hai. Yahi woh poora trick hai jo hume covariance tune karne deta hai mean shift kiye bina.
Step 1 — λ (WHY: yeh fix karta hai ki points kitne door/weighted hain):λ=α2(n+κ)−n=1⋅(2+1)−2===1==
Toh 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 (2n=4 hain):Wi(m)=Wi(c)=2(n+λ)1=61Sanity check (mean weights ka sum 1 hona chahiye):31+4⋅61=31+32=1. ✔
Recall Solution 2.2
WHAT: humein spread distance (n+λ)P chahiye.
WHY square root: covariance spread² (variance) measure karta hai; use axis ke saath actual distance mein convert karne ke liye hum square root lete hain — wahi reason jis wajah se standard deviation variance hota hai.
(n+λ)P=3⋅4=12=23≈3.464X0=5,X1=5+23≈8.464,X2=5−23≈1.536Figure s01 dekho: red center point 5 pe baitha hai, aur do black points symmetrically uske dono taraf hain.
(a) UT. Sigma points: X0=0,X1,2=±3σ. Weights W0=32,W1,2=61.
Har ek transform karo: Y0=02=0,Y1,2=(3σ)2=3σ2.
yˉUT=32(0)+61(3σ2)+61(3σ2)=σ2(b) EKF. Linearize karo: F=dxdx20=2x0=0. Toh yˉEKF=f(0)+F⋅0=0.
(c) Sahi mean σ2 hai. UT bilkul exact hai; EKF completely galat hai (0 predict karta hai).WHY:x=0 pe x2 ki slope flat hai, isliye EKF ka linear model "koi change nahin dikh raha" — woh curvature ke liye andha hai. UT, f ko mean se door points pe sample karta hai, isliye woh upar ki taraf bend feel karta hai aur σ2 lift recover karta hai. Figure s02 dekho: kali parabola, red sigma points curve pe land kar rahe hain flat tangent (dashed) se kaafi upar.
Recall Solution 3.2
(a)λ=α2(n+κ)−n=(10−6)(1)−1=10−6−1. Tab n+λ=1+(10−6−1)=10−6.
(b) Distance =(n+λ)P=10−6σ=10−3σ. Points ±10−3σ pe — mean ke bahut karib.
(c) Covariance weight Wi(c)=2(n+λ)1=2⋅10−61=5×105bahut bada hai, exactly chhoti squared distances ko cancel karta hai taaki Py sahi se reconstruct ho. Spread ↓, weight ↑ — yeh design se trade off karte hain.
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 (Q add karo! yeh classic trap hai):
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. (Gaur karo ki covariance 4 se 25 tak balloon ho gayi — f ki curvature ne uncertainty ko stretch kar diya, aur UT ne ise capture kar liya.)
Step 1 — naye 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 — h(x)=2x se push through karo: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
(Sahi hi hai: h linear hai, isliye z^k=2x^k−=7.)
Step 4 — measurement covariance (R add karo!):
Deviations Zi−z^k: 0, 17.3205, −17.3205.
Pzz=32(0)+61(300)+61(300)+R=100+1=101Step 5 — cross-covariance (yahan R nahin):
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 covariance itni zyada shrink hui: measurement bahut informative thi (h=2x directly state ko scale karta hai), isliye update ne estimate ko z/2=3 ki taraf kheencha aur uncertainty 25 se ~0.25 tak ghata di.
Recall Solution 5.2
EKF: origin pe ∥x∥x⊤=00 — undefined. Linearization simply exist nahin karta, isliye EKF ke paas compute karne ke liye koi gain nahin hai.
UKF:Pxz products (Xi−0)⋅(∥Xi∥−zˉ) ki ek finite weighted sum hai. Har term un numbers ka plain multiplication hai jo hum evaluate kar sakte hain — koi derivative nahin, koi zero se division nahin. Sigma points origin se door baithte hain, isliye ∥Xi∥=0 aur sum well-defined hai.
The lesson: UKF kabhi nahin poochhta "yahan slope kya hai?" Woh poochhta hai "output, samples ke ek spread ke across input ke saath co-vary kaise karta hai?" — ek aisa sawaal jiska jawab tab bhi hai jab slope ka nahin hota.