Formula sheet
Kalman Filtering and State Estimation Formula Sheet
Formula sheet for Kalman filtering and engineering state estimation, covering state-space models, prediction, covariance, innovation, Kalman gain, sensor fusion, gating, observability, EKF linearization, and validation metrics.
This formula sheet collects the core equations used in Kalman filtering and engineering state estimation. Use it for digital twins, navigation, sensor fusion, control, process monitoring, structural monitoring, battery state estimation, robotics, and condition monitoring.
The formulas are useful only when the model, measurement boundary, timing, units, noise assumptions, observability, and validation evidence are stated. A filter can produce smooth estimates even when the underlying engineering model is wrong.
State-Space Model
Discrete linear state model:
Measurement model:
where:
- x_k is the state vector;
- u_k is the input or command vector;
- z_k is the measurement vector;
- A_k is the state-transition matrix;
- B_k is the input matrix;
- H_k is the measurement matrix;
- w_k is process noise;
- v_k is measurement noise.
Common covariance assumptions:
where Q_k is process-noise covariance and R_k is measurement-noise covariance.
Prediction Step
Predicted state:
Predicted covariance:
The prediction step moves the estimate forward before the next measurement is used. Q should represent unmodelled dynamics, disturbances, input uncertainty, model simplification, and process variability. Setting Q too small can make the estimator overconfident.
Innovation
Predicted measurement:
Innovation:
Innovation covariance:
The innovation is the measurement surprise before the update. Persistent biased innovations usually indicate sensor bias, missing inputs, model drift, incorrect noise assumptions, wrong timing, or operation outside the model validity domain.
Kalman Gain
Kalman gain:
The gain balances model prediction against measurement evidence. Larger predicted uncertainty or lower measurement uncertainty increases measurement influence. Lower predicted uncertainty or higher measurement uncertainty makes the filter trust the model more.
Update Step
Updated state:
Updated covariance:
Joseph stabilized covariance form:
The Joseph form is often preferred in numerical implementations because it better preserves covariance symmetry and positive semidefiniteness under roundoff and modelling errors.
Scalar Direct-Measurement Case
For a scalar state measured directly:
Updated estimate:
Updated variance:
where P^- is prediction variance and R is measurement variance.
If P^- \ll R, the filter trusts the prediction. If P^- \gg R, it follows the measurement more strongly.
Inverse-Variance Sensor Fusion
For independent unbiased scalar measurements x_i with variances \sigma_i^2, inverse-variance weights are:
Weighted estimate:
Estimate variance:
This formula assumes independent errors. If sensors share calibration bias, common timing error, common environment, or the same processing pipeline, the apparent uncertainty can be too optimistic.
Normalized Innovation and Gating
Normalized innovation for a scalar measurement:
Normalized innovation squared:
For a measurement vector of dimension m, NIS_k is often compared with a chi-square threshold:
where \alpha is the selected confidence level.
Gating decisions should be tied to engineering consequences. A rejected measurement may indicate a faulty sensor, but it may also indicate a real event that the model failed to predict.
Residual After Update
Post-fit residual:
Pre-fit innovations and post-fit residuals answer different questions. Innovations test whether new measurements agree with prediction. Post-fit residuals test how well the updated estimate explains the measurements. Both should be reviewed during commissioning and drift detection.
Observability
For a time-invariant linear system, the observability matrix is: