Bzarg
bzarg.com · Personal blog · on HN since 2015
Bzarg is a personal blog on math, engineering, and tech, best known for an illustrated explanation of Kalman filters.
What HN saysCommenters repeatedly recommend its illustrated Kalman filter post as a gentle, picture-based introduction that still uses the math.
38HN people shared it
27linked it in comments
21stories submitted
1.9Kstory points
7 months agolast shared
2015people per year2026
Most-shared posts
- 1How a Kalman filter works, in pictures32 people · 1.8K points · first shared 2015 · 78 comments on HN
- 2How to pronounce hexadecimal6 people · 20 points · first shared 2015 · 5 comments on HN
- 3What Bitcoin shows us about how money works1 people · 77 points · first shared 2017 · 86 comments on HN
- 4Interview tips for moving up to leadership1 people · 3 points · first shared 2019 · discussion on HN
- 5Second Order FizzBuzz1 people · 2 points · first shared 2015 · discussion on HN
- 6Short fiction: “Specter”1 people · 2 points · first shared 2016 · discussion on HN
- 7Brexit and crumbling structures1 people · 1 points · first shared 2016 · discussion on HN
- 8Some napkin math about SpaceX's passenger ICBM1 people · 1 points · first shared 2018 · discussion on HN
- 9Improving IMU attitude estimates with velocity data1 people · 1 points · first shared 2020 · discussion on HN
- 10Some physics about covering the Earth with Internet access1 people · 1 points · first shared 2015 · discussion on HN
- 11Infinitely-aged Christmas pudding1 people · 1 points · first shared 2015 · discussion on HN
What HN people wrote when they linked it
palata · 2026-04-08
I really loved this one: https://www.bzarg.com/p/how-a-kalman-filter-works-in-pictures/
dplavery92 · 2023-08-02
I think a great place to start is https://www.bzarg.com/p/how-a-kalman-filter-works-in-pictures/
Unlike the OP article, it does make use of the math formalism for Kalman filters, but it is a relatively gentle introduction that does a very good job visualizing and explaining the intuition of each term. I have gotten positive feedback (no pun intended!) from interns or junior hires using this resource to familiarize themselves with the topic.
If you are making a deeper study and are ready to dive into a textbook that more thoroughly explores theory and application, there is a book by Gibbs[1] that I have used in the past and is well-regarded in some segments of industry that rely on these techniques for state estimation and GNC.
[1] https://onlinelibrary.wiley.com/doi/book/10.1002/9780470890042
maxfan8 · 2022-02-28
This is great! Another great resource about Kalman filters (with very helpful pictures) is [1], which was discussed on HN [2].
Kalman filters rock!
[1]: https://www.bzarg.com/p/how-a-kalman-filter-works-in-pictures/
[2]: https://news.ycombinator.com/item?id=29473271).
ojstella · 2021-03-06
The Kalman Filter has been one of the toughest concepts for me to grasp over the years. I have looked at many examples related to target tracking, which logically makes sense to me given physical behavior of flying targets.
But can anyone provide more applications that make learning the Kalman Filter easy?
I recommend the following two articles that helped me get a better working understanding of the Kalman Filter:
https://www.bzarg.com/p/how-a-kalman-filter-works-in-pictures/
https://thekalmanfilter.com/kalman-filter-explained-simply/
paillou · 2019-05-13
This one is great to me, less formula and more drawings :)
https://www.bzarg.com/p/how-a-kalman-filter-works-in-pictures/
fermienrico · 2018-03-13
I remember struggling with understanding Kalman filters (and Particle filters). I found [1] to be an amazingly clear explanation:
[1] http://www.bzarg.com/p/how-a-kalman-filter-works-in-pictures/
ActorNightly · 2026-01-28
https://www.bzarg.com/p/how-a-kalman-filter-works-in-pictures/
Kalman filters basic concept is essentially this.
1. make prediction on the next state change of some measurable n dimentional quantity, and estimate the covariance matrix across those n dimentions, which describe essentially a probability that the i-th dimention is going to increase (or decrease) with j-th dimention, where i and j are between 0 and n (indices of the vector)
2. Gather sensor data (that can be noisy), and reconcile the predicted measurement with the measured to get the best guess. The covariance matrix acts as a kind of weight for each of the elements
3. Update the covariance matrix based on the measurements in previous step.
You can do this for any vector of numbers. For example, instead of tracking individual objects, you can have a grid where each element represents a physical object that the car should not drive into, with a value representing certainty of that object being there. Then when you combine sensor reading, you still can use your vision model but that model would be enhanced by what lidar detects, both in terms of seeing things that camera doesn't pick up and rejecting things that aren't there.
And the concept is generic enough to where you can set up a system to be able to plug in any additional sensor with its own noise, and it all works out in the end. This is used all the You can even extend the concept past Gaussian noise and linearity, there are a number of other…
lchengify · 2020-03-20
Congrats on the launch nextmv!
I had a chance to play with nextmv's beta when they first published it. By far the most useful aspect was the ability to bracket the decision results by calculation time. E.g., I can say, give me your best result of this choice given 100ms.
This changes the typical "train / test / deploy" ML process, to something where you can get as accurate a result as possible given some block of time. This gives you a lot more options when the value of having a super-precise decision drops off a lot after say, 80% accuracy.
For those of you familiar with rocketry, the technique is a lot similar to a Kalman runner [1]. Essentially when a rocket needs to gimbal adjust its trajectory, it has a ton of uncertainty about the nature of the environment, but it does an excellent job of making a fast educated guess for the simple purpose of "get me to this orbit and don't crash".
More generally, this gets to the core of the issues discussed in part 1 of the a16z article about AI companies [2]. Specifically that modeling to get to accurate result is a huge and hidden cost of ML, which makes it distinctly different from software startups. Decision science is an attempt to bridge that gap.
[1] https://www.bzarg.com/p/how-a-kalman-filter-works-in-pictures/
[2] https://a16z.com/2020/02/16/the-new-business-of-ai-and-how-its-differe…
rudi-c · 2017-10-07
Author here -- I'm glad you like the post! There are more like you describe out there, though they tend to be scattered around the Internet.
https://jvns.ca/ often gets mentioned on HN and has a large volume of posts that follow the format "let's assume both you and I don't know anything - how do we figure this out?". http://jamie-wong.com/, a coworker, has a few good ones on graphics/numerical stuff.
Characterizing unique IDs with emojis instead of an abstract number was inspired by Tim Babb who has a good blog post on Kalman Filters: http://www.bzarg.com/p/how-a-kalman-filter-works-in-pictures/
Explaining a concept in person really helps, as you get immediate feedback if they look confused and it helps you figure out in what order you need to introduce concepts. In the case of this project, I was working on it alongside other people who were working their side projects. So I had the chance to explain what I was working on very frequently as we asked each other what we were up to, but I'm still learning to write this way intentionally.
joshu · 2026-04-08
i liked how https://www.bzarg.com/p/how-a-kalman-filter-works-in-pictures/ uses color visualization to explain
nayuki · 2024-02-12
I like this previous explanation: https://www.bzarg.com/p/how-a-kalman-filter-works-in-pictures/ , https://news.ycombinator.com/item?id=13449229
aqwsde · 2023-10-15
Have a look here:
https://www.bzarg.com/p/how-a-kalman-filter-works-in-pictures/
fzeindl · 2023-10-14
This is not exactly what you are asking for but a very nice explanation and it tries to work without math as long as possible https://www.bzarg.com/p/how-a-kalman-filter-works-in-pictures/
MayeulC · 2023-08-02
That other article had nice visualizations too: https://www.bzarg.com/p/how-a-kalman-filter-works-in-pictures/
Posted to HN three times already :)
fn1 · 2021-03-06
Here are two good resources for the Kalman Filter:
https://www.bzarg.com/p/how-a-kalman-filter-works-in-pictures/
https://www.kalmanfilter.net/default.aspx
magicalhippo · 2021-03-06
Some Kalman filter links I found useful
How a Kalman filter works, in pictures https://www.bzarg.com/p/how-a-kalman-filter-works-in-pictures/
Derive yourself a Kalman filter https://ngr.yt/blog/kalman/
Kalman and Bayesian Filters in Python https://github.com/rlabbe/Kalman-and-Bayesian-Filters-in-Python
jimmcslim · 2019-08-26
abalaji · 2019-08-10
This is right, the information can be combined using the uncertainties given by each observation through a process known as sensor fusion. [1] An article that pops up sometimes on HN describes one way to combine such information known as a Kalman filter. [2]
[1] https://en.wikipedia.org/wiki/Sensor_fusion
[2] https://www.bzarg.com/p/how-a-kalman-filter-works-in-pictures/
tbabb · 2019-07-03
I wish we'd stop calling bitcoin "currency"— that is not remotely what it is. Currency has a number of important properties that allow it to fill its function, and cryptocurrency has basically none of them.
I wrote about this in 2017, but it is as relevant now as it was then: https://www.bzarg.com/p/what-bitcoin-shows-us-about-how-money-works/
isegrim · 2019-05-13
You may have chanced upon this already but here is a wonderfully explained (IMHO) intro to Kalman filters: https://www.bzarg.com/p/how-a-kalman-filter-works-in-pictures/
nippoo · 2019-03-30
The maths behind this kind of fusion of different data sources is also pretty beautiful. Kalman filters (https://www.bzarg.com/p/how-a-kalman-filter-works-in-pictures/) are similar to the sensor fusion community what RNNs are to machine learning; simply stick all your data sources in with their uncertainties, and put pops a corrected estimate (in this case, position). It makes it much easier to combine data sources with rapid refresh rate but high integral error (IMU, gyroscopes, ...) with GPS/celestial navigation.
pmarreck · 2018-11-14
I googled kalman filter https://www.bzarg.com/p/how-a-kalman-filter-works-in-pictures/
Looks interesting!
FroshKiller · 2018-06-22
It's been posted before: http://www.bzarg.com/p/how-to-pronounce-hexadecimal/
etaioinshrdlu · 2018-01-30
You may enjoy this tutorial: http://www.bzarg.com/p/how-a-kalman-filter-works-in-pictures/
justinvoss · 2016-10-05
There's another explanation of Kalman filters here: http://www.bzarg.com/p/how-a-kalman-filter-works-in-pictures/
fuzzythinker · 2016-04-25
Another nice explanation, a bit more visual.
http://www.bzarg.com/p/how-a-kalman-filter-works-in-pictures/