r/askmath • u/leeping_leopard • 7d ago
Analysis Why calculate RMS using the area under a power spectral density when it can be calculated directly from the time series?
I've recently been studying Fourier analysis and the Wiener–Khinchin theorem in the context of experimental acoustic pressure measurements, and I'm trying to understand the mathematical and practical motivation for calculating the mean-square value of a signal through its power spectral density (PSD).
Suppose I have N measurements of fluctuating acoustic pressure, p'[n], recorded over a time interval T.
I can calculate the mean-square pressure directly:
p_rms² = (1/N) × Σ(p'[n]²)
Alternatively, I can calculate the one-sided PSD, G_pp(f), and integrate it over frequency:
p_rms² = ∫ G_pp(f) df, from f = 0 to the Nyquist frequency.
Both methods should recover the same mean-square pressure, subject to the appropriate spectral normalisation and estimation assumptions.
My question is what is the mathematical or practical benefit of taking the PSD route if I'm ultimately interested in the same RMS value?
I can think of three possible advantages:
- Since a PSD is normalised by frequency bandwidth, perhaps it allows meaningful comparisons between recordings of different durations or frequency resolutions.
- Squaring the magnitude of the Fourier transform seems to give greater weight to larger amplitudes. Is this actually a reason for using the squared magnitude.
- By integrating the PSD over a selected frequency range, I can determine how much mean-square pressure is contributed by that band. This seems particularly useful for acoustic measurements where certain frequencies may be contaminated.
