4.6  Mean-square (MS) spectrum

As discussed, the PSD is particularly useful when dealing with random signals, since the signal power over a given frequency range is obtained by integrating the PSD over that range.

In some situations, however, it is preferable to use a representation that allows direct inference of the average power of the sinusoidal components of a periodic signal, without requiring integration. In such cases, the so-called mean-square (MS) or power spectrum is more convenient.9

On the other hand, in applications involving mixed signals, where a deterministic component of interest is contaminated by random noise (e.g., sinusoids corrupted by additive white Gaussian noise, AWGN), the PSD representation is often more appropriate than the MS spectrum.

While in continuous-time the PSD S(f) unit is watts/Hz, the mean-square spectrum Sms[k] 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 = Nfft samples.

If the FFT size Nfft is chosen to be equal to the period N0, i. e. Nfft = 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πNfft) = k(2πN0). In case NfftN0, 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πNfft).

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)

where Nfft = N, and then

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.