Kalman Filter, Live

Here from the video? Welcome. Part 1 is lesson 1 on this site. Run the two-sensor fusion yourself →

Steppeschool · interactive course · first 2 lessons free

The Kalman filter, built by running it.

Every sensor is a little wrong. The Kalman filter combines them into one good estimate. Learn it by running Python on every page.

Start lesson 1 →See all lessons

4 short lessons · Python in your browser, nothing to install · A robot with GPS, a rocket to Mars, a robot tracked by two radars · 14-day money-back guarantee

After the course you can

Lessons

FreeLesson 1Noise and data fusion6 slides with live Python.Start lesson →Chapter 1 · Noise and fusion

Noise and data fusion

Why no sensor tells the truth, how the Gaussian describes its noise, and how to fuse two noisy readings into one better estimate.

FreeLesson 2The 1D Kalman filter6 slides with live Python.Start lesson →Chapter 2 · Filtering in one dimension

The 1D Kalman filter

A robot on a line with an encoder and a GPS: why each one fails alone, and how predict and correct combine them into the Kalman filter.

Free previewLesson 3The matrix Kalman filter7 slides with live Python.Start lesson →Chapter 3 · Many variables at once

The matrix Kalman filter

Many variables at once: correlation and the covariance matrix, how uncertainty moves through a model, state space, and the full matrix filter on a rocket.

Free previewLesson 4The extended Kalman filter6 slides with live Python.Start lesson →Chapter 4 · Nonlinear sensors

The extended Kalman filter

When the sensor is not linear: zoom in until the curve looks straight, use the Jacobian, and track a robot from distance-only radars.

Your AI tutor

Stuck at 11 pm? Ask Steppe.

Steppe lives inside every lesson. It knows which lesson you are on, the code and the common mistakes, and answers in seconds, day or night.

  • Knows the lesson you're on
  • Explains errors and code, line by line
  • Points you to the exact step or slide
  • Can't solve it? You can write to me directly
SSteppeyour tutor
My filter ignores the measurements.
Look at R and P. If R is very large, or P has shrunk to almost zero, the Kalman gain K goes to zero and the filter trusts only its prediction. Try a smaller R or add process noise Q.

Example answer. Steppe can make mistakes; the lesson has the final word.

How it works

Every slide explains one idea with an everyday picture first: two thermometers, a robot on a line, a rocket on its way to Mars. Then comes the maths, a worked example with real numbers, and where it shows up in drones, robots and phones.

Next to the text is a lab. The Python runs in your browser, nothing to install. Functions like plot(...), gauss(...), cov(P) and track(...) draw time plots, bell curves, covariance ellipses and 2D maps. Each slide ends with a small exercise that checks your answer.

The full course

From noisy sensors to the EKF, by running it

Lessons 1 and 2 are free. $20 opens the rest:

By the end you can write the matrix Kalman filter for position and velocity, and track a robot from range-only radars with an EKF.

Made by Yerke. He runs Steppeschool and teaches embedded systems, robotics and control: STM32, a quadcopter flight controller, a balancing robot. 8,000+ people follow his lessons on YouTube.

$20 once · lifetime access · 14-day money-back guarantee
Continue to checkout →