When the dynamics model and the observation model of a state space model are both Gaussian, that is we have a linear gaussian ssm, we can perform inference efficiently using Kalman filtering methods.
We perform filtering to predict one step and obtain . Ignoring the optional exogenous inputs, , the algorithm consists of two steps:
- Time update step
- Measurement step, getting the expected observation
The algorithm scales as . The full derivation relies on the conjugate properties of Gaussians and is in both the Kevin Murphy and Durbin and Koopman books.
When all the data have arrived, we can perform offline smoothing and obtain . The algorithm requires two passes through the data, a forward-filter and backward-smoother, and so scales .