Kalman Filter

A real-time state estimator that combines a model and noisy measurements in an optimal way.

intermediatefilteringstate-spaceestimationobserver

Mental model

Predict the hidden state, compare it with a noisy observation, then update according to how uncertain each one is.

The Kalman filter estimates an unobserved state (e.g. true position or hidden trend) from noisy measurements over time.

It runs in a loop: prediction (push the state forward with the model and increase uncertainty) then update (correct with the new measurement and reduce uncertainty).

INTERACTIVE INTUITION

Explore the mechanism

How should a belief about a hidden state change when a model forecast meets a noisy measurement?

A one-dimensional Kalman filter tracking a drifting hidden state from noisy measurements. At each step it blends the state model (process noise q) and the observations (measurement noise r). The Kalman gain Kₖ is the weight on the new measurement.

Time step kState / measurement value1.5-0.3-2.0-3.8-5.6true state xₖestimate x̂ₖmeasurements zₖ0.00.51.0Kalman gain Kₖ (weight on measurement)
Adjust the noise assumptions
Numbers
RMSE of raw measurements vs true state ≈ 1.03
RMSE of Kalman estimate vs true state ≈ 0.49
Filter improvement (RMSE₍meas₎ / RMSE₍filt₎) ≈ 2.12×
Average Kalman gain K̄ ≈ 0.27 (average weight on the new measurement)
Interpretation

When r is large, measurements are very noisy: the red points jump around the true path. The gain Kₖ drops, the filter trusts the model more, and the blue line is smooth but reacts slowly.

When q is large, the state itself is volatile. The filter must react quickly: Kₖ rises and the estimate hugs the measurements more closely. The RMSE ratio tells you how much better the filtered estimate is than looking at raw data.

Practitioner view: in markets you can read xₖ as a hidden “fair value” or trend and zₖ as noisy trade prices. The Kalman filter is an observer from control theory: it reconstructs the unseen state from noisy signals so that a trading or risk-control policy can act on a cleaner view of the system.

UNDERSTAND

What to notice

In engineering and control, it is the standard “observer” for linear systems with Gaussian noise; in finance it is used for trend/noise separation, factor estimation, and state-space models.

Conceptually, it is a recursive Bayesian estimator: every step updates a belief (mean and covariance) about the state based on model dynamics and new data.

FORMALIZE

The quantitative structure

Notation

x_t
hidden state at time t
y_t
observation at time t
P_t
state-estimate covariance

State transition

x_t = A x_(t-1) + w_t

The latent state evolves through a model plus process noise.

Observation

y_t = H x_t + v_t

The measurement observes the state through a measurement model plus observation noise.

This model assumes

  • The standard Kalman filter assumes linear state and observation dynamics.
  • Process and observation noise are commonly modeled as Gaussian with known covariance structure.
USE

A small example

One scalar measurement update

The prior state estimate is 10 with variance 4. A measurement of 12 has noise variance 1.

  1. Kalman gain is 4 / (4 + 1) = 0.8.
  2. Innovation is 12 - 10 = 2.
  3. Updated state is 10 + 0.8 * 2 = 11.6.
  4. Updated variance is (1 - 0.8) * 4 = 0.8.

ResultBecause the measurement is more precise than the prior, the estimate moves most of the way to 12 and uncertainty falls.

TRANSFER

Where it appears

  • estimating latent market states
  • filtering noisy signals
  • tracking time-varying parameters
  • sensor fusion in control systems
CHALLENGE

Where the intuition breaks

What this view leaves out

  • The standard filter is not directly appropriate for strongly nonlinear dynamics or non-Gaussian noise.

Common mistakes

“The Kalman filter simply smooths observations.”

Not quite.

It combines a dynamic prediction with each measurement according to modeled uncertainty and updates both the state and its covariance.

CONNECT

Where this concept sits

Follow the strongest prerequisites, applications, extensions, and contrasts.

Connections for Kalman Filter

Extended by · Particle and Kalman Filtering in Finance

The combined filtering view extends linear-Gaussian Kalman filtering toward nonlinear or non-Gaussian state estimation with particle methods.

Explore concept
SOURCES

References

  1. Kalman, R. E. (1960), A New Approach to Linear Filtering and Prediction Problems (opens in a new tab)
← Explore all concepts