frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Understanding the Kalman filter with a simple radar example

https://kalmanfilter.net
79•alex_be•2h ago

Comments

alex_be•2h ago
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 measurements, prediction using a motion model, and how the Kalman Filter combines both. I also tried to keep the math minimal while still showing where the equations come from.

I would really appreciate feedback on clarity. Which parts are intuitive? Which parts are confusing? Is the math level appropriate?

If you have used Kalman Filters in practice, I would also be interested to hear whether this explanation aligns with your intuition.

magicalhippo•1h ago
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.
alex_be•52m ago
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 topic in detail in the book.

I'll consider adding a brief explanation or reference to make that step clearer. Thanks for pointing this out.

renjimen•57m ago
You lead with "Moreover, it is an optimal algorithm that minimizes state estimation uncertainty." By the end of the tutorial I understood what this meant, but "optimal algorithm" is a vague term I am unfamiliar with (despite using Kalman Filters in my work). It might help to expand on the term briefly before diving into the math, since IIUC it's the key characteristic of the method.
alex_be•48m ago
That's a good point. "Optimal" in this context means that, under the standard assumptions (linear system, Gaussian noise, correct model), the Kalman Filter minimizes the estimation error covariance. In other words, it provides the minimum-variance estimate among all linear unbiased estimators.

You're right that the term can feel vague without that context. I’ll consider adding a short clarification earlier in the introduction to make this clearer before diving into the math. Thanks for the suggestion.

seanhunter•39m ago
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 explanation of the filter (as a method for estimating the state of a system under uncertainty) was great but (unless I missed it) when you introduced the equations I wasn't clear that was the filter. I hope that makes sense.

alex_be•15m ago
You’re pointing out a real conceptual issue: where the system model ends and where the Kalman filter begins.

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.

KellyCriterion•33m ago
You could do a line extension of your product, like "Kalman Filter in Financial Markets" and sell additional copies :)
alex_be•6m ago
That's an interesting idea. The Kalman filter is definitely used in finance, often together with time-series models like ARMA. I've been thinking about writing something, although it's a bit outside my usual engineering focus.

The challenge would be to keep it intuitive and accessible without oversimplifying. Still, it could be an interesting direction to explore.

smokel•52m ago
This 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?

cwood-sdf•36m ago
i haven't seen much from other kalman filter resources, but i can say that this book is incredibly detailed and i would highly recommend it

if you dont want to buy the book, most of the linear kalman filter stuff is available for free: https://kalmanfilter.net/kalman-filter-tutorial.html

joshu•41m ago
i liked how https://www.bzarg.com/p/how-a-kalman-filter-works-in-picture... uses color visualization to explain
alex_be•1m ago
That's a good article. I also like the visual approach there. My goal here was a bit different. I walk through a concrete radar example step by step, and use multiple examples throughout the tutorial to build intuition and highlight common pitfalls.
palata•33m ago
I really loved this one: https://www.bzarg.com/p/how-a-kalman-filter-works-in-picture...
lelandbatey•17m ago
Kalman 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 if you sample your very-noisy data at a much higher rate than if you were sampling at a "good enough" rate. The higher your sample rate, the better your results will be. In that way, a Kalman filter is something you want to design around, not a "fix all" for data you already have.

I ported Mac OS X to the Nintendo Wii

https://bryankeller.github.io/2026/04/08/porting-mac-os-x-nintendo-wii.html
710•blkhp19•4h ago•145 comments

Git commands I run before reading any code

https://piechowski.io/post/git-commands-before-reading-code/
1425•grepsedawk•10h ago•320 comments

Understanding the Kalman filter with a simple radar example

https://kalmanfilter.net
79•alex_be•2h ago•15 comments

Muse Spark: Scaling towards personal superintelligence

https://ai.meta.com/blog/introducing-muse-spark-msl/?_fb_noscript=1
154•chabons•3h ago•206 comments

I've been waiting over a month for Anthropic support to respond

https://nickvecchioni.github.io/thoughts/2026/04/08/anthropic-support-doesnt-exist/
49•nickvec•2h ago•22 comments

Show HN: Orange Juice – Small UX improvements that make HN easier to read

http://oj-hn.com/
31•latchkey•1h ago•28 comments

They're made out of meat (1991)

http://www.terrybisson.com/theyre-made-out-of-meat-2/
267•surprisetalk•8h ago•93 comments

ML promises to be profoundly weird

https://aphyr.com/posts/411-the-future-of-everything-is-lies-i-guess
244•pabs3•6h ago•270 comments

MegaTrain: Full Precision Training of 100B+ Parameter LLMs on a Single GPU

https://arxiv.org/abs/2604.05091
217•chrsw•7h ago•41 comments

Veracrypt project update

https://sourceforge.net/p/veracrypt/discussion/general/thread/9620d7a4b3/
970•super256•12h ago•360 comments

USB for Software Developers: An introduction to writing userspace USB drivers

https://werwolv.net/posts/usb_for_sw_devs/
13•WerWolv•23m ago•0 comments

Škoda DuoBell: A bicycle bell that penetrates noise-cancelling headphones

https://www.skoda-storyboard.com/en/skoda-world/skoda-duobell-a-bicycle-bell-that-outsmarts-even-...
406•ra•10h ago•479 comments

Understanding Traceroute

https://tech.stonecharioteer.com/posts/2026/traceroute/
25•stonecharioteer•2d ago•0 comments

Show HN: TUI-use: Let AI agents control interactive terminal programs

https://github.com/onesuper/tui-use
23•dreamsome•3h ago•23 comments

Microsoft Abruptly Terminates VeraCrypt Account, Halting Windows Updates

https://www.404media.co/microsoft-abruptly-terminates-veracrypt-account-halting-windows-updates/
313•donohoe•5h ago•118 comments

US cities are axing Flock Safety surveillance technology

https://www.cnet.com/home/security/when-flock-comes-to-town-why-cities-are-axing-the-controversia...
501•giuliomagnifico•7h ago•298 comments

Expanding Swift's IDE Support

https://swift.org/blog/expanding-swift-ide-support/
3•frizlab•25m ago•0 comments

Ask HN: Any interesting niche hobbies?

126•e-topy•2d ago•224 comments

Teardown of unreleased LG Rollable shows why rollable phones aren't a thing

https://arstechnica.com/gadgets/2026/04/teardown-of-unreleased-lg-rollable-shows-why-rollable-pho...
50•DamnInteresting•1d ago•22 comments

Show HN: Unicode Steganography

https://steganography.patrickvuscan.com
27•PatrickVuscan•1d ago•5 comments

One item purchased, ten emails

https://joshghent.com/online-shopping/
83•speckx•1h ago•62 comments

Show HN: Skrun – Deploy any agent skill as an API

https://github.com/skrun-dev/skrun
4•frizull•7h ago•3 comments

Audio Reactive LED Strips Are Diabolically Hard

https://scottlawsonbc.com/post/audio-led
154•surprisetalk•1d ago•50 comments

Show HN: Go-Bt: Minimalist Behavior Trees for Go

https://github.com/rvitorper/go-bt
41•rvitorper•5h ago•3 comments

Revision Demoparty 2026: Razor1911 [video]

https://www.youtube.com/watch?v=Lw4W9V57SKs&t=5716s
324•tetrisgm•14h ago•109 comments

We moved Railway's frontend off Next.js. Builds went from 10+ mins to under 2

https://blog.railway.com/p/moving-railways-frontend-off-nextjs
131•bundie•13h ago•111 comments

Science confirms torpedo [baseball] bat works as well as regular bat

https://news.wsu.edu/press-release/2026/04/02/science-confirms-torpedo-bat-works-as-well-as-regul...
7•Magi604•5d ago•3 comments

Union types in C# 15

https://devblogs.microsoft.com/dotnet/csharp-15-union-types/
130•0x00C0FFEE•3d ago•121 comments

Claude Managed Agents

https://claude.com/blog/claude-managed-agents
86•adocomplete•2h ago•42 comments

Virtual Mars Traverse: Every inch of Curiosity rover's path since 2012 landing

https://www.rovers.land/
33•bookofjoe•3d ago•11 comments