Author here. I recently updated the homepage of my Kalman Filter tutorial with a new example based on a simple radar tracking problem. The goal was to make the Kalman Filter understandable to anyone with basic knowledge of statistics and linear algebra, without requiring advanced mathematics. The example starts with a radar measuring the distance to a moving object and gradually builds intuition around noisy measurem…
Understanding the Kalman filter with a simple radar example
11–20 of 71 posts
Re: Understanding the Kalman filter with a simple radar example
#12Re: Understanding the Kalman filter with a simple radar example
#13Re: Understanding the Kalman filter with a simple radar example
#14Author here. I recently updated the homepage of my Kalman Filter tutorial with a new example based on a simple radar tracking problem. The goal was to make the Kalman Filter understandable to anyone with basic knowledge of statistics and linear algebra, without requiring advanced mathematics. The example starts with a radar measuring the distance to a moving object and gradually builds intuition around noisy measurem…
Firstly I think the clarity in general is good. The one piece I think you could do with explaining early on is which pieces of what you are describing are the model of the system and which pieces are the Kalman filter. I was following along as you built the markov model of the state matrix etc and then you called those equations the Kalman filter, but I didn't think we had built a Kalman filter yet. Your early explan…
In Kalman filter theory there are two different components:
- The system model
- The Kalman filter (the algorithm)
The state transition and measurement equations belong to the system model. They describe the physics of the system and can vary from one application to another.
The Kalman filter is the algorithm that uses this model to estimate the current state and predict the future state.
I'll consider making that distinction more explicit when introducing the equations. Thanks for pointing this out.
Re: Understanding the Kalman filter with a simple radar example
#15Author here. I recently updated the homepage of my Kalman Filter tutorial with a new example based on a simple radar tracking problem. The goal was to make the Kalman Filter understandable to anyone with basic knowledge of statistics and linear algebra, without requiring advanced mathematics. The example starts with a radar measuring the distance to a moving object and gradually builds intuition around noisy measurem…
You could do a line extension of your product, like "Kalman Filter in Financial Markets" and sell additional copies :)
The challenge would be to keep it intuitive and accessible without oversimplifying. Still, it could be an interesting direction to explore.
Re: Understanding the Kalman filter with a simple radar example
#16i liked how https://www.bzarg.com/p/how-a-kalman-filter-works-in-picture... uses color visualization to explain
Re: Understanding the Kalman filter with a simple radar example
#17This seems to be an ad for a fairly expensive book on a topic that is described in detail in many (free) resources. See for example: https://rlabbe.github.io/Kalman-and-Bayesian-Filters-in-Pyth... Is there something in this particular resource that makes it worth buying?
The book goes further into topics like tuning, practical design considerations, common pitfalls, and additional examples. But there are definitely many good free resources out there, including the one you linked.
Re: Understanding the Kalman filter with a simple radar example
#18Kalman filters are very cool, but when applying them you've got to know that they're not magic. I struggled to apply Kalman Filters for a toy project about ten years ago, because the thing I didn't internalize is that Kalman filters excel at offsetting low-quality data by sampling at a higher rate. You can "retroactively" apply a Kalman filter to a dataset and see some improvement, but you'll only get amazing results…
Higher sampling rates can help in some cases, especially when tracking fast dynamics or reducing measurement noise through repeated updates. However, the main strength of the Kalman filter is combining a model with noisy measurements, not necessarily relying on high sampling rates.
In practice, Kalman filters can work well even with relatively low-rate measurements, as long as the model captures the system dynamics reasonably well.
I also agree that it's often something you design into the system rather than applying as a post-processing step.
Re: Understanding the Kalman filter with a simple radar example
#19Earlier quoted context omitted.
I just glossed through for now so might have missed it, but it seemed you pulled the process noise matrix Q out of a hat. I guess it's explained properly in the book but would be nice with some justification for why the entries are what they are.
To keep the example focused and reasonably short, I treated Q matrix as given and concentrated on building intuition around prediction and update. But you're right that this can feel like it appears out of nowhere. The derivation of the Q matrix is a separate topic and requires additional assumptions about the motion model and noise characteristics, which would have made the example significantly longer. I cover this…