This github repo contains the raw teaching materials for the Statistical Population Modelling for Census Support workshop, funded by the United Nations Population Fund. It has been developed by the WorldPop Research Group, University of Southampton and the Leverhulme Center for Demographic Science.
The repo consists in a series of tutorials in Bayesian statistics for population modelling with hands-on experience. It includes example code and other resources designed to expedite the learning curve.
The key concepts that are covered in the tutorial series include:
- Introduction to software for Bayesian statistical modelling: R and Stan,
- Simple linear regression in a Bayesian context,
- Random effects to account for settlement type (e.g. urban/rural) and other types of stratification in survey data,
- Quantifying and mapping uncertainties in population estimates and
- Diagnostics to evaluate model performance (e.g. cross-validation).
The material has been used during an in-person workshop hosted by the Colombian National Administrative Department of Statistics in Bogota, Colombia in March 2023 and a remote workshop with the Brazilian Stats Office, Instituto Brasileiro de Geografia e EstatĂstica (IBGE), in October 2021.
- Introduction
- Tutorial 1: How to think about population as a Bayesian?
- Tutorial 2: How to model large-scale spatial variations?
- Tutorial 3: How to model small-scale spatial variations?
- Tutorial 4: Advanced model diagnostics and prediction
- Conclusion
- Workflow refresher: Building a population model from start to end + a tale about hierarchical model parametrisation
The relevant materials are in the tutorials
folder.
Each tutorial has its dedicated folder that contains:
- Tutorial material
- The
R
code - The
stan
code
- The
- Background files
- The
R markdown
code that has been used to produce thehtml
page - The
references.bib
with references used for the tutorial - The
html
code for the website page
- The
The data
folder contains outputs of the tutorial.
The tutorials were written by Edith Darin from WorldPop, University of Southampton and Douglas Leasure from Leverhulme Centre for Demographic Science, University of Oxford, with supervision from Andrew Tatem, WorldPop, University of Southampton.
Funding for the work was provided by the United Nations Population Fund (UNFPA), the Leverhulme Trust (RC-2018-003) and ESRC Impact Acceleration Account at the University of Oxford (2209-KEA-835).
You are free to redistribute this document under the terms of a Creative Commons Attribution (CC BY 4.0) license.
Darin E, Leasure DR, Tatem AJ. 2023. Statistical population modelling for census support. United Nations Population Fund (UNFPA); Leverhulme Centre for Demographic Science, University of Oxford; and WorldPop, University of Southampton. https://wpgp.github.io/bottom-up-tutorial/, doi:10.5281/zenodo.7945266