Lingo

ERP Construction & Averaging Simulator

Build a single-trial EEG, inject artefacts, and watch what averaging does — and does not — remove.

Stimulus evidence

Higher coherence means stronger, faster evidence — the DDM drift rate.

50%
01
380 ms
200600

Averaging

Each trial adds independent noise. Averaging cancels it as 1/√N.

40
1200

Artefacts

Turn these on to see what the average looks like before cleaning.

0
01
0
01
0
01
0
01

Grand Average ERP

Red is a single contaminated trial; blue is the average of 40. Negativity is plotted downward, following the usual convention.

1.70Drift rate v
6.1 µVNoise before averaging
1.0 µVNoise after averaging
6.3×Noise reduction

What to watch. Raising evidence compresses every latency and scales the P300 — the signature a diffusion model predicts. Artefacts are trial-locked, so averaging does not remove them: blink, muscle, and hum all survive the average, which is why they must be removed before averaging rather than after.