We describe a model for simulating a spontaneous electroencephalogram (EEG) and for simulating the effects of anesthesia on the EEG, to allow anesthesiologists and EEG technicians to learn and practice intraoperative EEG monitoring. For this purpose,