A scalar state follows xt=xt−1+wt with wt∼N(0,1), and we observe yt=xt+vt with vt∼N(0,4). After step t−1 the belief is xt−1∼N(2,3). The new observation is yt=5. What are the predicted and the updated beliefs?

Probabilistic models, Kalman filter
Level L2 Elementary. Length Short. Nature Mat Mathematical.

What's being asked

Whether you can run one predict step and one update step of the Kalman filter with numbers.

Key idea

Predict: add the process noise to the variance. Update: K=P−/(P−+R), m=m−+K(y−m−), P=(1−K)P−.

Steps

  1. Predict. The mean stays at m−=2 because the dynamics are xt=xt−1 plus noise. The variance grows by the process noise Q=1: P−=3+1=4.
  2. Compute the innovation variance S=P−+R=4+4=8, where R=4 is the observation noise variance.
  3. Kalman gain: K=P−/S=4/8=0.5. It says how much to trust the new measurement against the prediction.
  4. Update the mean and variance: m=2+0.5 (5−2)=3.5, and P=(1−0.5)⋅4=2. The final belief is N(3.5,2).
  5. Sanity check: the variance 2 is below both P−=4 and R=4, since combining two sources gives less uncertainty. The mean lies midway because the two variances are equal.

Common mistakes

How long your answer should be

5–6 lines.

Read this

Previous in Probabilistic models: Three binary variables x1,x2,x3∈{0,1} form a chain MRF x1−x2−x3 with p(x)=1Zψ(x1,x2) ψ(x2,x3), where ψ(a,b)=3 if a=b and ψ(a,b)=1 if a≠b. What are Z, p(x2=0), p(x1=x2=x3=0) and p(x1=x3)?
Next in Probabilistic models: A 1D Gaussian mixture has two components with unit variance, means μ1=0 and μ2=4, and weights π1=0.7 and π2=0.3. For the data points x=3 and x=1, what are the responsibilities of component 1? What are the M-step updates of μ1 and π1 using only these two points (keeping the other parameters fixed)?