Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

numerical integration for the Ratcliff Diffusion Model #24

Open
kiante-fernandez opened this issue Jun 19, 2023 · 1 comment
Open

numerical integration for the Ratcliff Diffusion Model #24

kiante-fernandez opened this issue Jun 19, 2023 · 1 comment

Comments

@kiante-fernandez
Copy link
Contributor

I am finishing up the DDM with across-trial variability in drift, starting point, and non-decision time.

For drift, you can use analytic integration of the likelihood function. See HDDM for a use case example. That works fine.

For the starting point and non-decision time, numerical integration is used (Ratcliff and Tuerlinckx, 2002). This part tends to be the most computationally expensive.

I am going to start with just coding up Simpson's Method. But I figured I would ask if you knew of some alternatives that are notoriously fast in Julia. I was looking at something like HCubature.jl or QuadGK.jl.

@itsdfish
Copy link
Owner

Thanks for taking the lead on this. From what I understand HCubature.jl is a good option. One thing to be aware of is that this type of numerical integration may not play well with automatic differentiation which is used for some MCMC samplers. My concern is that it might "blow up" the information that AD needs to track. It might be good to ask someone from Turing. This option we discussed in a previous issue might be more AD-friendly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants