KomuraSoft LLC
KF101

Understand the Kalman Filter with Diagrams and Hand Calculations

An introductory course that focuses on the 1-dimensional scalar version and progresses in the order diagram → intuition → hand calculation → code. Short numeric exercises are placed in the middle of every chapter, and grading and progress saving all happen inside the browser.

Diagram → intuition → hand calculation → code 56 questions in total Graded in-browser Saved to localStorage
Time
3–4 hours
Question count
56 questions
Format
7 chapters + practice + simulator
Cost
Free

What makes this course different

Numeric practice problems placed in the middle of every chapter
You check the predicted variance, the Kalman gain, and the updated estimate by computing them on the spot. Because you move your hands throughout, the course resists turning into a passive read-through.
Progresses in the order diagram → hand calculation → simulator → code
The simulator in Chapter 5 and the minimal implementation in Chapter 6 walk through the same material step by step, so formulas and behavior tie together easily.
Everything graded and stored in-browser
Practice problems and the comprehensive review are graded without sending anything to a server, and answers and progress are stored only in this browser's localStorage.

You only need five formulas

This course assumes a steady-state model in which the target does not move (its position does not change). That is why the prediction formula collapses to the minimal form x̂⁻ = x̂.

x̂⁻ = x̂
Prediction for the steady-state model. The previous estimate is carried over as is.
P⁻ = P + Q
Update of the predicted variance. It grows by the uncertainty of the model.
K = P⁻ / (P⁻ + R)
The Kalman gain. It decides how much to trust the prediction versus the observation.
x̂ = x̂⁻ + K(z − x̂⁻)
Estimate update. The observation corrects the estimate.
P = (1 − K)P⁻
Variance update. Taking in the observation reduces the uncertainty of the estimate.

Symbols: Q is the uncertainty of the model (e.g., the variance of the gap between the real motion and a model that assumes a stationary target), R is the uncertainty of the observation (e.g., if a GPS jitter is ±5 m, then R ≈ 25), and P is the uncertainty of the estimate.

Chapter overview

Tips for studying

  1. Read the body text first, then immediately solve the comprehension checks right below
  2. When you get stuck, restate the meaning of the formula in plain words before peeking at the hint
  3. The Chapter 5 simulator (to feel the behavior) and the Chapter 7 comprehensive review (to confirm that it stuck) serve different purposes — be sure to do both

Prerequisites

  • A high-school-level feel for mean and variance is enough.
  • We do not use matrices — everything is the 1-dimensional scalar version.
  • No external libraries are needed; everything is static HTML / CSS / JavaScript.