The Drift Diffusion Model in Javascript

A lot of times when we're modeling decision making, we model decisions with something like a softmax function. This, however, doesn't take into account the computational difficulty in making decisions. How do we model differing reaction times in making a decision?

Enter the drift diffusion model. The drift diffusion model basically models decisions as a Gaussian random walk with a stopping time. Here I've included a tool that will allow you to play around with a drift diffusion model.

0100200300400-505 1447225443362322000211000050100150200250300350400450500 0113721304200312001010002050100150200250300350400450500
correctincorrectnone0%10%20%30%40%50%60%70%80%90%100%Frequency
Threshold:

Drift:

Simulations:

Maxtime: