Skip to content

Using non-approximate GPs in forecasting #1095

@SamuelBrand1

Description

@SamuelBrand1

Problem

The GP options described here give different available forms for Hilbert space approximate GPs (HSGPs) for Rt. This is really neat, and I assume helps sampling. However, given that this relies on sine basis functions I'd want a different option for out-of-sample (i.e. forecasting) to avoid possible extrapolation problems.

Possible solution

Given that EpiNow2 samples:

  1. the length scale and variance parameters of the available HS approximate GPs
  2. Their latent process trajectory

It is possible to sample their forward trajectories from their "true" GP form and avoid extrapolation problems associated with basis functions.

Once possible way to do this would be to:

  • For each posterior sample get sampled HSGP trajectory $X = (X_t)_{t =1, \dots, T}$ at the infection time points, a length scale $\ell$ and variance $\sigma^2$.
    • Generate forward samples of the GP $\tilde{X} = (X_t)_{ t = T+1, T+2, ...}$ by sampling:
$$\tilde{X} \sim f(\tilde{X} | X, \ell, \sigma^2)$$

Which any GP package will do.

  • Given forward sample $\tilde{X}$, then continue the Renewal model simulation into future using all relevant posterior sample parameters.

This should let EpiNow2 use posterior samples from the HSGP approximation to sample future trajectories from the "full" GP. This might be an improvement (would need checking) and seems well motivated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions