DDM explorer
Companion to Simulating data from a cognitive model (Day 2, 14:00)
Two sliders, 136 precomputed simulations of 4,000 trials each. Watch what happens to the two response-time distributions as you move drift rate and boundary separation. The area under each curve is that boundary’s share of the trials, so the split you see is the accuracy.
Three things worth provoking deliberately
- Set v = 0. Both curves become identical and the split goes to 50/50 — drift is the only thing here that breaks the symmetry.
- Push v to 2 with a small. Errors nearly vanish and the distribution gets very tight. Remember this setting: it is the pathological design dissected in the next session.
- Raise a at fixed v. Accuracy improves and everything slows down. That single trade-off is the speed-accuracy trade-off, in one knob.
NoteWhy precomputed rather than live
ssm-simulators is Cython — cssm ships compiled extension modules — so it cannot run in a browser, and this website never executes Python. The sliders therefore select among simulations run ahead of time by _src/precompute_ddm_grid.py (a 17 × 8 grid over drift and boundary separation, 78 KB of JSON). Regenerate with:
cd tutorials && uv run python day2_bayes_toolkit/_src/precompute_ddm_grid.py