- Introduced by
- Rudolf E. Kálmán (Kalman filter, 1960); missing-data extension formalised by Shumway & Stoffer (1982) via EM
- Year
- 1982
- Type
- Sequential Bayesian filter / state-space smoother
- Family
- Bayesian / computational
What does it do?
The Kalman filter with missing data extends the Kalman filter to state-space models in which some observations are absent at certain time points.
At a time point with no observation, the update step is skipped and the state estimate is carried forward from the prediction step alone. When combined with the Expectation-Maximisation (EM) algorithm, the same framework also estimates unknown model parameters from incomplete series.
The intuition behind the method
Think of the Kalman filter as alternating between predicting where a hidden state will be and correcting that prediction when a measurement arrives. When a measurement is missing, the filter keeps its prediction without correction, so its uncertainty grows over the gap but the recursion continues. When model parameters are unknown, the EM algorithm treats the missing observations as latent variables and alternates between estimating them (E-step) and re-estimating parameters (M-step) until the estimates stabilise. No separate imputation step is needed, because the filter and the EM iterations handle the gaps directly.
History
Rudolf Kálmán introduced the linear recursive filter in 1960. Harvey (1989) extended the framework to structural time series models. The EM estimation of state-space models from incomplete series is treated in standard texts such as Shumway and Stoffer (2000). The combined approach is widely used in econometrics, engineering, and environmental statistics.
When to use it
Use the Kalman filter with missing data for multivariate or univariate time series that are observed at regular intervals but have intermittent gaps — sensor outages, non-trading days in financial data, irregular survey waves, or sporadic lab measurements. It is particularly well-suited when the underlying dynamics are linear and Gaussian, and when you want parameter estimates and smoothed state trajectories alongside imputed values. Avoid it when missingness is heavy and informative (data missing because the system failed), when dynamics are strongly non-linear (use particle filters or unscented Kalman filter instead), or when the series is very short relative to the number of parameters to be estimated via EM.
Limitations and considerations
- Assumes linear Gaussian state-space dynamics; strongly non-linear or non-Gaussian systems require alternatives.
- EM convergence can be slow and may reach a local rather than the global maximum of the likelihood.
- With heavy missingness and many unknown parameters, EM estimates may be poorly identified, so their standard errors deserve scrutiny.
- Informative missingness (data absent for reasons related to the system itself) violates the missing-at-random assumption on which the standard likelihood treatment relies.
- Results depend on correct specification of F, H, Q, R and the initial state distribution. When the initial state is unknown, a diffuse initial distribution is commonly used, and its effect on the estimates should be checked.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Handles missing observations within the filter recursion itself, so no separate imputation step is needed before filtering.
- Produces smoothed state estimates and imputed values for missing time points, each with an associated covariance.
- The EM variant estimates model parameters and the missing values together from one likelihood rather than in separate stages.
- Gives the exact likelihood of the observed data under the linear Gaussian model, which supports comparison of competing specifications through criteria such as AIC or BIC.
Applications
- Interpolating missing values in financial price or return series across non-trading days or data gaps.
- Reconstructing incomplete environmental or climate sensor records while estimating dynamic system parameters.
- Smoothing and gap-filling irregularly sampled neurological or physiological time series.
- Tracking objects or vehicles with intermittent sensor outages in engineering control systems.
- Estimating unobserved macroeconomic state variables (e.g., output gap, NAIRU) from partially observed indicators.
How it works
How it works
The model has two layers: a state equation describing how a latent state vector x_t evolves over time driven by process noise w_t, and an observation equation linking the state to the measured output y_t via observation noise v_t. Matrices F (transition), H (observation), Q (process noise covariance), and R (observation noise covariance) define the system.
Formula
x_t = F x_{t-1} + w_t,\quad y_t = H x_t + v_tAt each time point it is recorded whether the observation y_t is present or absent. If it is absent, the update step for that time point is bypassed: the Kalman gain is effectively set to zero, so the predicted state x_{t|t-1} and its covariance P_{t|t-1} pass unchanged as the filtered values to the next step. Uncertainty accumulates over runs of missing data because no new measurement is incorporated. Whether it stays bounded over long gaps depends on the model dynamics, so this should be checked for the specific model rather than assumed.
The predict step propagates the previous filtered estimate x_{t-1|t-1} and its covariance P_{t-1|t-1} forward one step using the state-transition matrix F, adding process noise covariance Q. This is identical to the standard Kalman prediction and always runs, even when data are missing.
Formula
x_{t|t-1} = F x_{t-1|t-1},\quad P_{t|t-1} = F P_{t-1|t-1} F^\top + QThe update step runs only when y_t is observed. The Kalman gain K_t weights the innovation (observed minus predicted measurement) by the prediction uncertainty relative to the measurement noise R. The filtered state and covariance are then x_{t|t} = x_{t|t-1} + K_t (y_t - H x_{t|t-1}) and P_{t|t} = (I - K_t H) P_{t|t-1}, so uncertainty is reduced at that time point.
Formula
K_t = P_{t|t-1} H^\top (H P_{t|t-1} H^\top + R)^{-1}When model parameters (F, H, Q, R, initial state mean and covariance) are unknown, the Shumway-Stoffer EM algorithm estimates them. The E-step runs the Kalman smoother to compute expected sufficient statistics for the complete data. The M-step updates parameters in closed form. The cycle repeats until the log-likelihood converges.
Common pitfalls
- Leaving a non-zero Kalman gain in place when no measurement exists, or using the observed-data update formula on a missing time point. Zeroing the gain makes the filtered state equal the predicted state; an error here corrupts every subsequent estimate.
- Relying on a single starting point for EM and therefore reporting a local rather than the global maximum of the likelihood.
- Using the filter-only (forward pass) estimates for inference when the full smoother (forward-backward pass) gives lower uncertainty for in-sample states.
- Treating imputed values as observed data in downstream analyses without propagating imputation uncertainty.
Frequently asked questions
What exactly happens in the filter when an observation is missing?
The predict step runs as usual, but the update step is skipped: the Kalman gain is set to zero, so the filtered state equals the predicted state and the filtered covariance equals the predicted covariance. Uncertainty is not reduced for that time point because no new information arrived.
Do I need EM if I know the model parameters?
No. If F, H, Q, R and the initial state distribution are fully specified, you can run the Kalman filter and smoother directly with the missing-observation rule. EM is only needed when those parameters must be estimated from the data.
When should I use a particle filter instead?
If the state-space dynamics are non-linear or the noise distributions are non-Gaussian, the linear Kalman equations are no longer exact. In those cases a particle filter (sequential Monte Carlo) approximates the non-Gaussian posterior with a set of weighted samples and handles missing data in the same way, by skipping the reweighting step.
How do I assess whether missingness is ignorable?
The standard Kalman EM framework assumes observations are missing at random (MAR), meaning the probability of a gap does not depend on the unobserved value itself. Check whether gaps are clustered at extreme events or driven by system failures; if so, a model that explicitly accounts for the missingness mechanism is needed.
How many EM iterations are typically needed?
It depends on the problem. Convergence is usually judged by the relative change in the observed-data log-likelihood between iterations, using a small tolerance chosen by the analyst. Iteration counts vary widely with the data and model, so it is good practice to start from several initial values to guard against local maxima.
Related methods
Sources
Shumway, R. H. & Stoffer, D. S. (2000). Time Series Analysis and Its Applications. Springer.
ISBN: 978-0387989501Harvey, A. C. (1989). Forecasting, Structural Time Series Models and the Kalman Filter. Cambridge University Press.
ISBN: 978-0521405737