{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/another-approximation-of-the-first-passage","title":"Another Approximation of the First-Passage Time Densities for the Ratcliff Diffusion Decision Model","arxiv_id":"2104.01902","date":"2021-04-05","proceeding":null,"authors":["Kendal Foster","Henrik Singmann"],"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. 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.","url_abs":"https://arxiv.org/abs/2104.01902v1","url_pdf":"https://arxiv.org/pdf/2104.01902v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"links_only","authors_date_abstract":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license), from the Kaggle arXiv metadata snapshot of 2026-09-12"},"code_links":[{"paper_slug":"another-approximation-of-the-first-passage","repo_url":"https://github.com/rtdists/fddm","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"none","reach":null}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":null,"mcp":null,"developers":"https://syntology.ai/developers"},"arxiv_metadata":null,"syntology_extracted_results":null}