What happens when a continuous signal is sampled below its Nyquist rate?
Think about what happens when you sample too slowly compared to the signal's highest frequency.
Sampling below the Nyquist rate causes aliasing, where high-frequency components appear as lower frequencies, making signals indistinguishable.
What is the output of the following Python code that samples a sine wave below its Nyquist rate?
import numpy as np import matplotlib.pyplot as plt fs = 5 # Sampling frequency (Hz) T = 1/fs t = np.linspace(0, 1, 6) f_signal = 6 # Signal frequency (Hz) signal = np.sin(2 * np.pi * f_signal * t) print(signal.round(2))
Consider the effect of sampling a 6 Hz signal at 5 Hz.
Sampling a 6 Hz sine wave at 5 Hz causes aliasing, making it appear as a 1 Hz sine wave with the output shown in option D.
Given a 10 Hz sine wave sampled at 15 Hz, which output array shows the effect of applying a low-pass filter before sampling to prevent aliasing?
import numpy as np from scipy.signal import butter, filtfilt fs = 15 T = 1/fs t = np.arange(0, 1, T) f_signal = 10 signal = np.sin(2 * np.pi * f_signal * t) # Butterworth low-pass filter with cutoff 7 Hz b, a = butter(4, 7/(fs/2), btype='low') filtered_signal = filtfilt(b, a, signal) print(filtered_signal[:6].round(2))
Think about how a low-pass filter reduces high-frequency components before sampling.
The low-pass filter reduces the amplitude of the 10 Hz signal components, resulting in the smaller values shown in option A, which helps prevent aliasing.
Which plot correctly shows aliasing when a 12 Hz sine wave is sampled at 15 Hz?
Options show four line plots labeled A, B, C, and D.
Recall that aliasing causes high frequencies to appear as lower frequencies after sampling.
Sampling a 12 Hz signal at 15 Hz causes aliasing, making it appear as a 3 Hz sine wave, which is shown in plot A.
You need to sample a signal containing frequencies up to 20 kHz. Which combination of sampling frequency and anti-aliasing filter cutoff frequency will prevent aliasing?
Remember the Nyquist theorem and that the filter cutoff should be less than half the sampling frequency.
To prevent aliasing, the sampling frequency must be at least twice the highest signal frequency (≥40 kHz), and the anti-aliasing filter cutoff must be below half the sampling frequency. Option B meets both conditions.
