You can use the Kalman Filter without mastering the theory. A Kalman filter is a recursive algorithm that combines a dynamical model and noisy measurements to estimate the evolving state of a system as accurately as possible — used in GPS, robotics, aerospace navigation, sensor fusion, and signal processing.
In Part 1 of this three-part beginner series, I break it down step by step, starting with three simple recursive filters that share the Kalman filter's mathematical structure: the recursive average, the moving average, and the low-pass filter. Each is demonstrated with MATLAB code on noisy data (Python implementation linked below as well). By the end of Part 1 you'll understand the recursive update pattern that powers the full Kalman filter, ready for Parts 2 and 3 where we add the dynamical model and the measurement model.
No jargon, just clear explanations to build your estimation and data analysis skills.
▶️ Chapters
0:00 Introduction
0:21 Recursive expression for the average
5:52 Simple example: recursive average filter
10:21 MATLAB demo: recursive average filter on noisy data
17:55 The moving average filter
21:14 MATLAB demo: moving average filter
26:49 The low-pass filter
37:03 MATLAB demo: low-pass filter
41:03 Basics of the Kalman filter algorithm (preview of Part 2)
⚠️ Corrections
- At 10:58, I say the noise was uniformly distributed. It was actually normally distributed (std. dev. = 4).
- At 14:10, I clarify that randn in MATLAB gives a normal distribution.
📘 What this video covers
- What a recursive filter is and why it's called "recursive"
- How moving average and low-pass filters work
- MATLAB implementation walkthroughs for each filter on noisy data
- How these simple filters preview the Kalman filter structure
🎓 Full Kalman Filter for Beginners series
- Part 1: Recursive Filters & MATLAB Examples (this video)
- Part 2: Estimation & Prediction in Kalman Filters — https://youtu.be/qCZ2UTgLM_g
- Part 3: Attitude and Velocity Estimation Examples — https://youtu.be/DbE4PMgqp3s
▶️ Next in series — Part 2: Estimation & Prediction in Kalman Filters
https://youtu.be/qCZ2UTgLM_g
▶️ Previous lecture — Davenport's Q-Method for Optimal Attitude Estimation
https://youtu.be/W1k1LEHLXTM
This three-part Kalman series takes us into *dynamic* attitude estimation using time-varying sensor data (e.g., gyroscope measurements), as opposed to the previously covered *static* attitude estimation methods like TRIAD and Davenport's q-method that use simultaneous measurements of known external reference objects.
🛠️ Resources
- MATLAB code and lecture notes (free download)
https://drive.google.com/drive/folders/1oEi3v5LfOw9lbgBmGydww-AFkzBlPQsr
- Python implementation by Adam Steineck
https://gitlab.com/adam-at-epsilon/digital-filters
- Book reference: Phil Kim — Kalman Filter for Beginners
https://www.amazon.com/dp/1463648359
🎓 Course
Space Vehicle Dynamics (Attitude Dynamics) — AOE 3144, Virginia Tech
Full playlist: https://www.youtube.com/playlist?list=PLUeHTafWecAXDFDYEwunLL2V2kwqKzkvJ
⸻
👨🏫 Instructor
Dr. Shane Ross
Professor of Aerospace Engineering, Virginia Tech (Caltech PhD, former NASA/JPL and Boeing)
Research: https://ross.aoe.vt.edu
Follow: https://x.com/RossDynamicsLab
Subscribe: https://www.youtube.com/user/RossDynamicsLab?sub_confirmation=1
⸻
🔗 Related courses
- Nonlinear Dynamics & Chaos — https://www.youtube.com/playlist?list=PLUeHTafWecAUqSh3Gy0NNr7H3OsXoC-aK
- Lagrangian & Rigid Body Dynamics — https://www.youtube.com/playlist?list=PLUeHTafWecAUl2DuWWdRU1MckJv7M5LEH
- Hamiltonian Dynamics — https://www.youtube.com/playlist?list=PLUeHTafWecAVCauQ541UBrfGqHQwuHq_2
- Center Manifolds, Normal Forms & Bifurcations — https://www.youtube.com/playlist?list=PLUeHTafWecAVblNx278wBxkIQXw7iJws3
- 3-Body Problem Orbital Dynamics — https://www.youtube.com/playlist?list=PLUeHTafWecAXDF9vWi7PuE2ZQQ2hXyYt_
Recorded: Spring 2023
#KalmanFilter #RecursiveFilter #MovingAverage #LowPassFilter #MATLAB #StateEstimation #SignalProcessing #SensorFusion #AttitudeDynamics #GPS #Robotics #Aerospace #Beginner #Python #VirginiaTech #AOE3144