Many variables at once: correlation and the covariance matrix, how uncertainty moves through a model, state space, and the full matrix filter on a rocket. 7 short slides, then worked examples and problems. Each slide has an everyday picture, a worked example and Python you can run right on the page.
Free preview: most of every slide is yours to read, with its Python lab. Members get the full text, every example with its solution, and five extra problems per lesson.
Lesson 3CorrelationCorrelation and covariance: when two numbers move togetherOpen slide →01 · Lesson 3 · CorrelationWhat correlation means, and covariance as the average product of deviations, worked by hand on ice cream, hot chocolate and coffee sales, with live Python.
Free preview
Lesson 3Covariance matrixThe covariance matrix and its ellipseOpen slide →02 · Lesson 3 · The covariance matrixVariances on the diagonal, covariance off it: read a covariance matrix, find the correlation ρ and draw its 2σ ellipse. Worked examples and live Python.
Free preview
Lesson 3APAᵀTransforming covariance: the rule A P AᵀOpen slide →03 · Lesson 3 · Transforming covarianceIf y = Ax + b, the mean becomes Aμ + b and the covariance becomes A P Aᵀ. The matrix version of a²σ², worked by hand and drawn live in Python.
Free preview
Lesson 3State spaceState-space models: the state, F, B and HOpen slide →04 · Lesson 3 · State spaceWhat the state is, and how F, B and H describe motion, inputs and sensors. Position and velocity with friction and a motor push, simulated in Python.
Free preview
Lesson 3The matrix filterThe matrix Kalman filter: predict and correct with matricesOpen slide →05 · Lesson 3 · The matrix filterThe five Kalman filter equations in matrix form next to the 1D ones, where each comes from, and one full predict-correct cycle worked in numbers.
Free previewA full 2D Kalman filter: state x, y, vx, vy, the matrices F, H, Q and R, covariance ellipses, and tuning Q against R on a rocket flying to Mars, in Python.
Free preview
Lesson 3RecapLesson 3 recap: the matrix Kalman filterOpen slide →07 · Recap · ReadingThe matrix Kalman filter on one page: covariance, the 2σ ellipse, A P Aᵀ, state-space models with F, B and H, and the five predict-correct equations.