7 minutes · Browser simulation
Reveal an EEG response by averaging trials
Compare simulated trials and see how alignment and averaging reveal a response to a target sound.
An event-related potential (ERP) is a change in the EEG signal associated with an event. In this simulation, a participant listens to frequent tones and pays attention to a rarer target tone. Each trial shows a short window around a sound.
- Start with one trial per condition. Can you distinguish the target response from the background activity?
- Increase to 64 trials. Compare the two traces from 260 to 440 ms after sound onset.
- Turn alignment off. Compare the gap between the traces when zero marks the scheduled sound time instead of the actual onset.
Compare responses to the two tones
260–440 ms window
Mean difference, target minus frequent-1.1 µV
How the simulation works
Each trial combines background rhythms with varying phases and a simplified positive wave centered 360 ms after the sound. The wave is larger for the target tone. Actual onset varies around the scheduled time. The lab averages equal numbers of trials per condition, one time point at a time.
What averaging reveals
Averaging reduces some activity that varies between trials. Aligning at actual sound onset preserves the sound-locked response. The model’s values illustrate the method. Timing and amplitude can vary in real recordings.