-
Notifications
You must be signed in to change notification settings - Fork 38
Description
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:
- the length scale and variance parameters of the available HS approximate GPs
- 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:
- Generate forward samples of the GP
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.