PhysSandbox
Classical MechanicsWaves & SoundElectricity & MagnetismOptics & LightGravity & OrbitsLabs
🌙Astronomy & The Sky🌡️Thermodynamics🌍Biophysics, Fluids & Geoscience📐Math Visualization🔧Engineering🧪Chemistry

Related simulators

Similar topics nearby (including related fields) — or browse all 50 in Biophysics, Fluids & Geoscience.

View category →
NewUniversity / research

Kalman Filter (1-D)

Launch Simulator

Recursive optimal estimation: noisy measurements, hidden truth, predict + update with Q and R; random-walk or constant-velocity model with ±2σ band and innovations.

NewSchool

Random Walk (2D / 3D Lattice)

Launch Simulator

Nearest-neighbor SRW on Z² or Z³: ensemble mean ⟨r²⟩ vs time with y = t reference, histogram of r² across walkers, and Monte Carlo first-return times (recurrent vs transient).

NewSchool

Brownian Motion

Launch Simulator

Heavy particle with random kicks and friction; trail and running ⟨r²⟩ vs time.

NewUniversity / research

Reaction-Diffusion Turing Patterns

Launch Simulator

Activator-inhibitor reaction-diffusion toy with spots, stripes, worms presets, diffusion ratio, and schematic dispersion relation.

NewUniversity / research

Cable Equation on an Axon

Launch Simulator

1D passive cable ∂V/∂t = D∂²V/∂x² − (V−V_r)/τ + I; compare uniform fiber vs myelinated (higher D in internodes).

NewUniversity / research

Hardy-Weinberg Population Genetics

Launch Simulator

Allele frequency p, p²/2pq/q² genotype frequencies, plus selection, mutation, and genetic drift toy trajectories.

PhysSandbox

Interactive physics, chemistry, and engineering simulators for students, teachers, and curious minds.

Physics

  • Classical Mechanics
  • Waves & Sound
  • Electricity & Magnetism

Science

  • Optics & Light
  • Gravity & Orbits
  • Astronomy & The Sky

More

  • Thermodynamics
  • Biophysics, Fluids & Geoscience
  • Math Visualization
  • Engineering
  • Chemistry

© 2026 PhysSandbox. Free interactive science simulators.

PrivacyTermsContact
Home/Biophysics, Fluids & Geoscience/Drift-Diffusion Reaction Time

Drift-Diffusion Reaction Time

Evidence accumulator to ±a bounds: drift, noise, starting bias, RT histograms, accuracy, and speed–accuracy tradeoff.

Drift–diffusion (DDM)

1
1
1
0
0.1 s
2×

x is a decision variable, not a physical particle. Raising a moves the SAT marker: higher accuracy, longer mean RT. Analytic P and ⟨T⟩ overlays use z = 0; cards use the current start z. σ is kept > 0 and |z| < a.

Shortcuts

  • •Space / P — pause live trials · R — reset histogram and reseed

Measured values

Empirical P(correct)—
Analytic P(correct)0.881
Mean RT (emp.)—s
Mean RT (analytic)0.862s
Trials in histogram0
Current x0.000

About this model

The drift–diffusion model accumulates noisy evidence x with dx=v dt+σ dW until it hits absorbing bounds +a (correct) or −a (error). A starting point z encodes bias. Drift v is stimulus strength; bound height a sets the speed–accuracy tradeoff: larger a means slower, more accurate choices. The page runs a live trial and a Monte-Carlo histogram of reaction times, and can overlay the closed-form accuracy and mean decision time for the unbiased Wiener process.

Who it's for: Cognitive psychology, computational neuroscience, and decision-science courses on reaction time.

Key terms

  • Drift-diffusion model
  • Evidence accumulation
  • Decision bound
  • Bias
  • Reaction time
  • Speed-accuracy tradeoff

How it works

Cognitive drift–diffusion: evidence x races to absorbing bounds ±a. Drift, noise, and starting bias set accuracy and reaction time; bound height a is the speed–accuracy tradeoff.

Key equations

dx = v dt + σ dW · x(0) = z, |z| < a · absorb at ±a
P(+a | z=0) = 1 / (1 + exp(−2 a v / σ²)) · v = 0 → 1/2
|v| > 0: T = (a / v) tanh(a v / σ²) · v ≈ 0: T = a² / σ²
Displayed RT = T + Tnd (Tnd ≥ 0 non-decision time)

Frequently asked questions

Is this diffusion of particles or heat?
No. x is a psychological decision variable. The mathematics is the same Wiener process, but the absorbing bounds are “choose A” versus “choose B”, and the hitting time is reaction time.
How does starting bias z change behavior?
Starting closer to +a shortens correct RTs and raises the correct-choice rate even when v=0. It models prior expectation or payoff imbalance.
What is the speed–accuracy tradeoff here?
Raising a (or lowering σ) increases accuracy toward 1 but lengthens mean RT roughly like (a/v) tanh(av/σ²) for v≠0. Lowering a does the reverse — fast, error-prone choices.