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 , the corresponding output is also a WSS process , as indicated below
where is the impulse response of the LTI system.
Given that is the frequency response of the system, the relationship between the PSDs and of and , respectively, is given by
| (4.38) |
Similarly, if a discrete-time WSS random process is filtered by a LTI with impulse response as in
the PSD of the WSS output process is given by
| (4.39) |
where is the DTFT of .
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 of a continuous-time white noise process has autocorrelation
| (4.40) |
and zero mean .
Using Eq. (4.23), the bilateral PSD of a white noise is
| (4.41) |
When a unilateral representation is adopted, the white PSD is conveniently denoted as . For instance, if W/Hz is the constant level of a unilateral PSD, its bilateral representation has a constant level of W/Hz.
One can write or for the bilateral and unilateral PSDs, respectively, and in both cases the average power over a given frequency band8 is
| (4.42) |
In other words, using this nomenclature, 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 by to find the average power .
Note from Eq. (4.40) and recalling Eq. (1.54) that the continuous-time white noise power has because there is an impulse in (the area is 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 , 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 , and for a signal with a white spectrum, the continuous-time white noise variance is infinite.
If the input is white noise with autocorrelation and PSD , Eq. (4.38) informs that the PSD at the output of the LIT system is
| (4.43) |
i. e., is a scaled version of .
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 watts/Hz and infinite power, from the discrete-time “white noise” that has finite power typically denoted by . The discrete-time “white noise” is “white” (has a constant PSD level) only over the frequency band (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 has its power coinciding with the variance because the mean has to be zero for white processes. Moreover, its bilateral PSD level coincides with its variance in watts. This PSD can be interpreted as watts per radians. To observe that, note from Eq. (4.21) that
In other words, the constant PSD level has the same numerical value of the power in watts. In case of a unilateral PSD, the constant value would be twice the power.
Therefore, a discrete-time bilateral white PSD (with a constant level) can be denoted as:
| (4.44) |
This result may be confusing because the values of power and spectral density coincide.
Denoting as the PSD of a white noise at the input of a filter , Eq. (4.39) leads to an output PSD given by
| (4.45) |
Eq. (4.45) suggests that the output PSD has its shape imposed by the filter, given that the input PSD 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 . 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 is a continuous-time WGN submitted to filtering by an ideal lowpass filter and A/D conversion, as illustrated by the following block diagram:
From Eq. (4.38), the PSD at the output of is . If the filter is ideal and the A/D conversion does not incur in aliasing, the PSD of is a scaled and periodic version of . Therefore, it is white in discrete-time.
In more details: assume that is an ideal lowpass filter of bandwidth (gain equals to 1 over the band to Hz and zero otherwise), where is the A/D sampling frequency, then the PSD of the continuous-time signal at the output of is over and its power is . Under the same assumptions of Eq. (1.71), the power values in discrete and continuous-time are the same, such that the power of is denoted by its variance .
Example 4.9. Discretizing white noise. For example, given that white noise with W/Hz is converted to a discrete-time signal via the cascade of an ideal lowpass filter with passband and an A/D process with Hz, the power of the signal at the output of the ideal lowpass filter is
and the power of is W.
Figure 4.25 depicts the PSD for both continuous and discrete-time signals. Note that the abscissa of , which is periodic, is represented from 0 to . As indicated by Eq. (4.21), the power can be obtained by integrating the density value watts per radians over the range .
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 with energy joule, as depicted in:
In this case, the Parseval relation of Eq. (A.51) indicates that and from Eq. (4.43), the power of is
| (4.46) |
Therefore, the power of is for any (or, equivalently, any ) if has energy of 1 joule. However, will not have a flat PSD unless 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 into a continuous-time signal is depicted as:
Similar to the previous discussion about white noise C/D conversion in this section, if is an ideal lowpass filter with passband frequency , has a flat PSD with value , where is the power of and the sampling frequency. Note that for . Therefore, after filtering with an ideal lowpass filter, the resulting is not a continuous-time WGN, but has a flat PSD within the band .
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 an ideal lowpass filter with passband frequency that has its output converted to discrete-time, the resulting is a white and Gaussian process with PSD (again, “white” within the band to rad) and power watts, as discussed in Example 4.9.