Saturday, 23 April 2016

psd - Power spectral density vs. FFT bin magnitude


What's the difference between these? Both are measurements of some form of signal power, but surely there's some difference between the power they are measuring?



Answer



The fast Fourier transform (FFT) algorithms are fast algorithms for computing the discrete Fourier transform (DFT). This is achieved by successive decomposition of the N-point DFT into smaller-block DFT, and taking advantage of periodicity and symmetry.


Now, the N-point DFT of a sequence {x[0],x[1],,x[N1]} is: X(fk)=N1n=0x[n]exp(j2πfkn)

For fk=k/N and k=0,1,,N1. And the FFT magnitude at bin k is the DFTmagnitude at bin k. For a given N that is:


|X(fk)|=|X(kN)|=|X(k)|=|N1n=0x[n]exp(j2πnk/N)|


You talk about power spectral estimation when the signals being analyzed are characterized as random processes. With random fluctuations in such signals, statistical characteristics and average characteristics are normally adopted. For a wide sense stationary (WSS) discrete random process, the PSD is defined as:


P(f)=m=rxx[m]exp(j2πfm)


For reasons you can find in this answer, you see that the squared magnitude of the signal's DFT is taken as the estimate of the PSD in most practical situations. One form, among other variations/methods, is:


P(fk)=1N|N1n=0x[n]exp(j2πfkn)|2




What's the difference between these?



Comparing (2) and (4), you have:


P(fk)=1N|X(fk)|2


From the bin number k to frequency in Hz, F=FsNk


For more reading on PSD estimation check this question, that question, and this question.


EDIT:


The power spectral density, PSD, describes how the power of your signal is distributed over frequency whilst the DFT shows the spectral content of your signal, the amplitude and phase of harmonics in your signal. You pick one or the other depending on what you want to observe/analyze. And no they're not the same as you can see from the equations above and links given. Their spectra are generally not the same. One is estimated as the squared magnitude of the other.


No comments:

Post a Comment

readings - Appending 内 to a company name is read ない or うち?

For example, if I say マイクロソフト内のパートナーシップは強いです, is the 内 here read as うち or ない? Answer 「内」 in the form: 「Proper Noun + 内」 is always read 「ない...