Skip to content

REF: Irrelevant state in UnobservedComponents freq. seasonal when s even #4619

Open

Description

@ChadFulton

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).

Activity

  1. ChadFulton commented on May 11, 2018

    @ChadFulton
    MemberAuthor

    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.

  2. added this to the 0.10 milestone on May 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions