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

We Need Bug Bounties for Bad Algorithms

We Need Bug Bounties for Bad Algorithms

Algorithmic auditors are a growing discipline of researchers specializing in computer science and human-computer interaction. They employ a variety of methods to tinker with and uncover how algorithms work, and their research has already sparked public discussions and regulatory investigations into the most dominant and powerful algorithms of the Information Age. From Uber and Booking.com to Google and Facebook, to name a few, these friendly auditors already uncovered bias and deception in the algorithms that control our lives.

Read More
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
The best representations of mathematics may not exist yet

The best representations of mathematics may not exist yet

Humility. It’s all I can feel after watching 3Blue1Brown’s latest maths video, in which Grant Sanderson and his team provide the most novel of approaches to solving 2D equations, using colour. It is the second time 3Blue1Brown has blown my mind to pieces in just a few weeks, following their earlier video that solved the Basel problem with light.

Read More