Why Filtering Matters
The viewer will understand the motivation for Kalman filtering and the core ingredients needed to estimate hidden state from noisy data.
Kalman Filters, Demystified: a hidden state is estimated by blending a model with noisy measurements. By the end, you'll know: why filtering matters, the prediction-update loop, and the core ingredients. A Kalman filter matters when the thing you care about is hidden, but you still get measurements every cycle. You are not trying to store raw data. You are trying to estimate the current state in real time, even when each reading is noisy. So the system takes two inputs at once: a model of how the state should evolve, and an observation that only partially reflects that state. True or false: the filter replaces the measurement. False. It uses the measurement to refine an estimate that already came from the model. Now we need the three pieces that make the loop work. First is the state, the quantity you want to track. Second is the model, which tells you how that state moves from one step to the next. Third is noise, which captures what can go wrong in both the motion and the sensor. If you leave out the state, there is nothing to estimate. If you leave out the model, you have no prediction step. If you leave out noise, you are pretending every reading is exact, and that breaks the update logic. Identify the components: state, transition model, process noise, measurement noise. Those four pieces define the estimation problem. This is the key shift. The filter is not guessing blindly from data. It is carrying a state estimate forward, attaching uncertainty to it, and then comparing that estimate to the next measurement. The whole setup is about how information moves through the system, not just about the final number. One practical question to keep in mind is this: what is actually observable, and what is only inferred? In many systems, the sensor gives you a signal that is related to the hidden state, but not the state itself. The model bridges that gap, and the uncertainty terms tell you how hard to trust each side. So when you build the filter, you are really specifying a pipeline: state in, model propagation, uncertainty growth, measurement in, correction out. That structure is what lets the estimator stay operational instead of static.
Predict, Then Correct
The viewer will understand the Kalman filter’s update cycle and how uncertainty determines the balance between model and measurement.
Once the ingredients are set, the cycle is simple. First you predict the next state using the model and the previous estimate. Then you bring in the newest measurement and correct that prediction. The filter alternates between those two steps every time a sample arrives. That alternation is important because prediction alone drifts, and correction alone has no memory. The prediction carries the state forward through time. The correction pulls it back toward reality. You can think of the loop as a controlled handoff of information from model to data and back again. Apply it to a new situation: if a sensor drops a little, the prediction still gives you a usable estimate for that time step. When the next observation arrives, the correction step absorbs it and re-centers the state. That is why the filter stays responsive without becoming jumpy. The question now is not whether to predict or correct. It is how much each one should count. That is the job of the Kalman gain. It is the weight that decides how strongly the update leans toward the model estimate versus the new measurement. If the prediction is very uncertain, the gain shifts more weight to the measurement. If the measurement is noisy, the gain leans harder on the prediction. True or false: the gain is fixed once the filter starts. False. It changes as the uncertainty in the state estimate and the sensor data changes over time. So the gain is not an extra decoration on the algorithm. It is the control point where uncertainty becomes action. The filter does not average prediction and measurement with a constant rule. It computes a state-dependent weight from the current covariance, and that is what keeps the update adaptive. You can read the update directly from the information flow. Prediction produces a prior estimate. Measurement supplies new evidence. Gain converts the relative trust in those two sources into a correction size. Small gain means the state barely moves. Large gain means the measurement pulls the estimate more strongly. That is why two systems with the same sensor can behave differently. Change the assumed process noise, and the gain changes. Change the measurement noise, and the gain changes again. The weighting follows the uncertainty bookkeeping, not a hand-tuned fixed blend.