Wiecki 2013 - HDDM Hierarchical Drift-Diffusion Model - Overview

Summary

Wiecki, Sofer and Frank (2013) present HDDM, a Python toolbox that fits the drift-diffusion model (DDM) of two-choice response times by hierarchical Bayesian MCMC (PyMC 2, Cython-compiled Wiener first-passage likelihood). Because subject parameters are shrunk toward a group distribution, the hierarchical fit recovers parameters and detects drift-rate and trial-by-trial brain-covariate effects better than maximum likelihood, the -quantile method or non-hierarchical Bayes, especially with few trials per subject.

Overview

Research question. Sequential-sampling models explain choices and the full response-time (RT) distribution of simple decisions, but classical fitting needs hundreds of trials per condition. Can a hierarchical Bayesian formulation make the DDM usable in cognitive neuroscience, where trials are scarce and the interest is in trial-by-trial links to EEG or fMRI?

Contribution. (1) A hierarchical DDM (and linear ballistic accumulator) with informative priors, group-level inter-trial variabilities and an outlier model. (2) A regression interface (HDDMRegressor) tying any DDM parameter to trial-wise covariates. (3) Simulation evidence that hierarchical Bayes (HB) beats ML, the -quantile method and non-hierarchical Bayes (nHB).

Key result. HB had the lowest recovery error and highest detection probability in all three simulation experiments; the gain is largest at 20-50 trials per subject and for drift rate and threshold, and a trial-by-trial effect is detected up to about 20 percentage points more often.

Motivating PyMC examples

Source Map

Paper sectionLocationNote
Abstract, Introduction (SSMs, why hierarchical Bayes, HDDM features)pp. 1-2this note; Wiecki 2013 - Hierarchical Bayesian Estimation Regression and Model Checking in HDDM
Methods: Drift diffusion model, Figure 1, Wald/Feller density, full DDMpp. 2-3Wiecki 2013 - Drift-Diffusion Model and Wiener First-Passage Likelihood
Methods: Hierarchical Bayesian estimation, Figure 2, prior listp. 3Wiecki 2013 - Hierarchical Bayesian Estimation Regression and Model Checking in HDDM
Results: loading data, fitting, convergence (), depends_on, posterior tests, DICpp. 4-7Wiecki 2013 - Hierarchical Bayesian Estimation Regression and Model Checking in HDDM
Results: regression models (theta on threshold, DBS reversal, Figure 5)pp. 7-8Wiecki 2013 - Hierarchical Bayesian Estimation Regression and Model Checking in HDDM
Simulations: Experiments 1-3 setuppp. 7-8Wiecki 2013 - Parameter Recovery Simulations and Detection Power
Simulations: results, Figures 6-8pp. 8-9Wiecki 2013 - Parameter Recovery Simulations and Detection Power
Discussion, acknowledgements, referencesp. 9-10this note, Wiecki 2013 - Parameter Recovery Simulations and Detection Power
Supplement (online only: priors rationale, within-subject effects, outlier model)not in PDFnot captured (not in raw source)

Main Content

The three detail notes follow the paper’s order. The theory note derives the Wiener first-passage-time (WFPT) likelihood and explains the speed-accuracy trade-off and the optimal-policy view (background beyond the paper, marked as such). The estimation note lists every prior and the workflow. The simulation note reproduces the three experimental designs and the qualitative results.

Connections

  • Partial pooling logic is the same as Hierarchical Models; DIC is discussed in Model Comparison; convergence checks relate to MCMC Basics.
  • Counterpart for marketing: response-time and choice data from online experiments (click latency, form completion) can be modelled by an accumulation process; treat as an analogy, not a result of the paper.

See Also

_Index