# Block 5 Flashcards

Click a question to reveal the answer.

<div data-flashcards data-deck="block-5"></div>

<details>
<summary><strong>1. Why do navigation systems need multiple states?</strong></summary>
<div class="card-answer"><p>Operational navigation systems must estimate position, velocity, attitude, sensor biases, and clock errors all at the same time. They are coupled — accelerometer bias affects velocity through the mechanization, attitude error mis-projects gravity into the horizontal plane — so they must be estimated jointly.</p></div>
</details>

<details>
<summary><strong>2. Write the state vector for the 4-state constant-velocity tracking filter.</strong></summary>
<div class="card-answer"><p><span class="math notranslate nohighlight">\(\mathbf{x}_k = [p_{x,k},\, p_{y,k},\, v_{x,k},\, v_{y,k}]^\top\)</span>. Two position components and two velocity components, all in 2D Cartesian coordinates.</p></div>
</details>

<details>
<summary><strong>3. Write the state transition matrix <span class="math notranslate nohighlight">\(\mathbf{F}\)</span> for the 4-state constant-velocity model.</strong></summary>
<div class="card-answer"><p><span class="math notranslate nohighlight">\(\displaystyle \mathbf{F} = \begin{bmatrix} 1 & 0 & \Delta t & 0 \\ 0 & 1 & 0 & \Delta t \\ 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 1 \end{bmatrix}\)</span>. The off-diagonal <span class="math notranslate nohighlight">\(\Delta t\)</span> entries couple velocity into position — that is what lets a position measurement update the velocity estimate through the cross-covariance.</p></div>
</details>

<details>
<summary><strong>4. Why does the constant-velocity model need a non-zero <span class="math notranslate nohighlight">\(\mathbf{Q}\)</span>?</strong></summary>
<div class="card-answer"><p>Real motion is not perfectly constant-velocity. Unknown accelerations along each axis inject uncertainty into the state. Modeling them as zero-mean white noise gives <span class="math notranslate nohighlight">\(\mathbf{Q}\)</span> a structured form with <span class="math notranslate nohighlight">\(\Delta t^4 / 4\)</span> on the position diagonal, <span class="math notranslate nohighlight">\(\Delta t^2\)</span> on velocity, and <span class="math notranslate nohighlight">\(\Delta t^3 / 2\)</span> on the off-diagonals. The off-diagonal terms reflect the kinematic coupling: an acceleration affects position and velocity together.</p></div>
</details>

<details>
<summary><strong>5. Write the measurement matrix <span class="math notranslate nohighlight">\(\mathbf{H}\)</span> for a 2D position-only sensor against the 4-state filter.</strong></summary>
<div class="card-answer"><p><span class="math notranslate nohighlight">\(\mathbf{H} = \begin{bmatrix} 1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 \end{bmatrix}\)</span>. The first two rows of the identity, picking out position. <span class="math notranslate nohighlight">\(\mathbf{H}\)</span> is <span class="math notranslate nohighlight">\(2\times 4\)</span>; <span class="math notranslate nohighlight">\(\mathbf{R}\)</span> is <span class="math notranslate nohighlight">\(2\times 2\)</span>.</p></div>
</details>

<details>
<summary><strong>6. Write the matrix-form Kalman filter prediction equations.</strong></summary>
<div class="card-answer"><p><span class="math notranslate nohighlight">\(\hat{\mathbf{x}}_{k+1}^- = \mathbf{F}\,\hat{\mathbf{x}}_k^+\)</span> and <span class="math notranslate nohighlight">\(\mathbf{P}_{k+1}^- = \mathbf{F}\,\mathbf{P}_k^+\,\mathbf{F}^\top + \mathbf{Q}\)</span>. Same predict step as the scalar filter, with matrices everywhere.</p></div>
</details>

<details>
<summary><strong>7. Write the matrix-form Kalman gain.</strong></summary>
<div class="card-answer"><p><span class="math notranslate nohighlight">\(\mathbf{K}_k = \mathbf{P}_k^-\,\mathbf{H}^\top\,\left(\mathbf{H}\,\mathbf{P}_k^-\,\mathbf{H}^\top + \mathbf{R}\right)^{-1}\)</span>. The denominator <span class="math notranslate nohighlight">\(\mathbf{S}_k = \mathbf{H}\,\mathbf{P}_k^-\,\mathbf{H}^\top + \mathbf{R}\)</span> is the innovation covariance, the multivariate analog of the scalar <span class="math notranslate nohighlight">\(P^- + R\)</span>.</p></div>
</details>

<details>
<summary><strong>8. Write the matrix-form state and covariance updates.</strong></summary>
<div class="card-answer"><p><span class="math notranslate nohighlight">\(\hat{\mathbf{x}}_k^+ = \hat{\mathbf{x}}_k^- + \mathbf{K}_k\,(\mathbf{z}_k - \mathbf{H}\,\hat{\mathbf{x}}_k^-)\)</span> and <span class="math notranslate nohighlight">\(\mathbf{P}_k^+ = (\mathbf{I} - \mathbf{K}_k\,\mathbf{H})\,\mathbf{P}_k^-\)</span>. Innovation in measurement space gets weighted by <span class="math notranslate nohighlight">\(\mathbf{K}_k\)</span> and added to the state estimate; covariance shrinks accordingly.</p></div>
</details>

<details>
<summary><strong>9. What dimensions does <span class="math notranslate nohighlight">\(\mathbf{K}_k\)</span> have for the 4-state filter with a 2D position measurement?</strong></summary>
<div class="card-answer"><p><span class="math notranslate nohighlight">\(\mathbf{K}_k\)</span> is <span class="math notranslate nohighlight">\(4\times 2\)</span>. It maps measurement-space corrections into state-space updates: a 2D innovation becomes a 4-element state correction. That is how a 2D measurement updates all four state components simultaneously.</p></div>
</details>

<details>
<summary><strong>10. What do the off-diagonal terms of the covariance matrix <span class="math notranslate nohighlight">\(\mathbf{P}\)</span> represent?</strong></summary>
<div class="card-answer"><p>Cross-covariance between state errors. <span class="math notranslate nohighlight">\(P_{ij}\)</span> says how strongly an error in state <span class="math notranslate nohighlight">\(i\)</span> correlates with an error in state <span class="math notranslate nohighlight">\(j\)</span>. They are how an observation of one state corrects others — the structural reason a position fix simultaneously refines velocity, and the reason a GPS update on a 15-state INS/GPS filter pulls the accelerometer biases into agreement with truth.</p></div>
</details>

<details>
<summary><strong>11. In a 4-state constant-velocity filter where <span class="math notranslate nohighlight">\(x\)</span> and <span class="math notranslate nohighlight">\(y\)</span> are independent, what does <span class="math notranslate nohighlight">\(\mathbf{P}\)</span> look like structurally?</strong></summary>
<div class="card-answer"><p>Block diagonal. The <span class="math notranslate nohighlight">\(x\)</span>-axis states <span class="math notranslate nohighlight">\((p_x, v_x)\)</span> form a <span class="math notranslate nohighlight">\(2\times 2\)</span> block; the <span class="math notranslate nohighlight">\(y\)</span>-axis states <span class="math notranslate nohighlight">\((p_y, v_y)\)</span> form another <span class="math notranslate nohighlight">\(2\times 2\)</span> block; the cross-axis terms are zero. Within each block the position and velocity covariance are coupled through <span class="math notranslate nohighlight">\(\mathbf{F}\)</span> and <span class="math notranslate nohighlight">\(\mathbf{Q}\)</span>.</p></div>
</details>

<details>
<summary><strong>12. Quick estimate: in steady state with <span class="math notranslate nohighlight">\(\sigma_p = 5\)</span> m position uncertainty and updates every <span class="math notranslate nohighlight">\(\Delta t = 10\)</span> s, what is a back-of-envelope <span class="math notranslate nohighlight">\(\sigma_v\)</span>?</strong></summary>
<div class="card-answer"><p>Two consecutive position fixes with <span class="math notranslate nohighlight">\(\sigma_p = 5\)</span> m give a differenced-position uncertainty of <span class="math notranslate nohighlight">\(\sqrt{2}\,\sigma_p \approx 7.07\)</span> m, which is the uncertainty on <span class="math notranslate nohighlight">\(v\,\Delta t\)</span>. So <span class="math notranslate nohighlight">\(\sigma_v \approx 7.07 / 10 \approx 0.71\)</span> m/s. The actual filter does better because it averages many past measurements with optimal weights, but this is the right order of magnitude.</p></div>
</details>

<details>
<summary><strong>13. What is the 6D Gauss-Markov-acceleration filter, and why is it useful?</strong></summary>
<div class="card-answer"><p>It adds 2D acceleration as a state, modeled as a first-order Gauss-Markov process: <span class="math notranslate nohighlight">\(\dot{a} = -a/\tau_a + w\)</span>. The state becomes <span class="math notranslate nohighlight">\([p_x, p_y, v_x, v_y, a_x, a_y]^\top\)</span>. Useful when the vehicle has slowly varying but non-zero acceleration: instead of letting the unknown accelerations sit inside <span class="math notranslate nohighlight">\(\mathbf{Q}\)</span>, the filter explicitly tracks them as states with a known time constant, and gets a better estimate of position and velocity as a side benefit.</p></div>
</details>

<details>
<summary><strong>14. With a velocity-only sensor and the 6D filter, why does position uncertainty still grow?</strong></summary>
<div class="card-answer"><p>Position is not directly observable from velocity. A velocity measurement bounds the velocity error, but position is the integral of velocity, and the integration constant (initial position) is unobservable. Even with perfect velocity tracking, position uncertainty grows linearly with time. This is the canonical observability lesson: <strong>not every state is observable from every sensor</strong>.</p></div>
</details>

<details>
<summary><strong>15. Write the state vector for an operational 15-state INS/GPS filter.</strong></summary>
<div class="card-answer"><p><span class="math notranslate nohighlight">\(\mathbf{x} = [\,x,y,z,\ v_x,v_y,v_z,\ \phi,\theta,\psi,\ b_{ax},b_{ay},b_{az},\ b_{gx},b_{gy},b_{gz}\,]^\top\)</span>: position, velocity, attitude, accelerometer biases, gyro biases. Each block is 3-dimensional, total 15 states. The filter equations are the same matrix equations as the 4-state filter, just with bigger matrices.</p></div>
</details>

<details>
<summary><strong>16. What changes about the Kalman filter when you go from one state to many?</strong></summary>
<div class="card-answer"><p>Dimensions only. Scalars become vectors, variances become covariance matrices, division becomes matrix inversion. The conceptual machinery is unchanged: predict via a motion model that grows uncertainty, update via inverse-covariance weighting against an aiding measurement, repeat. Every multi-state Kalman filter is the same five matrix equations.</p></div>
</details>
