You have a frequency spectrum plot showing peaks at 50 Hz, 120 Hz, and 300 Hz. The peak at 120 Hz is the tallest. What does this tell you about the signal?
The tallest peak in a frequency spectrum shows the strongest frequency component.
The frequency with the highest peak in the spectrum represents the dominant frequency in the signal.
Given a sampled signal with 8 points: [1, 0, -1, 0, 1, 0, -1, 0], the FFT output magnitudes are approximately [0, 4, 0, 0, 0, 0, 0, 4]. Which frequencies are present in the signal?
import numpy as np signal = np.array([1, 0, -1, 0, 1, 0, -1, 0]) fft_vals = np.fft.fft(signal) magnitudes = np.abs(fft_vals) print(magnitudes)
FFT bins correspond to frequency components; non-zero magnitudes indicate presence.
Non-zero magnitudes at bins 1 and 7 show those frequency components exist in the signal.
Which plot best shows the effect of applying a Hamming window before FFT on a signal with two close frequencies?
Windowing reduces spectral leakage and helps separate close frequencies.
Applying a Hamming window reduces leakage, making two close frequencies appear as distinct sharp peaks.
Consider this code to plot frequency spectrum of a signal sampled at 1000 Hz:
import numpy as np import matplotlib.pyplot as plt signal = np.sin(2 * np.pi * 50 * np.linspace(0, 1, 1000)) fft_vals = np.fft.fft(signal) freqs = np.fft.fftfreq(len(signal)) plt.plot(freqs, np.abs(fft_vals)) plt.show()
What is wrong with the frequency axis?
Check how np.fft.fftfreq uses the sampling rate parameter.
np.fft.fftfreq requires the sampling interval to calculate correct frequency values. Without it, frequencies are normalized and incorrect.
You have a time series signal sampled at 500 Hz. The frequency spectrum shows a strong peak at 5 Hz and smaller peaks at multiples of 5 Hz. What does this indicate about the signal?
Harmonics are multiples of a fundamental frequency indicating periodicity.
Strong peak at 5 Hz and smaller peaks at multiples show a periodic signal with fundamental frequency 5 Hz and its harmonics.
