Another Approximation of the First-Passage Time Densities for the Ratcliff Diffusion Decision Model

Kendal Foster, Henrik Singmann
4/5/2021
stat.AP

Official code: rtdists/fddm (19 stars, C++, last commit 2024-08-01).

Abstract

We present a novel method for approximating the probability density function (PDF) of the first-passage times in the Ratcliff diffusion decision model (DDM). We implemented this approximation method in $\texttt{C++}$ using the $\texttt{R}$ package $\texttt{Rcpp}$ to utilize the faster $\texttt{C++}$ language while maintaining the $\texttt{R}$ language interface.

Show full abstract

In addition to our novel approximation method, we also compiled all known approximation methods for the DDM density function (with fixed and variable drift rate), including previously unused combinations of techniques found in the relevant literature. We ported these approximation methods to $\texttt{C++}$ and optimized them to run in this new language. Given an acceptable error tolerance in the value of the PDF approximation, we benchmarked all of these approximation methods to compare their speed against each other and also against commonly used $\texttt{R}$ functions from the literature. The results of these tests show that our novel approximation method is not only orders of magnitude faster than the current standards, but it is also faster than all of the other approximation methods available even after translation and optimization to the faster $\texttt{C++}$ language. All of these approximation methods are bundled in the $\texttt{fddm}$ package for the $\texttt{R}$ statistical computing language; this package is available via CRAN, and the source code is available on GitHub.

View on arXivView PDF

Code Implementations(1)

rtdists/fddmOfficial100%

Fast Implementations of the Diffusion Decision Model's PDF

198C++, RJan 22, 20202 years ago

Similar Papers

Cite this paper

@article{foster2021another,
  title  = {Another Approximation of the First-Passage Time Densities for the Ratcliff Diffusion Decision Model},
  author = {Kendal Foster and Henrik Singmann},
  year   = {2021},
  eprint = {2104.01902},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2104.01902}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2104.01902.svg)](https://codeofpaper.com/paper/2104.01902)

Discussion