Learning Rooms/✦ Level 5 · Research Engineer/Mathematics
Optimal State Estimator Algorithm | Understanding Kalman Filters, Part 4
MATLAB · Length: see YouTube · captions on YouTube · nothing loads until you press play
By the end you can…
- Derive the scalar Kalman gain by minimising the posterior error variance.
- Interpret K at its limits and as the steady-state gain.
- Compute the steady-state variance for a random-walk model.
Watch it all: no segment has been checked by hand for this video yet.
1.Predict before you press play
The prediction has variance P⁻ = 3 and the measurement R = 1. The best gain K is…
Pick one before you press play. A wrong guess is fine: it is what makes the video stick.
2.See the idea first
Play with this diagram for a minute. It gives you something to hang the video on.
Loading the interactive…
Can't use the diagram? Read a description instead
The derivation is fully written in text. The stepper's readout reports the gain at every update, so the convergence to a steady gain can be followed as numbers.
3.Watch, actively
Walks through the predict and update equations of the Kalman filter one line at a time, including what the gain and covariances mean.
Length: see YouTube · captions on YouTube · source
Nothing loads from YouTube until you press play.
Watch for…
- → Match each equation on screen to predict or update, and spot the gain formula in its matrix form.
Pause whenever you like. Rewatching a hard minute is a good habit, not a failure.
Can't stream it? Read the idea instead
A Kalman filter alternates two steps. Predict moves the estimate and its uncertainty forward with a model; update blends in a measurement using the Kalman gain, which leans towards whichever of prediction and measurement is less uncertain.
What the video covers (our own note, written when we verified it): Walks through the predict and update equations of the Kalman filter one line at a time, including what the gain and covariances mean.
Written by Tactiverge in our own words, not a transcript. The full lesson below explains the idea without the video.
Jot down one thing that surprised you and one question you still have.
4.Practise what you just saw
These come from the lesson that use this video and are checked on the server. Wrong answers get a hint and another try.
Practice 1
A random-walk filter has Q = 1 and R = 1. What is the steady-state gain K∞ (3 decimal places)?
Practice 2
A filter is told R = 0 (a perfect sensor). What does it do at each update?
Practice 3 · a fresh version every time
A rover's estimate is x = 5 m with variance P = 2 m². It drives u = 3 m (process noise Q = 2 m²), then a landmark fix reads z = 10 m with R = 1 m². After predict and update, what is the new estimate x, in m?
Practice 4
P⁻ = 4 m², R = 1 m². What is the posterior variance P, in m²?
6.Build something with it
Follow-up project
In the stepper, measure the gain after 15 steps for Q = 0.2 and three values of R (0.5, 1, 2). Compare with the steady-state formula. Then explain, in one sentence each, what physically changing Q and R would mean for a rover.
Where this video lives
- The Kalman gain as the variance-minimising weight · Level 5, week 17
In the course catalogue: AIP-510 Bayesian estimation and sensor fusion
The video is by MATLAB, embedded from YouTube with privacy-enhanced mode and never autoplayed. The room around it (prompts, notes, practice, projects) is Tactiverge's, written with AI assistance and checked by automated tests only.