Part 1 focuses on the basics of filtering in the frequency domain. You will learn to:
Compare the frequency content of an ERP waveform with the frequency response function of a filter to predict how well the filter will attenuate the noise in the data
Identify filter distortions
Choose filter settings that will work reasonably well for most experiments
Part 2 focuses on how filtering works in the time domain. You will learn to:
Determine the impulse response function of a filter and conceptualize filtering as a process that replaces each point in the unfiltered waveform with a scaled-and-shifted copy of this function
Think of an ERP waveform as a series of impulses, one at each time point
Predict how a filter will distort an ERP waveform on the basis of the filter’s impulse response function
Part 3 focuses on how to choose the optimal filter settings for a given type of study. You will learn to:
Conceptualize what it means for a filter to be optimal
Create artificial waveforms that resemble an experimental effect
Quantify the waveform distortion that occurs when a set of filters is applied to the artificial waveform
Quantify the improvement in data quality produced by each of a set of filters
Choose a filter that best balances data quality with waveform distortion
You must use filters in ERP experiments. At a minimum, your amplifier’s hardware includes an antialiasing filter that must be used prior to digitizing the EEG. In almost all ERP experiments, additional filtering is important for reducing sources of noise that would otherwise create large measurement error and reduce your statistical power. However, when filters are misused, they can dramatically distort your data, leading to incorrect conclusions. As a result, it’s vitally important that you understand how filters work and the conditions under which they can significantly distort your ERP waveforms.
Consider, for example, the waveforms shown below in Figure 4.1. This is a simulation of an experiment in which there are two conditions, A and B. If you were to describe these results in a journal article, you might say that both the N1 and P2 components are larger in Condition B than in Condition A. Or you might be more careful and say that there is greater extended negativity in Condition B than in Condition A up until the peak of the N1 wave, along with a greater positivity in the P2 latency range for condition B than for Condition A. But both of these descriptions contain a clear falsehood that is a result of filtering.
Figure 4.1. Simulation of an experiment with two conditions, A and B.
These waveforms were filtered using a combination of a 1 Hz high-pass filter and a 10 Hz low-pass filter (with a roll-off of 48 dB/octave). These would be somewhat unusual filter settings in some areas of research, but they would be fairly typical in others. And these filter settings created a completely artifactual effect in the early part of the waveform in Figure 4.1. I know with 100% certainty that the early effect is artifactual, because I simulated these waveforms so I know what the true effect is. These waveforms consist of a P1, an N1, and a P2, and the amplitude of the P2 is 50% larger in Condition B than in Condition A. The true effect does not contain a more negative voltage in Condition B than in Condition A at any time point. The more negative voltage prior to the N1 peak for Condition B in the filtered waveform is entirely an artifact of filtering.
Can you imagine publishing a paper with these waveforms, concluding that there is a greater negativity for Condition B than for Condition A in the first part of the waveform, and later seeing a paper from another group of researchers demonstrating that your conclusion was based on a filtering artifact? That would be incredibly embarrassing. This sort of thing has actually happened. I don’t want it to happen to you, so this chapter takes a deep dive into how filters work in the time domain. You may already know how they work in the frequency domain, but ERPs are a time-domain phenomenon, and it is essential for ERP researchers to understand how filters work in the time domain.
This chapter is divided into three parts. The first part (sections 4.1-4.5) provides some basic information about filters, including some practical recommendations for filter settings that work reasonably well for many kinds of ERP research. The second part (sections 4.6-4.10) is more theoretical and is designed to provide you with an intuitive understanding of how filters work in the time domain. The third part (sections 4.11-4.16) is more practical and shows you how you can determine the optimal filter settings for your research with the help of some of the tools included in ERPLAB.
If you are new to ERPs, I would recommend reading only the first part now. Once you have more experience, you can come back and read the second and third parts.
If you already have substantial ERP experience, I recommend that you read at least the first two parts. If you do research that yields relatively clean data (i.e., with cooperative participants, lots of trials, a gel-based EEG recording system, and a low-noise recording environment), you can skip the third part. But if you must deal with very noisy data, the third part will be important for you.