ERPs work by using a statistical averaging techniques, that filters out extraneous brain activity from the original EEG recording, leaving only the responses that relate to say, the presentation of a specific stimulus or performance of a specific task.