You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
REF: Irrelevant state in UnobservedComponents freq. seasonal when s even #4619
For the group of frequency domain seasonal components, the transition matrix is block diagonal, where the blocks are:
[[cos(L_j), sin(L_j)],
[-sin(L_j), cos(L_j)]]
where L_j = np.pi * j * (2 / s) and j = 1, 2, ..., [s/2]. Now, when s is even, the last iterate j = (s / 2) so that L_j = np.pi. Then the blocks are:
[[-1, 0],
[0, -1]]
Now, for each block, the corresponding block of the design matrix is [1, 0].
The upshot is that when s is even, the last state is not selected by the design matrix and evolves as an independent random walk - i.e. it is irrelevant and should not be included. For some reason Durbin and Koopman (2012) don't explicitlymention this, but see e.g. Proietti (2000).
(This doesn't cause any problems right now, since we are using approximate diffuse initialization, but when we switch to exact diffuse initialization it will cause the filter to never switch out of the exact diffuse phase, since no information informs that irrelevant state).
I should clarify, that in our case we actually have j = 1, 2, ..., h where h is the harmonics specified by the user (or default is h = [s / 2]). So in some cases this isn't an issue.
Activity
ChadFulton commentedon May 11, 2018
I should clarify, that in our case we actually have
j = 1, 2, ..., hwherehis the harmonics specified by the user (or default ish = [s / 2]). So in some cases this isn't an issue.