4.6  Mean-square (MS) spectrum

The PSD is very useful especially when dealing with random signals and the power of the signal over a frequency range is obtained by integrating the PSD over that range. However, in some cases it is desired to use a function that allows to directly infer the average power of sinusoid components of a periodic signal, without the integration step. In these cases, the so-called MS or power spectrum is more convenient.9 However, in applications characterized by a mixed signal in which there is a deterministic signal of interest that is contaminated by random noise (such as sinusoids contaminated by AWGN), the PSD representation is often more convenient than the MS spectrum.

While in continuous-time the PSD S(f) unit is watts/Hz, the mean-square spectrum is given directly in watts. Assuming a signal with fundamental period N0 samples, the mean-square spectrum corresponds to the squared magnitude of the corresponding DTFS:

Sms[k] = |DTFS{x[n]}|2,
(4.35)

with the property

k=0N0 1Sms[k] = P,
(4.36)

where P is the signal power.

Recall from the discussion associated to Eq. (2.49) that, if x[n] is periodic with fundamental period N0, its DTFS X~[k] can be obtained with an N0-point FFT:

X~[k] = FFT{x[n]} N0 .
(4.37)

One often uses Eq. (4.37) even for a non-periodic x[n], but then the result spectrum must be properly interpreted: as if the signal were a periodic version p=xN[n pN] of the windowed version xN[n] of x[n] using N samples.

If the FFT size N is chosen to be equal to the period N0, i. e. N = N0, the k-th FFT value in Eq. (4.37) corresponds exactly to the k-th DTFS coefficient, that is, they both represent the same frequency k(2πN) = k(2πN0). In case NN0, Eq. (4.36) is still a valid way to obtain the average power P, but the k-th bin frequency Ωk must be interpreted according to the FFT grid as Ωk = k(2πN).

In general, an estimate Ŝms[k] of the MS spectrum of a discrete-time signal x[n] can be obtained from its N-length windowed version xN[n] with

Ŝms[k] = |FFT{xN[n]} N |2
(4.38)

and

k=0N1Ŝms[k] = P.
(4.39)

The “hat” in Ŝms[k] indicates that in general, Eq. (4.38) is an estimate of the true MS spectrum.