A Bayesian model for time-series count data with weekend effects and a lagged reporting process.
The model was developed within the JBC-Turing-RSS lab to now-cast COVID-19 positive test counts. In the UK, Pillar 2 PCR positive tests usually take about 4 to 5 days to process. Over this period, partial results are reported daily until the final count is reached. We make use of stability in the under reporting behaviour to infer the final count given the partial information as it arrives.
For more information on the model and inference read the pre-print.
The model requires Python 3 to use.
- Clone this repository
git clone https://github.com/alan-turing-institute/jbcc-rss-turing-nowcasting.git
cd jbcc-rss-turing-nowcasting
- Install dependencies
pip install -r requirements.txt
- Start demo (requires
jupyter lab
)
jupyter lab notebooks/quick_start.ipynb
To see an example implementation of the model in Stan with a hyperprior on the random walk scale:
jupyter lab notebooks/stan_version.ipynb
For code to reproduce results and plots in the paper see the experiments/ directory.