In a linear Gaussian state-space model with process noise covariance and exact scalar observation , the predictive state covariance includes even though there is no separate measurement noise. Here denotes predicted state covariance; it differs from the measurement-noise notation in the general Kalman filter equations. The observation innovation variance is . Omitting the second term incorrectly removes the current process noise. If , Gaussian conditional expectation gives the posterior covariance matrix . This can be a singular matrix because the observed linear combination is then known exactly.
For a concrete example with two state components that are dimensionless quantities, take predicted mean , predicted covariance matrix
and exact observation of the first component, , . The innovation is , its variance is , and the Kalman gain is . The posterior mean and posterior covariance matrix are therefore
The observed component now has zero variance. The second component remains uncertain, but its posterior mean changes and its variance falls from to because its prediction error had nonzero correlation with that of the first. This is the mechanism by which measurements of one component can inform another.
Kalman filter Created 2026-10-03 Updated 2026-10-14
The Kalman filter alternates a Kalman prediction step with a Kalman measurement update. It carries a state estimate forward using a state-space model, then adjusts it by the part of the new observation that was not predicted: the innovation. The Kalman gain determines the adjustment from the uncertainty of the prediction and the measurement noise. A noisy measurement should have less influence than an equally surprising precise one.
For a precise discrete-time statement, let the state and observation be vectors in real vector spaces obeying the linear state-space model
The matrices and control inputs are known. Assume a Gaussian random vector with mean and covariance matrix , and mutually independent centered Gaussian noises , independent of , with covariance matrices . Suppose is positive-definite, so the observation innovation covariance is invertible. Then the recursions below give the exact posterior mean and posterior covariance matrix , hence the full conditional multivariate normal distribution. They also minimize mean squared error. Without the Gaussian assumptions, suitable second-order assumptions still give best affine state estimates, but do not generally give an exact posterior distribution. [ref].
For an exact scalar example, suppose the predicted state has normal distribution and a measurement reports in the same units. With measurement noise variance , the Kalman gain is and the posterior distribution is
With the same prediction and observed value but measurement noise variance , the Kalman gain becomes and the posterior distribution is instead . Both updates move toward the observation; the more precise measurement moves the estimate further and reduces uncertainty more.
Figure 1.
The same observed value produces different Kalman measurement updates when its uncertainty changes
. Both panels start from and observe . The green curve is the likelihood function normalized over the scalar state for this unit-coefficient observation model. The orange curve is the posterior density; its narrower width reflects reduced variance. The vertical dotted line marks the observed value, rather than a known true state. Details.
The useful compression is exact under the stated model: the two objects contain everything from the past observations needed for the next update. Their size depends on the state dimension, not on the length of the observation history. This makes causal state filtering practical when observations arrive continually. It also gives Linear-quadratic-Gaussian control an estimate of the state on which to act.
Rudolf E. Kalman's 1960 paper organized linear filtering around state transitions, error covariance and recursive computation, connecting estimation with optimal regulation. Its introduction acknowledges earlier work by Wiener, Bode, Shannon and others; the useful historical claim is this particular formulation, rather than that estimation began in 1960. [ref].
Consider a local-level state-space model , , with mutually independent centered Gaussian noises of variances and . Start with , independently of these noises. Before the first observation, the Kalman prediction step gives , . If , the Kalman gain is , and the posterior mean and posterior variance become
The next Kalman prediction step keeps the mean but adds fresh process noise variance, giving . If , then
Thus new uncertainty is introduced at each transition and reduced by each measurement. It does not shrink to zero merely because many measurements have arrived: the state continues to change.
Figure 1.
A Kalman filter follows a changing scalar state and retains uncertainty about each new transition
. Top: one seeded synthetic random walk, its noisy observations and the filtered posterior mean, starting from with , . The shaded region is the mean plus or minus two posterior standard deviations, a pointwise conditional band under the stated model. Bottom: the Kalman gain approaches its positive steady value. Setting instead asserts a constant state and eventually stops adapting appreciably. This single generated record illustrates the mechanism; it is not an empirical accuracy study. Details.
The steady-state local-level Kalman gain here is
With , the limiting posterior variance has the same numerical value. By contrast, the static-state model with gives and . That decreasing gain is appropriate for a state that truly remains constant. Applied to the changing random walk, it builds confidence in the wrong model. The choice of process noise is therefore a statement about state evolution, rather than just an instruction to make a plot look smoother.
Kalman gain 2026-10-14
The Kalman gain maps an observation innovation into a state correction:
For a scalar state observed directly, it reduces to . With positive variances, , and the Kalman measurement update is the weighted mean . That interpretation belongs to the scalar unit-coefficient case; a general Kalman gain is a rectangular matrix, not a collection of weights necessarily between zero and one.
Kalman measurement update 2026-10-14
The Kalman measurement update incorporates the new observation by Gaussian conditional expectation:
The posterior covariance matrix subtracts a positive semidefinite matrix, reflecting the information supplied by the measurement. Even if the innovation is zero and the mean does not move, the uncertainty can decrease. In this linear Gaussian model the posterior covariance matrix depends on the observation geometry and its uncertainty, rather than on the numerical observed value.
The derivation is one application of Gaussian conditional expectation per measurement. Before observing , the state and observation have joint covariance matrix
Conditioning the upper block on the lower block gives exactly the two update equations. The upper-right block explains the Kalman gain: a measured component corrects a state component only to the extent that their prediction errors have covariance. The measurement can therefore improve an unobserved velocity when a state-space model correlates its error with an observed position.
For the state-space model , , assume independent Gaussian process noise and measurement noise of variances , independent of the prior state and previous observations. A normal distribution for the filtered state, with mean and variance , predicts mean and variance . Here denotes predicted state variance, rather than the observation-noise covariance notation used in the vector equations above. Gaussian conditional expectation then gives posterior mean and posterior variance , where the Kalman gain is .
Mere weak white noise assumptions do not imply normal posterior distributions: independent process noise with a Rademacher distribution makes the next state a mixture of two shifted normal distributions. The Kalman filter can still describe a best affine state estimate under appropriate second-order assumptions, but that is distinct from an exact Gaussian conditional law.
Scalar static-state Kalman update Created 2026-10-03 Updated 2026-10-14
Suppose the predicted state has normal distribution and the new observation is , where the measurement noise is independent of the state and previous observations. Gaussian conditional expectation gives
The coefficient is the scalar Kalman gain. The posterior mean is a weighted mean of the predicted state and the new observation, with the more precise quantity receiving more weight. For , the same equations can be expressed in precision parameters
The two precision parameters add because the measurement noise is independent of the state and past observations. Completing the square in the product of the prior density and the likelihood function gives this form directly. This is a Gaussian conditional expectation for a fixed unknown state; a moving state additionally requires a Kalman prediction step.