SlideShare a Scribd company logo
HDDM: Hierarchical Bayesian Drift-Diffusion Modeling Thomas V. Wiecki & Imri Sofer, Michael J. Frank
Drift-Diffusion Model
 
 
Traditional model fitting Fitting separate models to each subject Fitting one model to  all  subjects e.g. DMAT, fast-dm, EZ Ignores similarities Ignores differences Subject 1 ... Subject n P( data 1 | θ 1 ) ... P( data n | θ n ) P( data| θ ) Subject 1 ... Subject n Subject 1 ... Subject n Subject 1 ... Subject n
Hierarchical model estimation Subject 1 ... Subject n Group P( θ group |θ 1 ,  θ. , ,  θ n ) P(θ 1 |data, θ group ) ... P(θ n |data, θ group )
Hierarchical Bayesian estimation Pro Adequately maps experimental structure onto model
Needs less data for individual subject estimation
Constraining of subject parameters (helps with extreme fits)
Estimation of full posterior, not just maximum
... Contra Computationally expensive (sampling, e.g. MCMC)
Correct model behavior can be hard to assess (e.g. chain convergence)
Methods still in development
Hierarchical Bayesian estimation  (via PyMC) of parameters of the DDM in Python. Ratcliff, Vandekerckhove, Tuerlinckx, Lee, Wagenmakers Heavily  optimized  likelihood functions Navarro & Fuss (2009) likelihood
Collapsed model for inter-trial variabilities Flexible  creation of complex models tailored to specific hypotheses (e.g. separate drift-rate parameters for different stimulus types).
Several convergence and goodness-of-fit  diagnostics
Validated : integrated tests check if parameters from simulated data can be recovered HDDM
...it works!

More Related Content

PDF
Squeeeze models
PDF
Gossip-based resource allocation for green computing in large clouds
PDF
Clustering tutorial
PPTX
20131121
PDF
Afsar ml applied_svm
PDF
Dl1 deep learning_algorithms
PDF
실용주의 머신러닝 CNN MNIST TENSORBOARD
PDF
Image Restoration 2 (Digital Image Processing)
Squeeeze models
Gossip-based resource allocation for green computing in large clouds
Clustering tutorial
20131121
Afsar ml applied_svm
Dl1 deep learning_algorithms
실용주의 머신러닝 CNN MNIST TENSORBOARD
Image Restoration 2 (Digital Image Processing)

What's hot (20)

PDF
Efficient Variable Size Template Matching Using Fast Normalized Cross Correla...
PDF
Frequency Domain Operation for Image Enhancement
PPT
Antiderivatives
PDF
ES_SAA_OG_PF_ECCTD_Pos
PPTX
Mid point
PPT
Fuzzy c means clustering protocol for wireless sensor networks
PDF
presentazione
PDF
OLS gradient descent
PDF
Web_Alg_Project
PDF
ModuLab DLC-Medical3
PDF
Introduction to deep learning using python
PDF
Image Restoration (Digital Image Processing)
PPTX
Artificial neural network
PDF
Lecture 13 (Usage of Fourier transform in image processing)
PPTX
Joint optimization framework for learning with noisy labels
PDF
Design and optimization of parts of a suspension system
PDF
Machine Learning with Go
PDF
Lecture 14 Properties of Fourier Transform for 2D Signal
PDF
Families of Triangular Norm Based Kernel Function and Its Application to Kern...
PDF
Lecture 4: Stochastic Hydrology (Site Characterization)
Efficient Variable Size Template Matching Using Fast Normalized Cross Correla...
Frequency Domain Operation for Image Enhancement
Antiderivatives
ES_SAA_OG_PF_ECCTD_Pos
Mid point
Fuzzy c means clustering protocol for wireless sensor networks
presentazione
OLS gradient descent
Web_Alg_Project
ModuLab DLC-Medical3
Introduction to deep learning using python
Image Restoration (Digital Image Processing)
Artificial neural network
Lecture 13 (Usage of Fourier transform in image processing)
Joint optimization framework for learning with noisy labels
Design and optimization of parts of a suspension system
Machine Learning with Go
Lecture 14 Properties of Fourier Transform for 2D Signal
Families of Triangular Norm Based Kernel Function and Its Application to Kern...
Lecture 4: Stochastic Hydrology (Site Characterization)
Ad

Similar to HDDM: Hierarchical Bayesian estimation of the Drift Diffusion Model (20)

PDF
Towards a Unified Data Analytics Optimizer with Yanlei Diao
PDF
Machine learning for_finance
PDF
[PR12] PR-036 Learning to Remember Rare Events
PDF
Camp IT: Making the World More Efficient Using AI & Machine Learning
PDF
Spark 4th Meetup Londond - Building a Product with Spark
PDF
“The Fundamentals of Training AI Models for Computer Vision Applications,” a ...
PPTX
DataStax | Data Science with DataStax Enterprise (Brian Hess) | Cassandra Sum...
PDF
dfdshofdifhdifhdfhgfoighfgofgfgfgfgdfdfdfdf
PDF
Efficient Implementation of Self-Organizing Map for Sparse Input Data
DOCX
LSTM Framework For Univariate Time series
PPTX
Accelerated Logistic Regression on GPU(s)
PDF
C++ Data-flow Parallelism sounds great! But how practical is it? Let’s see ho...
PPTX
Session 4 start coding Tensorflow 2.0
PPTX
lecture_16.pptx
PDF
maXbox starter65 machinelearning3
PDF
Tractor Pulling on Data Warehouse
PDF
Generative modeling with Convolutional Neural Networks
PPT
Jörg Stelzer
PPTX
supervised.pptx
PDF
Kaggle Winning Solution Xgboost algorithm -- Let us learn from its author
Towards a Unified Data Analytics Optimizer with Yanlei Diao
Machine learning for_finance
[PR12] PR-036 Learning to Remember Rare Events
Camp IT: Making the World More Efficient Using AI & Machine Learning
Spark 4th Meetup Londond - Building a Product with Spark
“The Fundamentals of Training AI Models for Computer Vision Applications,” a ...
DataStax | Data Science with DataStax Enterprise (Brian Hess) | Cassandra Sum...
dfdshofdifhdifhdfhgfoighfgofgfgfgfgdfdfdfdf
Efficient Implementation of Self-Organizing Map for Sparse Input Data
LSTM Framework For Univariate Time series
Accelerated Logistic Regression on GPU(s)
C++ Data-flow Parallelism sounds great! But how practical is it? Let’s see ho...
Session 4 start coding Tensorflow 2.0
lecture_16.pptx
maXbox starter65 machinelearning3
Tractor Pulling on Data Warehouse
Generative modeling with Convolutional Neural Networks
Jörg Stelzer
supervised.pptx
Kaggle Winning Solution Xgboost algorithm -- Let us learn from its author
Ad

Recently uploaded (20)

PPTX
Slide gioi thieu VietinBank Quy 2 - 2025
PDF
Nante Industrial Plug Factory: Engineering Quality for Modern Power Applications
PPT
Lecture 3344;;,,(,(((((((((((((((((((((((
PDF
Keppel_Proposed Divestment of M1 Limited
PPTX
2025 Product Deck V1.0.pptxCATALOGTCLCIA
PDF
Outsourced Audit & Assurance in USA Why Globus Finanza is Your Trusted Choice
PPTX
Principles of Marketing, Industrial, Consumers,
PPTX
Astra-Investor- business Presentation (1).pptx
PDF
Comments on Crystal Cloud and Energy Star.pdf
PDF
Family Law: The Role of Communication in Mediation (www.kiu.ac.ug)
PDF
Cours de Système d'information about ERP.pdf
PDF
Charisse Litchman: A Maverick Making Neurological Care More Accessible
PDF
NISM Series V-A MFD Workbook v December 2024.khhhjtgvwevoypdnew one must use ...
PDF
Technical Architecture - Chainsys dataZap
PPTX
Board-Reporting-Package-by-Umbrex-5-23-23.pptx
PPTX
TRAINNING, DEVELOPMENT AND APPRAISAL.pptx
PDF
SIMNET Inc – 2023’s Most Trusted IT Services & Solution Provider
PDF
TyAnn Osborn: A Visionary Leader Shaping Corporate Workforce Dynamics
PDF
Booking.com The Global AI Sentiment Report 2025
PDF
pdfcoffee.com-opt-b1plus-sb-answers.pdfvi
Slide gioi thieu VietinBank Quy 2 - 2025
Nante Industrial Plug Factory: Engineering Quality for Modern Power Applications
Lecture 3344;;,,(,(((((((((((((((((((((((
Keppel_Proposed Divestment of M1 Limited
2025 Product Deck V1.0.pptxCATALOGTCLCIA
Outsourced Audit & Assurance in USA Why Globus Finanza is Your Trusted Choice
Principles of Marketing, Industrial, Consumers,
Astra-Investor- business Presentation (1).pptx
Comments on Crystal Cloud and Energy Star.pdf
Family Law: The Role of Communication in Mediation (www.kiu.ac.ug)
Cours de Système d'information about ERP.pdf
Charisse Litchman: A Maverick Making Neurological Care More Accessible
NISM Series V-A MFD Workbook v December 2024.khhhjtgvwevoypdnew one must use ...
Technical Architecture - Chainsys dataZap
Board-Reporting-Package-by-Umbrex-5-23-23.pptx
TRAINNING, DEVELOPMENT AND APPRAISAL.pptx
SIMNET Inc – 2023’s Most Trusted IT Services & Solution Provider
TyAnn Osborn: A Visionary Leader Shaping Corporate Workforce Dynamics
Booking.com The Global AI Sentiment Report 2025
pdfcoffee.com-opt-b1plus-sb-answers.pdfvi

HDDM: Hierarchical Bayesian estimation of the Drift Diffusion Model

  • 1. HDDM: Hierarchical Bayesian Drift-Diffusion Modeling Thomas V. Wiecki & Imri Sofer, Michael J. Frank
  • 3.  
  • 4.  
  • 5. Traditional model fitting Fitting separate models to each subject Fitting one model to all subjects e.g. DMAT, fast-dm, EZ Ignores similarities Ignores differences Subject 1 ... Subject n P( data 1 | θ 1 ) ... P( data n | θ n ) P( data| θ ) Subject 1 ... Subject n Subject 1 ... Subject n Subject 1 ... Subject n
  • 6. Hierarchical model estimation Subject 1 ... Subject n Group P( θ group |θ 1 , θ. , , θ n ) P(θ 1 |data, θ group ) ... P(θ n |data, θ group )
  • 7. Hierarchical Bayesian estimation Pro Adequately maps experimental structure onto model
  • 8. Needs less data for individual subject estimation
  • 9. Constraining of subject parameters (helps with extreme fits)
  • 10. Estimation of full posterior, not just maximum
  • 11. ... Contra Computationally expensive (sampling, e.g. MCMC)
  • 12. Correct model behavior can be hard to assess (e.g. chain convergence)
  • 13. Methods still in development
  • 14. Hierarchical Bayesian estimation (via PyMC) of parameters of the DDM in Python. Ratcliff, Vandekerckhove, Tuerlinckx, Lee, Wagenmakers Heavily optimized likelihood functions Navarro & Fuss (2009) likelihood
  • 15. Collapsed model for inter-trial variabilities Flexible creation of complex models tailored to specific hypotheses (e.g. separate drift-rate parameters for different stimulus types).
  • 16. Several convergence and goodness-of-fit diagnostics
  • 17. Validated : integrated tests check if parameters from simulated data can be recovered HDDM
  • 19. How to get your data into HDDM response, rt, subj_idx, difficulty 1, 1.06, 1, hard 1, 1.052, 1, hard 1, 1.398, 1, hard 0, 0.48, 1, easy 1, 1.798, 1, easy 1, 0.94, 1, easy 1, 2.093, 2, hard 1, 0.91, 2, hard 0, 1.019, 2, hard ...
  • 20. Model specification via configuration file [depends] v = difficulty [mcmc] samples=5000 burn=1000
  • 21. Model fitting $> hddmfit simple_difficulty.conf simple_difficulty.csv Creating model... Sampling: 100% [0000000000000000000000000000000000] Iterations: 5000 name mean std 2.5q 25q 50q 75q 97.5 mc_err a : 2.029 0.034 1.953 2.009 2.028 2.049 2.090 0.002 t : 0.297 0.007 0.282 0.292 0.297 0.302 0.311 0.001 v('easy',): 0.992 0.051 0.902 0.953 0.987 1.028 1.102 0.003 v('hard',): 0.522 0.049 0.429 0.485 0.514 0.561 0.612 0.002 logp: -1171.276303 DIC: 2329.069932 DIC without separate drift rates: 2373.395603
  • 22. Output statistics hard condition easy condition Error responses mirrored along y-axis.
  • 24. Python model creation import hddm # Load data from csv file into a NumPy structured array data = hddm.load_csv('simple_subj_data.csv') # Create a HDDM model multi object model = hddm.HDDM(data, depends_on={'v':'difficulty'}) # Create model and start MCMC sampling model.sample(5000, burn=2000) # Print fitted parameters and other model statistics model.print_stats() # Plot posterior distributions and theoretical RT distributions hddm.plot_posteriors(model) hddm.plot_post_pred(model)
  • 25. Trial-by-trial random effects Cavanagh, Wiecki et al (submitted)
  • 26. Upcoming features GPU optimized likelihood (~5x speed-up)
  • 29. Switch-task model Note to developers: it is very easy to add your own models to this framework!