Verification: the Kalman filter for a linear problem
For a linear observation, the unscented transform is exact, so each assimilation step of the
ROUKF gives the Kalman filter’s posterior mean and covariance. This section derives it for one
step, for the parameters alone and with a state that depends linearly on them, with a stencil
with zero mean and \(\bs{P}_\alpha = \bs{1}\), as all of kipe’s.
tests/test_roukf_kalman.py checks it numerically, to round-off: one step, several steps,
and the state.
Setting. The prior is \(\bs{\theta} \sim \mathcal{N}(\bs{\theta}^0, \bs{P}_\theta^0)\), the observation linear,
Sampling and prediction. In the first step, \(\bs{U}^0 = \bs{P}_\alpha = \bs{1}\), so \(\bs{C}^0 = \bs{1}\), and with \(\bs{S} = \bs{L}_\theta^0\), \(\bs{S}\bs{S}^T = \bs{P}_\theta^0\),
since the stencil has zero mean, and
The sigma points represent the prior exactly: \(\bs{L}_\theta \bs{P}_\alpha^{-1} \bs{L}_\theta^T = \bs{S}\bs{S}^T = \bs{P}_\theta^0\).
Innovation. With the linear observation,
Correction: covariance. \(\bs{U} = \bs{1} + \bs{S}^T \bs{H}^T \bs{W}^{-1} \bs{H} \bs{S}\), and since \(\bs{S}\) is invertible,
the Kalman posterior covariance, in its information form.
Correction: mean. \(\bs{M} = \bs{U}^{-1} \bs{L}_\Gamma^T \bs{W}^{-1} \bs{\bar\gamma} = -\bs{U}^{-1} \bs{S}^T \bs{H}^T \bs{W}^{-1} \bs{\bar\gamma}\), so
the Kalman update with the gain \(\bs{K} = \bs{P}_\theta^+ \bs{H}^T \bs{W}^{-1}\). The test compares with the gain form
which is equal by the Woodbury identity.
With a state. For a model \(\bs{\hat\chi}_{(i)} = \bs{A} \bs{\hat\theta}_{(i)}\) and the observation \(\bs{Z} = \bs{H}\bs{\chi} + \bs{\varepsilon}\), \(\bs{\hat\chi}_- = \bs{A}\bs{\hat\theta}_-\) and \(\bs{L}_\chi = \bs{A} \bs{L}_\theta\). The parameters see the observation operator \(\bs{H}\bs{A}\) (above, with \(\bs{H} \to \bs{H}\bs{A}\)), and
Several steps. Step \(k\) samples around \(\bs{\hat\theta}^{k-1}_+\) with \(\bs{S} = \bs{L}_\theta^{k-1} \bs{C}^{k-1}\), and
the sigma points represent the previous posterior exactly, as those of the first step represent the prior. The derivation above then holds for step \(k\), with this \(\bs{S}\) and the prior \(\mathcal{N}(\bs{\hat\theta}^{k-1}_+, \bs{P}_\theta^{k-1})\): each step is a Kalman update, and several steps are the sequential Kalman filter.