Baribault Beth, Collins Anne G E
Department of Psychology, University of California, Berkeley.
Psychol Methods. 2025 Feb;30(1):128-154. doi: 10.1037/met0000554. Epub 2023 Mar 27.
Using Bayesian methods to apply computational models of cognitive processes, or , is an important new trend in psychological research. The rise of Bayesian cognitive modeling has been accelerated by the introduction of software that efficiently automates the Markov chain Monte Carlo sampling used for Bayesian model fitting-including the popular Stan and PyMC packages, which automate the dynamic Hamiltonian Monte Carlo and No-U-Turn Sampler (HMC/NUTS) algorithms that we spotlight here. Unfortunately, Bayesian cognitive models can struggle to pass the growing number of diagnostic checks required of Bayesian models. If any failures are left undetected, inferences about cognition based on the model's output may be biased or incorrect. As such, Bayesian cognitive models almost always require before being used for inference. Here, we present a deep treatment of the diagnostic checks and procedures that are critical for effective troubleshooting, but are often left underspecified by tutorial papers. After a conceptual introduction to Bayesian cognitive modeling and HMC/NUTS sampling, we outline the diagnostic metrics, procedures, and plots necessary to detect problems in model output with an emphasis on how these requirements have recently been changed and extended. Throughout, we explain how uncovering the exact nature of the problem is often the key to identifying solutions. We also demonstrate the troubleshooting process for an example hierarchical Bayesian model of reinforcement learning, including supplementary code. With this comprehensive guide to techniques for detecting, identifying, and overcoming problems in fitting Bayesian cognitive models, psychologists across subfields can more confidently build and use Bayesian cognitive models in their research. (PsycInfo Database Record (c) 2025 APA, all rights reserved).
运用贝叶斯方法来应用认知过程的计算模型,即 ,是心理学研究中的一个重要新趋势。贝叶斯认知建模的兴起因软件的引入而加速,这些软件能有效地自动执行用于贝叶斯模型拟合的马尔可夫链蒙特卡罗采样,包括流行的Stan和PyMC软件包,它们自动执行我们在此重点介绍的动态哈密顿蒙特卡罗和无回转采样器(HMC/NUTS)算法。不幸的是,贝叶斯认知模型可能难以通过对贝叶斯模型要求越来越多的诊断检查。如果任何故障未被检测到,基于模型输出对认知的推断可能会有偏差或不正确。因此,贝叶斯认知模型在用于推断之前几乎总是需要 。在此,我们深入探讨了对有效故障排除至关重要但教程论文往往未详细说明的诊断检查和程序。在对贝叶斯认知建模和HMC/NUTS采样进行概念性介绍之后,我们概述了检测模型输出问题所需的诊断指标、程序和图表,重点是这些要求最近是如何变化和扩展的。在整个过程中,我们解释了揭示问题的确切性质通常是找到解决方案的关键。我们还展示了一个强化学习的分层贝叶斯模型示例的故障排除过程,包括补充代码。通过这份关于检测、识别和克服贝叶斯认知模型拟合问题的技术的全面指南,各个子领域的心理学家在其研究中可以更自信地构建和使用贝叶斯认知模型。(PsycInfo数据库记录(c)2025美国心理学会,保留所有权利)