Thomas Piacentini
← Workshop
← All concepts

Estimate a position

Concept 1 / 6

Change concept
01 · Define state and uncertainty

Define state and uncertainty

Position and velocity can be estimated while tracking their shared uncertainty.

Your turn

0.5
P = [[1, 0.5], [0.5, 1]]λmin = 0.5 · λmax = 1.5
Axis (1,1)Axis (1,−1)Ellipse

Measure the smallest direction0.5

Eigenvalues are 1+c and 1−c; both stay nonnegative. The ellipse is not a 95% interval.

Build
Final result · smallest eigenvalue0.5

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

For Covariance c = -0.5, what is the value of « smallest eigenvalue » ?

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

2
Δt = 111 + 2Predicted position = 4
InputTransformationResult

Predict position4

Control also changes final velocity to 2+u.

Build
Final result · Predicted position4

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/2

Check my understanding

For Known acceleration u = 3, what is the value of « predicted position » ?

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

0.5
P = [[1, 0.5], [0.5, 1]]λmin = 0.5 · λmax = 1.5
Axis (1,1)Axis (1,−1)Ellipse

Measure the smallest direction0.5

Eigenvalues are 1+c and 1−c; both stay nonnegative. The ellipse is not a 95% interval.

Build
Final result · smallest eigenvalue0.5

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

For Covariance c = -0.5, what is the value of « smallest eigenvalue » ?

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

7
x⁻ = 2z = 7K = 0.8 · x̂ = 6 · P = 0.8
PredictionMeasurementCorrected estimate

Fuse6

The result is 2+.8(z−2), with variance reduced to .8 under this model.

Build
Final result · Corrected position6

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

For Measurement z = 4, what is the value of « corrected position » ?

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

7
x⁻ = 2z = 7K = 0.8 · x̂ = 6 · P = 0.8
PredictionMeasurementCorrected estimate

Fuse6

The result is 2+.8(z−2), with variance reduced to .8 under this model.

Build
Final result · Corrected position6

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

For Measurement z = 4, what is the value of « corrected position » ?

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

2
Δt = 111 + 2Predicted position = 4
InputTransformationResult

Predict position4

Control also changes final velocity to 2+u.

Build
Final result · Predicted position4

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/2

Check my understanding

For Known acceleration u = 3, what is the value of « predicted position » ?

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