Estimate a position
01 · Define state and uncertainty
Define state and uncertainty
Position and velocity can be estimated while tracking their shared uncertainty.
Your turn
Measure the smallest direction
Eigenvalues are 1+c and 1−c; both stay nonnegative. The ellipse is not a 95% interval.
Understand the calculation, step by step
The filter estimates a distribution over a hidden state such as position and velocity. Covariance stores variances on the diagonal and covariances off it; covariance is not normalized correlation. It must be symmetric positive semidefinite. A position observation can correct velocity through their covariance.
Covariance and correlation
P=[[1,c],[c,1]] ; λmin=1−|c| ≥0 ; det=1−c²Check my understanding
Keep a thought in my notebook
Read the source and go further
The extended record combines confirmed reading, interaction, correct answer and a note of at least 40 characters. You can continue at any time.
02 · Matrix prediction and control
Matrix prediction and control
Before the next measurement, predicted movement and control provide a new position estimate.
Your turn
Predict position
Control also changes final velocity to 2+u.
Understand the calculation, step by step
For a linear model, x̂⁻=Fx̂+Bu. F transports state and B maps known control into state units. Covariance transports as FPFᵀ; a deterministic translation adds no uncertainty. Check position and velocity separately: discretized continuous kinematics differs from semi-implicit integration.
Predict with control
Δt=1, position=1, velocity=2 ; predicted position=1+2+u/2Check my understanding
Keep a thought in my notebook
Read the source and go further
The extended record combines confirmed reading, interaction, correct answer and a note of at least 40 characters. You can continue at any time.
03 · Process and measurement noise
Process and measurement noise
Imperfect motion and imperfect sensors contribute different uncertainties.
Your turn
Measure the smallest direction
Eigenvalues are 1+c and 1−c; both stay nonnegative. The ellipse is not a 95% interval.
Understand the calculation, step by step
The model uses P⁻=FPFᵀ+Q and z=Hx+v with Cov(v)=R. Q and R represent different errors. A scalar position observation has H=[1,0], which is not invertible; preserve dimensions in the equations. Reducing R without improving the sensor creates overconfidence.
Covariance and correlation
P=[[1,c],[c,1]] ; λmin=1−|c| ≥0 ; det=1−c²Check my understanding
Keep a thought in my notebook
Read the source and go further
The extended record combines confirmed reading, interaction, correct answer and a note of at least 40 characters. You can continue at any time.
04 · Fuse two Gaussians
Fuse two Gaussians
Combining a prediction and measurement gives more weight to the more precise information.
Your turn
Fuse
The result is 2+.8(z−2), with variance reduced to .8 under this model.
Understand the calculation, step by step
Multiplying a Gaussian prior by a Gaussian likelihood and normalizing gives a Gaussian posterior in the linear case. Scalar precisions (inverse variances) add. Gain P⁻/(P⁻+R) controls correction. Dependencies must be modeled coherently: counting the same information twice overstates precision.
Correct an estimate
x⁻=2, P⁻=4, R=1, H=1 ; K=0.8 ; x=2+0.8(z−2)Check my understanding
Keep a thought in my notebook
Read the source and go further
The extended record combines confirmed reading, interaction, correct answer and a note of at least 40 characters. You can continue at any time.
05 · Innovation, gain and complete loop
Innovation, gain and complete loop
The filter alternates two actions: predict movement, then correct with an available measurement.
Your turn
Fuse
The result is 2+.8(z−2), with variance reduced to .8 under this model.
Understand the calculation, step by step
Innovation is y=z−Hx̂⁻ with covariance S=HP⁻Hᵀ+R. Gain is K=P⁻HᵀS⁻¹, then x̂=x̂⁻+Ky. Joseph form P=(I−KH)P⁻(I−KH)ᵀ+KRKᵀ better preserves numerical symmetry. Alternate prediction and correction; during dropout, predict without inventing measurements.
Correct an estimate
x⁻=2, P⁻=4, R=1, H=1 ; K=0.8 ; x=2+0.8(z−2)Check my understanding
Keep a thought in my notebook
Read the source and go further
The extended record combines confirmed reading, interaction, correct answer and a note of at least 40 characters. You can continue at any time.
06 · Nonlinearity and consistency
Nonlinearity and consistency
A filter can be very confident and still wrong if its model misses a bias.
Your turn
Predict position
Control also changes final velocity to 2+u.
Understand the calculation, step by step
The linear Gaussian filter is exact under its assumptions; a wrong model can give a precise but wrong estimate. EKF uses local Jacobians to propagate covariance while predicting the mean with the nonlinear function. This local approximation gives no global guarantee. Test bias in the integrated mission.
Predict with control
Δt=1, position=1, velocity=2 ; predicted position=1+2+u/2Check my understanding
Keep a thought in my notebook
Read the source and go further
The extended record combines confirmed reading, interaction, correct answer and a note of at least 40 characters. You can continue at any time.
Take this further
atomsh / lab