Station 0 · Lesson 1

Where the EEG signal comes from

Core10 minBefore this lesson: No earlier lesson needed.Print the card

The idea in brief

Electroencephalography (EEGA recording of the brain's electrical activity from electrodes on the scalp.) records very small differences in electrical voltage between electrodes on the scalp. These differences are measured in microvolts (µV), millionths of a volt.

Before and after

Three panels: one pyramidal cell with current along its dendrite, a row of parallel cells under the meninges, skull and scalp, and a scalp electrode that picks up a tiny wave when the cells' timing is random and a large wave when they are synchronized.
What does this show?

Notice in the third panel that the number of cells did not change between the two traces. Only the timing changed. When cells work together their signals add up; when each works at a different time they cancel each other out.

Your next questions, each answered in its own section:

Why do I need this step?

The reasons in detail, and the terms you need

Every decision you make later in EEGLAB depends on knowing where this signalValues that change over time, such as the voltage recorded on a channel. comes from: why you pick a certain referenceThe point against which each channel's voltage is measured., why ICAA method that separates the recording into independent sources, some brain and some artifact. can separate blinks from brain activity, and why electrodeThe physical sensor placed on the scalp to pick up the signal. Cz does not tell you exactly what happens right under it.

The idea in two lines: an electrode does not hear one cell. It hears the sum of millions of cells working together at the same time, plus any other electrical signal from the body or the room.

How do I do it in EEGLAB?

There are no EEGLAB steps in this lesson, because it explains what the signal measures before you open it.

You will meet this idea in the GUIThe windows and menus used with the mouse instead of typed commands. later in three places: when you first scroll through the signal in microvolts in the GUI lesson, when you choose a reference in the re-referencingChanging the reference after recording by expressing voltages relative to a new one. lesson, and when you read ICA components that separate brain activity from blinks and muscleHigh-frequency electrical activity from muscles, often jaw and neck..

How do I write it as code?

The same steps in 17 lines of MATLAB

This scriptA MATLAB file of commands that runs processing steps in order. is optional. Run it after the MATLAB basics lesson if you want to see the idea in numbers. It does not need EEGLAB.

The script adds up 1000 small sources, each oscillating at 10 Hz. The first time, each source starts at a random time. The second time, they all start together.

MATLAB
% Sum of many small sources: random timing vs. synchronized timing
nSources = 1000;              % number of small sources
srate    = 128;               % samples per second
t        = 0:1/srate:2;       % 2 seconds of time
f        = 10;                % frequency in Hz (alpha range)

% Each source gets its own random phase (its own timing)
phases   = 2*pi*rand(nSources, 1);
asyncSum = sum(sin(2*pi*f*t + phases), 1);

% All sources share the same phase
syncSum  = sum(sin(2*pi*f*t + zeros(nSources, 1)), 1);

fprintf('Peak of random-timing sum: %.0f\n', max(abs(asyncSum)));
fprintf('Peak of synchronized sum:  %.0f\n', max(abs(syncSum)));

figure;
plot(t, syncSum); hold on;
plot(t, asyncSum);
xlabel('Time (s)'); ylabel('Summed amplitude (a.u.)');
legend('Synchronized', 'Random timing');
  • The peak of the synchronized sum is 1000, exactly the number of sources.
  • The peak of the random-timing sum is much smaller, usually between 10 and 50, about 28 on average. The number changes on every run because the phases are random, but it stays close to the square root of the number of sources, not the number itself.
  • Simplification: real cells do not oscillate as pure sine waves, and the skull weakens and spreads the signal. But the rule “synchrony makes the signal bigger” holds.

Which value should I choose?

Suitable values for your analysis goal

There is no value to choose in this lesson. Instead, this table sums up what reaches the electrode and what does not. Come back to it when you first look at the signal.

SourceDoes it show up in EEG?Why
Postsynaptic potentials in cortical pyramidal cellsYes, this is the main brain signalThey last tens of milliseconds, so they overlap across many cells. Pyramidal cells are parallel and point toward the surface, so their currents add up instead of canceling (Luck, Appendix 1; Buzsáki et al. 2012).
Action potentialsAlmost neverVery short (about 1 ms), so they rarely line up across many cells precisely enough. Luck notes that we cannot ordinarily pick them up from the scalp.
A single cellNoIts signal is far too small to be seen from outside the skull. A huge number of cells must be active together.
Deep brain structuresVery weakThe large distance weakens the signal a lot, and many of them do not arrange their cells in a way that adds up currents.
Eye blinks and eye movementsYes, stronglyThe eye carries an electrical charge, and moving it creates a signal much larger than brain activity at frontal electrodes.
Muscles (jaw, neck, forehead)YesThey appear as fast, high-frequencyThe number of cycles per second, measured in hertz (Hz). noiseAny part of the recording that does not carry the information we want..
HeartSometimesA regular beat that shows up in some channels.
powerThe squared amplitude; how strong a signal is at a given frequency. lineYesA steady peak at 60 Hz in Saudi Arabia and the US, and at 50 Hz in Europe and most other Arab countries.

Everything in the table that is not brain activity is called an artifact: a non-brain signal mixed into the recording. Stations 3 and 4 are about removing it.

How do I check it worked?

4 quick checks

Answer each question in your own words before reading the answer after it.

  • Why does EEG not usually pick up action potentials? Answer: they are very short, so they do not line up across many cells precisely enough for their sum to reach the scalp.
  • What two conditions make pyramidal cell signals add up? Answer: the cells must be parallel and point the same way, and they must be active at the same time.
  • A very large wave lasting about half a second appears at Fp1. Is it most likely from the brain? Answer: no. Fp1 is above the left eye, and a large, short wave there is a typical sign of an eye blink. You will learn to identify it in station 4.
  • Does electrode Oz measure the visual cortex alone? Answer: no. Current spreads before it reaches the scalp, so the electrode can pick up activity from distant regions.

What mistakes do people make?

5 mistakes and how to avoid them
  • Thinking EEG records neurons “firing”. What reaches the scalp is mainly postsynaptic potentials, not action potentials. So EEG does not directly measure how often cells fire.
  • Thinking each electrode measures only the brain under it. Current spreads through the brain, fluids and skull before it reaches the scalp. So an electrode can pick up activity from a distant region (Luck, Appendix 1). Electrode Oz does not mean “visual cortex only”.
  • Thinking everything you see is brain activity. Blinks, muscles and power lines appear in the recording, and are sometimes much larger than the brain signal.
  • Thinking the voltage at an electrode is absolute. Every channel is the voltage difference between an electrode and a reference electrode. There is no place on the body with zero voltage, so the reference affects every channel (Luck, Appendix 1). This is the topic of the re-referencing lesson.
  • Thinking a bigger signal means more activity. Amplitude also depends on synchrony. The same number of cells can give a large signal when synchronized and a small one when not (Cohen 2017).

Where can I read more?

4 sources, official docs first

Written for EEGLAB 2026.1 · 2026-10-27

Need help?

Ask, share feedback, or report an error