How a Kalman filter works, in pictures

How a Kalman filter works, in pictures

  • May 22, 2018
Table of Contents

How a Kalman filter works, in pictures

Surprisingly few software engineers and scientists seem to know about it, and that makes me sad because it is such a general and powerful tool for combining information in the presence of uncertainty. At times its ability to extract accurate information seems almost magical— and if it sounds like I’m talking this up too much, then take a look at this previously posted video where I demonstrate a Kalman filter figuring out the orientation of a free-floating body by looking at its velocity. Totally neat!

You can use a Kalman filter in any place where you have uncertain information about some dynamic system, and you can make an educated guess about what the system is going to do next. Even if messy reality comes along and interferes with the clean motion you guessed about, the Kalman filter will often do a very good job of figuring out what actually happened. And it can take advantage of correlations between crazy phenomena that you maybe wouldn’t have thought to exploit!

Kalman filters are ideal for systems which are continuously changing. They have the advantage that they are light on memory (they don’t need to keep any history other than the previous state), and they are very fast, making them well suited for real time problems and embedded systems. The math for implementing the Kalman filter appears pretty scary and opaque in most places you find on Google.

That’s a bad state of affairs, because the Kalman filter is actually super simple and easy to understand if you look at it in the right way. Thus it makes a great article topic, and I will attempt to illuminate it with lots of clear, pretty pictures and colors. The prerequisites are simple; all you need is a basic understanding of probability and matrices.

Source: bzarg.com

Tags :
Share :
comments powered by Disqus

Related Posts

Lost in Math: Beauty != truth

Lost in Math: Beauty != truth

In Lost in Math, Hossenfelder delves briefly into the history of particle physics in order to explain the success of the Standard Model of particles and forces. She touches on why we’ve not had any unexplainable data from experimental particle physics for the last 50 years. She then takes us on a tour of the data that make us think we should be looking for physics that is not explained by the Standard Model—dark matter, dark energy, and cosmic inflation.

Read More

A Chemist Shines Light on a Surprising Prime Number Pattern

About a year ago, the theoretical chemist Salvatore Torquato met with the number theorist Matthew de Courcy-Ireland to explain that he had done something highly unorthodox with prime numbers, those positive integers that are divisible only by 1 and themselves. Torquato told de Courcy-Ireland, a final-year graduate student at Princeton who had been recommended by another mathematician, that a year before, on a hunch, he had performed diffraction on sequences of prime numbers. Hoping to highlight the elusive order in the distribution of the primes, he and his student Ge Zhang had modeled them as a one-dimensional sequence of particles — essentially, little spheres that can scatter light.

Read More
How Poetry and Math Intersect

How Poetry and Math Intersect

April is both National Poetry Month and Mathematics and Statistics Awareness Month, so a few years ago science writer Stephen Ornes dubbed it Math Poetry Month. If the words “math” and “poetry” don’t intuitively make sense to you as a pair, poet and mathematician JoAnne Growney’s blog Intersections—Poetry with Mathematics is a perfect place to start expanding your math-poetic horizons. The blog includes a broad range of poems with mathematical themes or built using mathematical rules.

Read More