Derive a One Dimensional Kalman Update for Altitude Fusion

Last updated: November 29, 2026

Quick Overview

An aircraft estimates altitude by predicting with a vertical velocity model and correcting with a noisy barometer. Derive the scalar Kalman filter predict and update equations, compute one step by hand, and explain how the gain behaves as sensor noise changes.

Shield AI
Statistics & Math
Machine Learning Engineer
Shield AI
November 29, 2026
Machine Learning Engineer
Technical Screen
Statistics & Math
Medium

0

0

0 solved


An aircraft estimates altitude by predicting with a vertical velocity model and correcting with a noisy barometer. Derive the scalar Kalman filter predict and update equations, compute one step by hand, and explain how the gain behaves as sensor noise changes.

State estimation is the foundation that lets Shield AI's aircraft fly without GPS, so autonomy and perception candidates are expected to reason about uncertainty precisely. The interviewer checks that you can derive the gain from minimizing variance, plug in numbers correctly, and connect the math to real sensor behavior.

What the Interviewer Expects
  • Writes the process and measurement models with noise terms
  • Derives the gain as the variance-minimizing blend
  • Computes a numeric step without arithmetic slips
  • Explains the limits: gain near 1 when the sensor is precise, near 0 when it is noisy
  • Mentions what breaks when noise is not Gaussian or the model is wrong
Key Topics to Cover
Kalman filter
Sensor fusion
Bayesian estimation
Variance
State estimation
How to Approach This
  1. Define your hypotheses (H0 and H1) clearly before performing any test.
  2. Calculate required sample size BEFORE running an experiment, using power analysis.
  3. Remember the Central Limit Theorem: sample means become approximately normal with large n.
  4. Watch for Simpson's paradox. Always segment data by key dimensions.
  5. Distinguish between statistical significance and practical significance.
Possible Follow-up Questions
  • How do you detect and reject a barometer outlier (innovation gating)?
  • Extend to a 2-state [altitude, vertical velocity] filter. What is the F matrix?
  • How would you tune Q and R from flight logs?
  • Why does the variance converge to a steady state even with no new information about the true altitude?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Browse Statistics Questions
Sample Answer
Clarify

State: altitude hh. Process: hk=hk−1+v Δt+wh_k = h_{k-1} + v\,\Delta t + w, with w∼N(0,Q)w \sim N(0, Q) and known commanded climb rate vv. Measurement: zk=hk+nz_k = h_k + n, n∼N(0,R)n \sim N(0, R). We keep a Gaussian belief wit...

Approach

Predict: h^−=h^+v Δt\hat h^- = \hat h + v\,\Delta t, P−=P+QP^- = P + Q.

Update: we blend h^=h^−+K(z−h^−)\hat h = \hat h^- + K(z - \hat h^-). The error is (1−K)e−+Kn(1-K)e^- + K n, so its variance is (1−K)2P−+K2R(1-K)^2 P^- + K^2 R. Set...


Submit Your Answer
Markdown supported

Related Questions