Cargando…
A method, framework, and tutorial for efficiently simulating models of decision-making
Evidence accumulation models (EAMs) have become the dominant models of rapid decision-making. Several variants of these models have been proposed, ranging from the simple linear ballistic accumulator (LBA) to the more complex leaky-competing accumulator (LCA), and further extensions that include tim...
Autor principal: | |
---|---|
Formato: | Online Artículo Texto |
Lenguaje: | English |
Publicado: |
Springer US
2019
|
Materias: | |
Acceso en línea: | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6797646/ https://www.ncbi.nlm.nih.gov/pubmed/30924105 http://dx.doi.org/10.3758/s13428-019-01219-z |
_version_ | 1783459875767975936 |
---|---|
author | Evans, Nathan J. |
author_facet | Evans, Nathan J. |
author_sort | Evans, Nathan J. |
collection | PubMed |
description | Evidence accumulation models (EAMs) have become the dominant models of rapid decision-making. Several variants of these models have been proposed, ranging from the simple linear ballistic accumulator (LBA) to the more complex leaky-competing accumulator (LCA), and further extensions that include time-varying rates of evidence accumulation or decision thresholds. Although applications of the simpler variants have been widespread, applications of the more complex models have been fewer, largely due to their intractable likelihood function and the computational cost of mass simulation. Here, I present a framework for efficiently fitting complex EAMs, which uses a new, efficient method of simulating these models. I find that the majority of simulation time is taken up by random number generation (RNG) from the normal distribution, needed for the stochastic noise of the differential equation. To reduce this inefficiency, I propose using the well-known concept within computer science of “look-up tables” (LUTs) as an approximation to the inverse cumulative density function (iCDF) method of RNG, which I call “LUT-iCDF”. I show that when using an appropriately sized LUT, simulations using LUT-iCDF closely match those from the standard RNG method in R. My framework, which I provide a detailed tutorial on how to implement, includes C code for 12 different variants of EAMs using the LUT-iCDF method, and should make the implementation of complex EAMs easier and faster. |
format | Online Article Text |
id | pubmed-6797646 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2019 |
publisher | Springer US |
record_format | MEDLINE/PubMed |
spelling | pubmed-67976462019-11-01 A method, framework, and tutorial for efficiently simulating models of decision-making Evans, Nathan J. Behav Res Methods Article Evidence accumulation models (EAMs) have become the dominant models of rapid decision-making. Several variants of these models have been proposed, ranging from the simple linear ballistic accumulator (LBA) to the more complex leaky-competing accumulator (LCA), and further extensions that include time-varying rates of evidence accumulation or decision thresholds. Although applications of the simpler variants have been widespread, applications of the more complex models have been fewer, largely due to their intractable likelihood function and the computational cost of mass simulation. Here, I present a framework for efficiently fitting complex EAMs, which uses a new, efficient method of simulating these models. I find that the majority of simulation time is taken up by random number generation (RNG) from the normal distribution, needed for the stochastic noise of the differential equation. To reduce this inefficiency, I propose using the well-known concept within computer science of “look-up tables” (LUTs) as an approximation to the inverse cumulative density function (iCDF) method of RNG, which I call “LUT-iCDF”. I show that when using an appropriately sized LUT, simulations using LUT-iCDF closely match those from the standard RNG method in R. My framework, which I provide a detailed tutorial on how to implement, includes C code for 12 different variants of EAMs using the LUT-iCDF method, and should make the implementation of complex EAMs easier and faster. Springer US 2019-03-28 2019 /pmc/articles/PMC6797646/ /pubmed/30924105 http://dx.doi.org/10.3758/s13428-019-01219-z Text en © The Author(s) 2019 Open Access This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. |
spellingShingle | Article Evans, Nathan J. A method, framework, and tutorial for efficiently simulating models of decision-making |
title | A method, framework, and tutorial for efficiently simulating models of decision-making |
title_full | A method, framework, and tutorial for efficiently simulating models of decision-making |
title_fullStr | A method, framework, and tutorial for efficiently simulating models of decision-making |
title_full_unstemmed | A method, framework, and tutorial for efficiently simulating models of decision-making |
title_short | A method, framework, and tutorial for efficiently simulating models of decision-making |
title_sort | method, framework, and tutorial for efficiently simulating models of decision-making |
topic | Article |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6797646/ https://www.ncbi.nlm.nih.gov/pubmed/30924105 http://dx.doi.org/10.3758/s13428-019-01219-z |
work_keys_str_mv | AT evansnathanj amethodframeworkandtutorialforefficientlysimulatingmodelsofdecisionmaking AT evansnathanj methodframeworkandtutorialforefficientlysimulatingmodelsofdecisionmaking |