Autocorrelated Sampling in Cognition
Implementing MCMC Algorithms as Cognitive Models and Fitting Them Without Likelihoods
A fundamental question in cognitive science is how people achieve such high levels of performance given the limited resources they have access to. Human behaviour is similar to the Bayesian ideal, but implementing Bayes’ rule is intractable but for the simplest problems.
To circumvent this problem, computer scientists have developed a family of algorithms, Markov Chain Monte Carlo (Brooks et al., 2011), which operate by drawing samples directly from the posterior distribution (thus avoiding distribution multiplication), which make the inference task possible. An exciting development in cognitive science has been to show that these inference algorithms describe human behaviour remarkably well: in perception (Gershman et al., 2012), causal reasoning (Bramley et al., 2017; Davis & Rehder, 2020), forecasting (Spicer et al., 2024), numerical estimates (Lieder et al., 2018) and probability judgments (Dasgupta et al., 2017) among others 1.
In this workshop, we will:
- discuss approaches to cognition using MCMC,
- show how to use the
samplrpackage, an R package that implements these models, and - show how to go from simulated data to model and parameter inference
No previous experience with MCMC algorithms is needed.
In this website, you will find a schedule for the workshop as well as workshop materials and slides.
Before the workshop, please install the R programming language in your machine. An IDE such as RStudio is recommended but not necessary.
The workshop will make use of the following packages for computations: samplr, abc; and these packages for plotting purposes: tidyverse, patchwork. You can install them by running:
install.packages(c("samplr", "abc", "tidyverse", "patchwork"))on your R console.
If you have issues installing these, please email Lucas Castillo (lucas.castillo@warwick.ac.uk).