Control systems · also Robotics, Perception and intelligence, MathematicsLevel 5 · Research Engineer
Kalman filtering
A Kalman filter estimates the state of a system that moves and is measured imperfectly. It alternates two steps. Predict pushes the estimate forward with the motion model and grows its variance by the process noise Q, because wheels slip and thrusters wobble. Update blends in a measurement with variance R using the gain K, which for one dimension is P divided by P plus R: the weight that minimises the variance of the result. A large K trusts the sensor; a small K trusts the prediction. When measurements stop, the uncertainty grows; when they return, it shrinks. Tuning Q and R honestly matters more than any clever code.
Why it mattersKalman filters guided Apollo to the Moon and still fuse inertial, star-tracker and radio data on spacecraft and rovers today.