Skip to content

ENH: Spectral density of periodic kernels for HSGPs #6868

Closed
@theorashid

Description

@theorashid

Before

No response

After

No response

Context for the issue:

I was looking to port the birthdays model example for HSGPs (see numpyro and Aki).

This model builds a long term trend, smooth year seasonality, slowly varying day of week effect, day of the year effect and special floating days effects. The long term trend and seasonal effect are built using GPs, the former with a SE kernel and the latter with a periodic kernel.

The power spectral density for the SE (ExpQuad) kernel is implemented, but there is no spectral density for the periodic kernel. (This numpyro example also calls it a periodic SE kernel, although the Stan page says just "periodic", so something is wrong).

@bwengals is the spectral density for the periodic kernel something worth implementing or is it too niche? I think it's also a low rank approximation rather than exact

PS: There should be a HSGP example! I would be willing to contribute this as an example, although looking at the numpyro example, there might be a bit too much with the different holiday effects. Perhaps Bill's/McElreath's cherry blossom example might be better.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions