4.5  Filtering Random Signals and the Impact on PSDs

This section investigates the result of processing a random input signal through a system, and how the output PSD relates to the input.

4.5.1  Response of LTI systems to random inputs

An important result of stochastic processes theory is that when the input of a LTI system is a WSS process X(t), the corresponding output is also a WSS process Y (t), as indicated below

X(t) h(t) Y (t),

where h(t) is the impulse response of the LTI system.

Given that H(f) = F{h(t)} is the frequency response of the system, the relationship between the PSDs Sy(f) and Sx(f) of Y (t) and X(t), respectively, is given by

Sy(f) = |H(f)|2S x(f).
(4.38)

Similarly, if a discrete-time WSS random process X[n] is filtered by a LTI with impulse response h[n] as in

X[n] h[n] Y [n],

the PSD of the WSS output process Y [n] is given by

Sy(ejΩ) = |H(ejΩ)|2S x(ejΩ),
(4.39)

where H(ejΩ) is the DTFT of h[n].

4.5.2  Filtering continuous-time signals that have a white PSD

A signal model that is used in several applications is the white noise, previously discussed in Section 1.10.1.0. A realization ν(t) of a continuous-time white noise process has autocorrelation

R(τ) = 𝔼[ν(t)ν(t τ)] = N0 2 δ(τ)
(4.40)

and zero mean μ = 𝔼[ν(t)] = 0.

Using Eq. (4.23), the bilateral PSD of a white noise is

S(f) = F {N0 2 δ(τ)} = N0 2 ,   f.
(4.41)

When a unilateral representation is adopted, the white PSD is conveniently denoted as S(f) = N0. For instance, if N0 = 6 W/Hz is the constant level of a unilateral PSD, its bilateral representation has a constant level of N02 = 3 W/Hz.

One can write N02 or N0 for the bilateral and unilateral PSDs, respectively, and in both cases the average power over a given frequency band8 BW is

P = N0BW
(4.42)

In other words, using this nomenclature, P = N0BW is valid for both unilateral and bilateral PSD representations, given that in the case of a bilateral PSD one needs to multiply the PSD level N02 by 2BW to find the average power P.

Note from Eq. (4.40) and recalling Eq. (1.54) that the continuous-time white noise power has R(0) = because there is an impulse in τ = 0 (the area is N02 but the amplitude goes to infinite). Another way of observing that the continuous time WGN has infinite power is looking at the frequency domain: its PSD is S(f) = N0 2 , such that from Eq. (4.19), the area under the curve goes to infinite.

With infinite power, a white noise cannot be measured (it would damage the measuring equipment!). But white noise is a very good model for many practical applications, with an implicit assumption that limits the frequencies to some bandwidth of interest and makes measurements and simulations feasible. In other words, the noise can have a flat PSD only over a given finite bandwidth but, for the purpose of the experiment / simulation, be conveniently modeled as white noise.

Because power can be written as P = σ2 + μ2, and μ = 0 for a signal with a white spectrum, the continuous-time white noise variance σ2 = P is infinite.

If the input X(t) is white noise with autocorrelation R(τ) = (N02)δ(τ) and PSD N02, Eq. (4.38) informs that the PSD at the output of the LIT system is

Sy(f) = |H(f)|2N0 2 ,
(4.43)

i. e., Sy(f) is a scaled version of |H(f)|2.

All the previous discussion assumed the input signal has a white PSD. But the signal amplitudes could have any probability distribution, such as Laplacian, uniform, etc. A very special case of white noise is when this probability distribution is Gaussian, which corresponds to the so-called WGN, introduced earlier in Section 1.10.1.0.

4.5.3  Advanced: Filtering discrete-time signals that have a white PSD

It is important to distinguish the continuous-time white noise, which has a flat bilateral PSD with value N02 watts/Hz and infinite power, from the discrete-time “white noise” that has finite power typically denoted by σ2. The discrete-time “white noise” is “white” (has a constant PSD level) only over the frequency band [Fs2,Fs2[ (but is still called “white”). To emphasize the similarities and differences between continuous and discrete-time white noise, the goals here are to discuss how to: 1) generate a discrete-time white noise, 2) interpret the conversion of a continuous-time white noise into a discrete-time version and 3) its conversion back to continuous-time.

Discrete-time white noise

As mentioned, a discrete-time white process X[n] has its power 𝔼[X2[n]] = σx2 coinciding with the variance σx2 because the mean μx has to be zero for white processes. Moreover, its bilateral PSD level Sx(ejΩ) = σx2 coincides with its variance in watts. This PSD can be interpreted as σx2(2π) watts per radians. To observe that, note from Eq. (4.21) that

P = 1 2π<2π>S(ejΩ)dΩ = σ2 2π × 2π = σ2.

In other words, the constant PSD level σ2 has the same numerical value of the power σ2 in watts. In case of a unilateral PSD, the constant value 2σ2 would be twice the power.

Therefore, a discrete-time bilateral white PSD (with a constant level) can be denoted as:

S(ejΩ) = N0 2 = σx2 = P.
(4.44)

This result may be confusing because the values of power and spectral density coincide.

Denoting as Sx(ejΩ) = σx2 the PSD of a white noise at the input of a filter H(ejΩ), Eq. (4.39) leads to an output PSD given by

Sy(ejΩ) = σ x2|H(ejΩ)|2.
(4.45)

Eq. (4.45) suggests that the output PSD Sy(ejΩ) has its shape |H(ejΩ)|2 imposed by the filter, given that the input PSD σx2 is simply a scaling factor.

Example 4.8. Generation of uniform and Gaussian white noise using Matlab/Octave. A discrete-time white noise with i. i. d. samples is relatively easy to generate in Matlab/Octave using functions that implement random number generators. For example, x=rand(1,1000)-0.5 creates a signal with an autocorrelation that approximates an impulse at the origin and 1,000 samples that are uniformly distributed. The subtraction of 0.5 is necessary to make μ = 0. Similarly, a discrete-time version of WGN (Gaussian, not a uniform distribution) can be generated with x=randn(1,1000).   

Converting white noise from continuous to discrete-time

The signals discussed in the previous section were already created in discrete-time. But in some cases the discrete-time white noise is obtained from a continuous-time version or should be interpreted as such.

For example, assume ν(t) is a continuous-time WGN submitted to filtering by an ideal lowpass filter and A/D conversion, as illustrated by the following block diagram:

ν(t)  h(t) AD ν[n].

From Eq. (4.38), the PSD at the output of h(t) is S(f) = |H(f)|2N02. If the filter is ideal and the A/D conversion does not incur in aliasing, the PSD S(ejΩ) of ν[n] is a scaled and periodic version of S(f). Therefore, it is white in discrete-time.

In more details: assume that h(t) is an ideal lowpass filter of bandwidth BW = Fs2 (gain equals to 1 over the band Fs2 to Fs2 Hz and zero otherwise), where Fs is the A/D sampling frequency, then the PSD of the continuous-time signal at the output of h(t) is S(f) = N02 over BW and its power is P = (2BW)(N02) = BWN0. Under the same assumptions of Eq. (1.71), the power values in discrete and continuous-time are the same, such that the power of ν[n] is denoted by its variance σ2 = BWN0.

Example 4.9. Discretizing white noise. For example, given that white noise with N02 = 3 W/Hz is converted to a discrete-time signal ν[n] via the cascade of an ideal lowpass filter h(t) with passband BW = Fs2 and an A/D process with Fs = 200 Hz, the power of the signal at the output of the ideal lowpass filter h(t) is

BWN0 = Fs 2 N0 = 100 × 6 = 600W

and the power of ν[n] is σ2 = BWN0 = 600 W.

PIC

Figure 4.25: PSD Sx(f) of a continuous-time white noise with N02 = 3 W/Hz (top) and its discrete-time counterpart Sx(ejΩ) obtained with Fs = 200 Hz (bottom).

Figure 4.25 depicts the PSD for both continuous and discrete-time signals. Note that the abscissa of Sx(ejΩ), which is periodic, is represented from 0 to 2π. As indicated by Eq. (4.21), the power σx2 can be obtained by integrating the density value Sx(ejΩ)(2π) = 600(2π) watts per radians over the range [0,2π[.   

Example 4.10. Filtering white noise through systems with unitary-energy impulse responses. Another situation of interest is when white noise is filtered by an LTI that has impulse response h(t) with energy Eh = |h(t)|2dt = 1 joule, as depicted in:

ν(t)  h(t) x(t) AD x[n].

In this case, the Parseval relation of Eq. (A.51) indicates that Eh = |H(f)|2df = 1 and from Eq. (4.43), the power of x(t) is

Px =|H(f)|2N0 2 df = N0 2 .
(4.46)

Therefore, the power of x[n] is σ2 = N02 for any h(t) (or, equivalently, any H(f) = F{h(t)}) if h(t) has energy of 1 joule. However, x[n] will not have a flat PSD unless h(t) is an ideal lowpass filter as in Example 4.9.   

Converting white noise from discrete to continuous-time

The conversion of a discrete-time white noise ν[n] into a continuous-time signal x(t) is depicted as:

ν[n] D/A h(t) x(t).

Similar to the previous discussion about white noise C/D conversion in this section, if h(t) is an ideal lowpass filter with passband frequency Fs2, x(t) has a flat PSD Sx(f) with value N02 = σ2Fs, where σ2 is the power of ν[n] and Fs the sampling frequency. Note that Sx(f) = 0 for f > |Fs2|. Therefore, after filtering ν[n] with an ideal lowpass filter, the resulting x(t) is not a continuous-time WGN, but has a flat PSD within the band [Fs2,Fs2].

Gaussian signal filtered by LTI system remains Gaussian

If the system is LTI and its input is a realization of a WGN process, then it is well-known from random processes textbooks that the filter output is another Gaussian process. In other words, a Gaussian signal filtered by a linear system remains Gaussian but, in the general case, with a non-white PSD that was shaped by the filter.

When the LTI is an ideal lowpass filter such as in Example 4.9, besides being Gaussian, the output is also flat within the filter passband (or “white” within this band). Hence, when the input is WGN, and h(t) an ideal lowpass filter with passband frequency Fs2 that has its output converted to discrete-time, the resulting ν[n] is a white and Gaussian process with PSD S(ejΩ) (again, “white” within the band π to π rad) and power σ2 = BWN0 watts, as discussed in Example 4.9.