Kalman Filter Predict-Update Cycle
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.
Kalman Filter Predict-Update Cycle
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.
TryPlay the Warehouse cart preset, then step through prediction, measurement, gain, and update.
ObserveCompare the track, formula trace, residual, gain, posterior uncertainty, and tracking error.
ExplainRelate each change in trust to process noise Q, measurement noise R, bias, dropout, or outliers.
Analytics & ML identity (pale only)Current estimateMeasurement/referenceValid updatePrediction or uncertaintyError or outlier
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.
Controls
Change the model assumptions and watch the gain respond.
Scenario
View focus
Noise model
Edge cases
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.
Model reading
Guided checks
Technical accuracy notes
Technical boundaries. This is a deterministic scalar 1D constant-velocity teaching model. It preserves the displayed equations and noise controls but does not implement matrix state models, covariance cross-terms, adaptive tuning, residual gating, non-linear filters, non-Gaussian faults, or deployment-specific sensor timing.