Wise Lab Wiki
Docs
Wise Lab Wiki
Docs
GitHub
Search
Search
Cancel
Loading search index…
No recent searches
No results for "
Query here
"
Title here
Date here
Summary here
Computational modelling
Behavioural Modelling Package
1. Overview
Guide
1. Building basic models
2. Modelling multiple participants
3. MCMC sampling
4. Hierarchical models
5. Visualising MCMC results
6. Simulation based inference
Tutorial
1. Overview
2. Implementing an update function
3. Selecting actions
4. Updating value across trials
5. Running the model for multiple subjects
6. Model fitting using MCMC
General best practices
Online experiments
Computing
High performance computing
General coding
Common coding mistakes
Installing Python
Project organisation
Project organisation
On this page
Building models
Fitting models
General best practices
On this page
Building models
Fitting models
Building models
#
If possible, build models using
JAX
Make sure code is modular and well-documented
Components that could be reused should be made into functions
Contribute model code to
behavioural_modelling
if appropriate
Fitting models
#
See
this paper
for some useful advice on fitting models
Model parameters should be estimated using a hierarchical Bayesian approach, with posterior samples obtained using MCMC
MCMC should be run using
Numpyro
(unless this isn’t possible for any reason)
Posteriors should be checked using traceplots and other diagnostics (e.g., Rhat)
We are in the process of evaluating simulation-based inference (SBI) as an alternative model-fitting procedure
Models should be properly evaluated using parameter and model recovery checks
Prev
Common coding mistakes
Next
High performance computing