From e8fbca01388b99c4cac09fef8b45729185d10a01 Mon Sep 17 00:00:00 2001 From: Matt McKay Date: Tue, 17 Nov 2026 14:35:55 +1100 Subject: [PATCH 1/2] Repair the eq:Kalman102 reference in cross_product_trick The {eq} role ended with a brace instead of a backtick, so the reference to eq:Kalman102 didn't render. The label is defined a few lines above. Found while validating a build of the lecture from QuantEcon/lectures. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01WT8bMZoSvoQTbzkdmZiMnd --- lectures/cross_product_trick.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lectures/cross_product_trick.md b/lectures/cross_product_trick.md index 7824c6c3a..3019c2c43 100644 --- a/lectures/cross_product_trick.md +++ b/lectures/cross_product_trick.md @@ -130,7 +130,7 @@ B^* {B^*}' & = BB' - BF' (FF')^{-1} FB'. ### Algorithm -A consequence of formulas {eq}`eq:Kalman102} is that we can use the following algorithm to solve Kalman filtering problems that involve non zero covariances between state and signal noises. +A consequence of formulas {eq}`eq:Kalman102` is that we can use the following algorithm to solve Kalman filtering problems that involve non zero covariances between state and signal noises. First, compute $\Sigma, K^*$ using the ordinary Kalman filtering formula with $BF' = 0$, i.e., with zero covariance matrix between random shocks to states and random shocks to measurements. From 1af7195fe0f396ab586dcd885dadbaa7836daa77 Mon Sep 17 00:00:00 2001 From: Matt McKay Date: Sun, 22 Nov 2026 21:35:40 +1100 Subject: [PATCH 2/2] Give eq:Kalman102 a label the {eq} role can find The label was written after a bare align* environment, which MyST does not label, so it showed on the page as the text "(eq:Kalman102)" and, once the role was repaired, the reference had nothing to find. Writing the equation as $$ \begin{aligned} ... \end{aligned} $$ (eq:Kalman102), as the other lectures do, numbers it and lets the reference resolve. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01WT8bMYi9AZHg29XQAH3w7N --- lectures/cross_product_trick.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lectures/cross_product_trick.md b/lectures/cross_product_trick.md index 3019c2c43..4ba5854c9 100644 --- a/lectures/cross_product_trick.md +++ b/lectures/cross_product_trick.md @@ -115,10 +115,12 @@ Thus, $x_t$ is $m \times 1$ and $z_t$ is $k \times 1$. The Kalman filtering formulas are -\begin{align*} +$$ +\begin{aligned} K(\Sigma_t) & = (A \Sigma_t D' + BF')(D \Sigma_t D' + FF')^{-1}, \\ \Sigma_{t+1}& = A \Sigma_t A' + BB' - (A \Sigma_t D' + BF')(D \Sigma_t D' + FF')^{-1} (D \Sigma_t A' + FB'). -\end{align*} (eq:Kalman102) +\end{aligned} +$$ (eq:Kalman102) Define tranformed matrices