DurbinKoopmanSmootherResult#
- class cultivars.state_space.linear_gaussian.DurbinKoopmanSmootherResult(*, smoothed_state, smoothed_state_cov)[source]#
Output of a linear-Gaussian backward smoothing pass.
The pass conditions every state on the whole sample,
\[a_{t \mid n} = \mathbb{E}[\alpha_t \mid y_{1:n}], \qquad V_{t \mid n} = \operatorname{Var}[\alpha_t \mid y_{1:n}],\]held in
smoothed_stateandsmoothed_state_cov. The smoothed moments satisfy the backward recursion of Durbin and Koopman (2012, section 4.4). With \(L_t = T_t - K_t Z_t\), \(K_t = T_t P_{t \mid t-1} Z_t^\top F_t^{-1}\), and the terminal values \(r_n = 0\), \(N_n = 0\),\[ \begin{align}\begin{aligned}r_{t-1} = Z_t^\top F_t^{-1} v_t + L_t^\top r_t, \qquad N_{t-1} = Z_t^\top F_t^{-1} Z_t + L_t^\top N_t L_t,\\a_{t \mid n} = a_{t \mid t-1} + P_{t \mid t-1} r_{t-1}, \qquad V_{t \mid n} = P_{t \mid t-1} - P_{t \mid t-1} N_{t-1} P_{t \mid t-1}.\end{aligned}\end{align} \]Smoothing never raises the variance: \(V_{t \mid n} \preceq P_{t \mid t}\) in the positive semi-definite order, with equality at the last date.
- Variables:
smoothed_state – Smoothed states \(a_{t \mid n}\), shape
(n, m).smoothed_state_cov – Smoothed state covariances \(V_{t \mid n}\),
(n, m, m).
See also
DurbinKoopmanSmootherResult– the public name of this class.LinearGaussianSSM.smooth()– returns an instance._LinearGaussianStateSpace.smooth()– returns an instance.
Attributes#
Smoothed states \(a_{t \mid n}\), shape |
|
Smoothed state covariances \(V_{t \mid n}\), |