A Hitchhiker’s Guide to Bayesian Hierarchical Drift-Diffusion Modeling with Dockerhddm
Wanke Pan,Haiyang Geng,Lei Zhang,Alexander Fengler,Michael Frank,RU-YUAN ZHANG,Hu Chuan-Peng
DOI: https://doi.org/10.31234/osf.io/6uzga
2022-01-01
Abstract:Drift diffusion models (DDMs) are pivotal in understand decision-making processes across psychology, behavioral economics, neuroscience, and psychiatry. Hierarchical drift diffusion models (HDDM), a Python library for hierarchical Bayesian estimation of DDMs, has been widely used among researchers, including those with limited coding proficiency, in fitting DDMs and other sequential sampling models to their data. However, issues of compatibility in installation and lack of support for more recently Bayesian modeling functionalities poses serious challenges for new users, limiting broader application of HDDM and reproducibility of research that used HDDM. To address these issues, we dockerize HDDM and add new functions into dockerHDDM, which brings three improvements: (1) easy-to-install once docker is installed, ensuring reproducibility and saving time for researchers; (2) compatible with machine with apple chips; (3) seamlessly integration with ArviZ, a state-of-the-art Bayesian modeling library. This tutorial serves as a practical, hands-on guide for researchers to leverage dockerHDDM’s capabilities in conducting efficient Bayesian hierarchical analysis of DDMs. The notebook presented here and within the docker image will enable researchers with various programming levels to model their data with HDDM.