Skip to main content
Springer Nature Link
Log in
Menu
Find a journal Publish with us Track your research
Search
Cart
  1. Home
  2. Behavior Research Methods, Instruments, & Computers
  3. Article

The efficient computation of the cumulative distribution and probability density functions in the diffusion model

  • Published: November 2004
  • Volume 36, pages 702–716, (2004)
  • Cite this article
Download PDF
Behavior Research Methods, Instruments, & Computers Aims and scope Submit manuscript
The efficient computation of the cumulative distribution and probability density functions in the diffusion model
Download PDF
  • Francis Tuerlinckx1 
  • 1654 Accesses

  • Explore all metrics

Abstract

An algorithm is described to efficiently compute the cumulative distribution and probability density functions of the diffusion process (Ratcliff, 1978) with trial-to-trial variability in mean drift rate, starting point, and residual reaction time. Some, but not all, of the integrals appearing in the model’s equations have closed-form solutions, and thus we can avoid computationally expensive numerical approximations. Depending on the number of quadrature nodes used for the remaining numerical integrations, the final algorithm is at least 10 times faster than a classical algorithm using only numerical integration, and the accuracy is slightly higher. Next, we discuss some special cases with an alternative distribution for the residual reaction time or with fewer than three parameters exhibiting trialto-trial variability.

Article PDF

Download to read the full article text

Similar content being viewed by others

The Seven-parameter Diffusion Model: an Implementation in Stan for Bayesian Analyses

Article Open access 28 August 2023

An Introduction to the Diffusion Model of Decision Making

Chapter © 2015

DstarM: an R package for analyzing two-choice reaction time data with the D∗M method

Article Open access 06 May 2019
Use our pre-submission checklist

Avoid common mistakes on your manuscript.

References

  • Abramowitz, M., &Stegun, I. (1974).Handbook of mathematical functions. New York: Dover.

    Google Scholar 

  • Acton, F. S. (1970).Numerical methods that work. New York: Harper & Row.

    Google Scholar 

  • Burden, R. L., &Faires, J. D. (1997).Numerical analysis (6th ed.). Pacific Grove, CA: Brooks/Cole.

    Google Scholar 

  • Cox, D. R., &Miller, H. D. (1970).The theory of stochastic processes. London: Methuen.

    Google Scholar 

  • Derenzo, S. E. (1977). Approximations for hand calculators using small integer coefficients.Mathematics of Computation,31, 214–225.

    Article  Google Scholar 

  • Golub, G. H., &Welsch, J. H. (1969). Calculation of Gauss quadrature rules.Mathematics of Computation,23,221–230.

    Article  Google Scholar 

  • Luce, R. D. (1986).Response times: Their role in inferring elementary mental organization. New York: Oxford University Press.

    Google Scholar 

  • Myung, I. J. (2003). Tutorial on maximum likelihood estimation.Journal of Mathematical Psychology,47, 90–100.

    Article  Google Scholar 

  • Naylor, J. C., &Smith, A. F. M. (1982). Applications of a method for the efficient computation of posterior distributions.Applied Statistics,31,214–225.

    Article  Google Scholar 

  • Nelder, J. A., &Mead, R. (1965). A simple method for function minimization.Computer Journal,7, 308–313.

    Google Scholar 

  • Press, W. H., Flannery, B. P., Teukolsky, S. A., &Vetterling, W. T. (1989).Numerical recipes: The art of scientific computing. Cambridge: Cambridge University Press.

    Google Scholar 

  • Prudnikov, A. P., Brychkov, Y. A., &Marichev, O. I. (1986).Integrals and series. Vol. 1: Elementary functions. New York: Gordon & Breach.

    Google Scholar 

  • Ratcliff, R. (1978). A theory of memory retrieval.Psychological Review,85,59–108.

    Article  Google Scholar 

  • Ratcliff, R., &Rouder, J. (1998). Modeling response times for two-choice decisions.Psychological Science,9,347–356.

    Article  Google Scholar 

  • Ratcliff, R., &Tuerlinckx, F. (2002). Estimating parameters of the diffusion model: Approaches to dealing with contaminant reaction times and parameter variability.Psychonomic Bulletin & Review,9,438–481.

    Article  Google Scholar 

  • Ratcliff, R., Van Zandt, T., &McKoon, G. (1999). Connectionist and diffusion models of reaction time.Psychological Review,106,261–300.

    Article  PubMed  Google Scholar 

  • Schwarz, W. (2001). The ex-Wald distribution as a descriptive model of response times.Behavior Research Methods, Instruments, & Computers,33,457–469.

    Article  Google Scholar 

  • Van Zandt, T. (2000). How to fit a response time distribution.Psychonomic Bulletin & Review,7,424–465.

    Article  Google Scholar 

  • Wagenmakers, E.-J., Grasman, R., & Molenaar, P. C. M. (2004).On the relation between the mean and the variance of a diffusion model response time distribution. Manuscript submitted for publication.

Download references

Author information

Authors and Affiliations

  1. Department of Psychology, University of Leuven, Tiensestraat 102, B-3000, Leuven, Belgium

    Francis Tuerlinckx

Authors
  1. Francis Tuerlinckx
    View author publications

    You can also search for this author in PubMed Google Scholar

Corresponding author

Correspondence to Francis Tuerlinckx.

Additional information

This work was supported by National Science Foundation Grant SES00-84368 and by the Fund for Scientific Research—Flanders.

Electronic supplementary material

Supplementary material, approximately 340 KB.

Rights and permissions

Reprints and permissions

About this article

Cite this article

Tuerlinckx, F. The efficient computation of the cumulative distribution and probability density functions in the diffusion model. Behavior Research Methods, Instruments, & Computers 36, 702–716 (2004). https://doi.org/10.3758/BF03206552

Download citation

  • Received: 30 June 2003

  • Accepted: 19 May 2004

  • Issue Date: November 2004

  • DOI: https://doi.org/10.3758/BF03206552

Share this article

Anyone you share the following link with will be able to read this content:

Sorry, a shareable link is not currently available for this article.

Provided by the Springer Nature SharedIt content-sharing initiative

Keywords

  • Diffusion Model
  • Drift Rate
  • Infinite Series
  • Response Time Distribution
  • Maximum Absolute Difference
Use our pre-submission checklist

Avoid common mistakes on your manuscript.

Advertisement

Search

Navigation

  • Find a journal
  • Publish with us
  • Track your research

Discover content

  • Journals A-Z
  • Books A-Z

Publish with us

  • Journal finder
  • Publish your research
  • Open access publishing

Products and services

  • Our products
  • Librarians
  • Societies
  • Partners and advertisers

Our imprints

  • Springer
  • Nature Portfolio
  • BMC
  • Palgrave Macmillan
  • Apress
  • Your US state privacy rights
  • Accessibility statement
  • Terms and conditions
  • Privacy policy
  • Help and support
  • Cancel contracts here

65.109.116.201

Not affiliated

Springer Nature

© 2025 Springer Nature