An EEG is a test which measures the electrical activity of the brain. It is used to diagnose epilepsy, among other things.
How does it work?