A topic in the Open Knowledge Graph — a free, open map of 15,495 topics and the order to learn them in.

Kalman Filter and State Estimation

Research Depth 140 in the knowledge graph ☐ I know this ☆ Set as goal
12topics build on this
1,051prerequisites beneath it
See this on the map →
Multivariate Normal DistributionState-Space Representation→→Decision-Making in Autonomous DrivingPerception Pipeline for Autonomous Systems+2 more
kalman-filter state-estimation filtering bayesian-inference sensor-fusion extended-kalman-filter unscented-kalman-filter

Core Idea

The Kalman filter estimates the hidden state of a dynamic system (e.g., robot position and velocity) given noisy measurements and a model of how the system evolves. It is optimal for linear systems with Gaussian noise, minimizing mean-squared error. The algorithm alternates between prediction (using the motion model) and measurement update (using sensor readings). The filter maintains a Gaussian belief: state estimate plus covariance matrix representing uncertainty. As measurements are incorporated, uncertainty shrinks. The Extended Kalman Filter (EKF) handles nonlinear systems by linearizing around the current state. The Unscented Kalman Filter (UKF) avoids linearization by sampling the Gaussian. Variants enable sensor fusion (combining multiple noisy sensors) and SLAM (simultaneous localization and mapping).

How It's Best Learned

Implement a scalar Kalman filter by hand: estimate a single quantity (e.g., temperature) from noisy measurements. Compute prediction covariance, measurement update, and observation residuals. Verify that uncertainty decreases as you incorporate measurements. Extend to 2D position estimation: predict motion using a constant-velocity model, update using GPS measurements. Observe how the filter balances model predictions (which drift over time) with measurements (which are noisy). Code an EKF for a nonlinear system (e.g., robot with nonlinear odometry). Compare with UKF. Experiment with tuning process and measurement noise covariances.

Common Misconceptions

Explainer

A robot moving through the environment needs to know its location. Sensors provide noisy measurements: GPS has meter-level error, wheel odometry drifts over time, IMU accelerometers are biased. The challenge: fuse these imperfect measurements into a good estimate of the true state (position, velocity, orientation). The Kalman filter is the optimal solution for linear systems with Gaussian noise.

The filter maintains a belief: a Gaussian distribution over the state, characterized by a mean estimate and a covariance matrix representing uncertainty. It operates in two phases:

Prediction Phase: Using the motion model, predict the state at the next time step:

The motion model predicts where the robot should be. The covariance increases (uncertainty grows) because the model is imperfect (Q accounts for this unmodeled error).

Update (Measurement) Phase: When a measurement z arrives, correct the estimate:

The Kalman gain K is the key: it balances the prediction and the measurement. If the prediction is very certain (P is small), K is small and the measurement is largely ignored. If the prediction is uncertain (P is large), K is large and the measurement has strong influence. Similarly, if the measurement is very noisy (R is large), K is small; if the measurement is clean (R is small), K is large.

Optimal property: Under linear system dynamics and Gaussian noise, the Kalman filter minimizes the mean-squared error of the estimate. This is a remarkable result: the filter automatically weights predictions and measurements optimally given their respective uncertainties.

Extended Kalman Filter (EKF) extends this to nonlinear systems by linearizing the motion and measurement models around the current estimate using Jacobians. The linearization introduces approximation error, which can cause divergence for highly nonlinear systems. The EKF is widely used in robotics because many systems (robot kinematics, sensor models) are only mildly nonlinear, making linear approximations reasonable.

Unscented Kalman Filter (UKF) avoids explicit linearization by using a clever sampling strategy: the "unscented transform" generates sigma points whose statistics match the current Gaussian belief, propagates them through the true nonlinear model, and recomputes the Gaussian from the transformed points. This often provides better accuracy than EKF for strongly nonlinear systems without requiring Jacobians.

Practical considerations:

Applications: GPS-denied navigation (using IMU and odometry), SLAM (fusing odometry and landmarks), multi-sensor fusion in autonomous vehicles, target tracking, and any scenario requiring state estimation from noisy measurements. The Kalman filter is fundamental to modern robotics and control systems.

Practice Questions 2 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Combining Small Groups Within 5 → Number Bonds Within 5 → Number Bonds to 10 → Tens and Ones Place Value → Reading and Writing Three-Digit Numbers → Comparing Three-Digit Numbers → Comparing and Ordering Three-Digit Quantities → Comparing and Ordering Whole Numbers → Comparing Numbers 1 to 20 → Ordering Numbers to 20 → Number Line 0 to 20 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Opposites and Additive Inverses → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Introduction to Exponents → Order of Operations → Integer Order of Operations → Variable Expressions → The Distributive Property → Variables and Expressions Review → Introduction to Polynomials → Adding and Subtracting Polynomials → Multiplying Polynomials → Multiplying Binomials (FOIL) → Factoring Trinomials → Factoring Completely → Introduction to Rational Expressions → Simplifying Radical Expressions → Segments and Distance → Triangle Inequality Theorem → Similar Triangles: AA Similarity → Similar Triangles: SSS and SAS Similarity → Proportions in Similar Triangles → Similar Right Triangles and the Geometric Mean → Right Triangle Trigonometry Introduction → Sine, Cosine, and Tangent Ratios → Special Right Triangles: 30-60-90 → Trigonometric Ratios Review → Radian Measure → Converting Between Degrees and Radians → The Unit Circle → Graphing Sine and Cosine → Graphing Tangent and Reciprocal Trigonometric Functions → Derivatives of Trigonometric Functions → Antiderivatives → Indefinite Integrals → Basic Integration Rules → Riemann Sums → Definite Integral Definition → Double Integrals: Definition and Setup → Iterated Integrals and Fubini's Theorem → Double Integrals over Rectangular Regions → Double Integrals over General Regions → Applications of Double Integrals: Area, Mass, and Moments → Triple Integrals in Cartesian Coordinates → Triple Integrals in Cylindrical and Spherical Coordinates → Change of Variables and the Jacobian Determinant → Applications of Triple Integrals: Volume and Mass → Vector Fields and Their Representations → Line Integrals of Vector Fields → Work and Circulation → Line Integrals of Scalar and Vector Functions → Fundamental Theorem for Line Integrals → Conservative Vector Fields → Conservative Vector Fields and Potential Functions → Green's Theorem and Its Applications → Divergence Theorem: Flux and Outflow → Divergence Theorem → Electric Flux and Divergence Theorem → Gauss's Law: Integral Form and Meaning → Solving Problems with Gauss's Law → Conductors in Electrostatic Equilibrium → Capacitance and Capacitors → Parallel Plate Capacitor Geometry and Field → Dielectric Constant and Relative Permittivity → Electric Field Inside Dielectric Materials → Dielectric Materials and Polarization → Dielectric Susceptibility and Permittivity → Energy Density in Electric Fields → Electric Current and Current Density → Electrical Resistance and Resistivity → Ohm's Law and Circuit Elements → Electromotive Force (EMF) and Batteries → Kirchhoff's Circuit Laws: Voltage and Current → DC Circuit Network Analysis Methods → Transient Response in RC Circuits → RC Circuits → First-Order Transient Circuit Response → Second-Order Transient Circuit Response → Feedback Control Fundamentals → Laplace Transform Methods for Control → Transfer Functions and System Modeling → State-Space Representation → Kalman Filter and State Estimation

Longest path: 141 steps · 1051 total prerequisite topics

Prerequisites (2)

Leads To (4)