Digital Signal Processing Basics
At a sampling frequency of 8 kHz, a moving-average filter y[n] = (x[n] + x[n − 1] + … + x[n − 7])/8 averages the latest 8 samples. Which of the following is the lowest frequency at which its output is 0?
- A500 Hz
- B1 kHz
- C4 kHz
Show answer and explanation
Answer: B. 1 kHz
The gain of an N-sample moving average is (1 + 1 + … + 1)/N = 1 at DC, and it is 0 at integer multiples of fs/N (other than DC). A sine wave at fs/N = 8000 ÷ 8 = 1 kHz completes exactly one cycle in 8 samples, so its average is 0. The moving average is a simple low-pass filter, but it has side lobes where the gain rises again between the nulls, so its cutoff is not very steep.
- A. This is fs/(2N) = 8000 ÷ 16. The first null is at fs/N.
- B. Correct. At 1 kHz one cycle takes 8 samples, so the average is 0.
- C. This is the Nyquist frequency. The output is 0 here too, but the lowest null is at 1 kHz.