Kalman Filter Predict-Update Cycle
Step through prediction, measurement, Kalman gain, and uncertainty updates for a 1D IoT tracker
animation
kalman
filtering
estimation
tracking
sensor-fusion
interactive
Interactive Kalman filter lab with scalar predict-update math, process and measurement noise controls, missing measurements, outlier behavior, uncertainty bands, and mobile-safe reference material.
Tune a Kalman filter while a noisy IoT tracker moves.
This lab uses a one-dimensional constant-velocity teaching model. Each step shows what the filter believes before the sensor reading, how much the reading is trusted, and how uncertainty changes after the update.
Predict update track
The filter carries a position estimate and variance through every sensor cycle.
Model readings
The same state is shown as motion, numbers, and a plain-language diagnosis.
Formula trace
Scalar 1D equations using position in metres and variance in square metres.
x_minus = x + v * dt
State prediction moves the estimate before seeing the next reading.
P_minus = P + Q
Process noise Q increases uncertainty during prediction.
K = P_minus / (P_minus + R)
Large R lowers K; large predicted uncertainty raises K.
x = x_minus + K * (z - x_minus)
The posterior shifts toward the reading by K times the residual.
P = (1 - K) * P_minus
After a valid measurement, posterior variance shrinks.
Learning support
The filter is optimal only under the assumptions used by the model. These notes keep the simplified lab connected to real IoT deployments.