``statespace_score`` ==================== The analytic score (DK §7.3.3) from one smoother pass. By the Fisher identity, :math:`\partial \log L / \partial\psi = E[\partial \log p(Y, \alpha; \psi) / \partial\psi \mid Y]` (DK eqs. 7.13-7.15). For parameters in :math:`H_t`, :math:`R_t Q_t R_t'` and the :math:`P_*` part of the initialization this gives (DK eq. 7.16; Koopman and Shephard 1992) .. math:: \frac{\partial \log L}{\partial \psi_i} = \tfrac12 \sum_t \mathrm{tr}(\dot H_t G^\varepsilon_t) + \tfrac12 \sum_{t