Discrete time. If (Xn)n∈Z is a weakly stationary discrete SP, define
RX(f)≜k=−∞∑+∞rX(k)e−j2πfkthe PSD of (Xn).
Note that RX(f)=FD(rX(k)), the discrete time Fourier transform, where f∈[−21,21]. Since rX(k) is real and even, also RX(f) is real and even (and periodic in f of period 1).
Continuous time. If (Xt)t∈R is a weakly stationary continuous SP, define
RX(f)=∫−∞+∞rX(τ)e−j2πfτdτthe PSD of (Xt).
Note that RX(f)=F(rX(τ)) is the (usual) Fourier transform of rX(τ). Since rX(τ) is real and even, also RX(f) is real and even. In continuous time RX(f) is not periodic (in general) and f∈R.
Inversion formulas. Under some regularity assumptions (e.g. Dirichlet conditions for pointwise convergence, see Signals and Systems) the inversion formulas hold and one can write
rX(k)=∫−1/21/2RX(f)ej2πfkdf(discrete case),rX(τ)=∫−∞+∞RX(f)ej2πfτdf(continuous case).
Remark. At zero lag:
rX(0)=∫−∞+∞RX(f)df=E(Xt2)(continuous),rX(0)=∫−1/21/2RX(f)df=E(Xn2)(discrete).
Examples
WGN.(Xn)∼WGN(σ2)⇒rX(k)=σ2δ(k), therefore
RX(f)=k∑rX(k)e−j2πfk=σ2.
The PSD is flat (constant σ2 on [−21,21]), which is why the noise is called "white".
Define the process restricted to [−N,N]:
XnN≜Xn1[−N,N](n),
and let
XN(f)≜FD(XnN)=k=−N∑NXkNe−j2πfk.XN(f) is the discrete time Fourier transform of the [−N,N] chunk of the SP trajectory.
Theorem. If (Xn) is weakly stationary and if rX(k)∈ℓ1 (i.e. ∑k∣rX(k)∣<∞), then
N→∞lim2N+11E(∣XN(f)∣2)=RX(f),RX(f)=k=−∞∑+∞rX(k)e−j2πfk.
(Proof omitted in the lectures.)
Corollary.RX(f)≥0 for all f∈[−21,21].
Remark. The theorem and corollary are valid also in continuous time, but are more difficult to prove.
Filtered second order processes
We analyze the behavior of a SP through an LTI system, concentrating on the continuous time case to fix ideas. Let (Xt) be a second order SP and h(t) the impulse response of an LTI system with (Xt) at its input. The output process is
Yt=∫−∞+∞h(t−τ)Xτdτ.
Autocorrelation: using rX(t+τ−s,t−σ)=rX(τ+σ−s),
rY(t+τ,t)=∬h(s)h(σ)rX(τ+σ−s)dsdσ.
Change of variable s−σ=s′:
=∬h(s′+σ)h(σ)rX(τ−s′)ds′dσ=∫[:=c(s′)∫h(s′+σ)h(σ)dσ]rX(τ−s′)ds′=∫c(s′)rX(τ−s′)ds′=c(τ)∗rX(τ),
which does not depend on t. Here
c(t)≜∫h(t+σ)h(σ)dσ=h(t)∗h(−t)
(the notes say to convince yourself of this identity). Therefore rY(t+τ,t)=rY(τ)=c(τ)∗rX(τ)=h(τ)∗h(−τ)∗rX(τ).
PSD: recalling that F(h(−τ))=H(−f),
RY(f)=H(f)⋅H(−f)⋅RX(f)=∣H(f)∣2RX(f).□
(For a real impulse response H(−f)=H(f), hence H(f)H(−f)=∣H(f)∣2.)
Interpretation of the PSD, part 2
Let Xt be a current flowing through a resistor R=1Ω. The instantaneous power is
power(t)=tension(t)⋅current(t)=RXt⋅Xt=Xt2,
so the instantaneous power dissipated on R is Xt2, and E(Xt2) is the average (expected value) of the instantaneous power:
E(Xt2)=rX(0)=∫−∞+∞RX(f)df.
What is the contribution to the instantaneous average power coming from the different frequencies present in Xt? Pass Xt through an (ideal) band-pass filter centered at f0, with Δ the width of the band:
H(f)=rect(Δf−f0)+rect(Δf+f0)
(two unit-height bands, one around +f0 and one around −f0). Then
RY(f)=∣H(f)∣2RX(f)=H(f)RX(f)
(because H(f) only takes the values 0 and 1), and
E(Yt2)=rY(0)=∫RY(f)df≈RX(f0)⋅2Δ.
Therefore
RX(f0)=Δ→0lim2ΔE(Yt2),
that is, RX(f0) is the average power per unit bandwidth coming from the components with frequency around f0.
Versione ripasso
PSD. For a weakly stationary SP:
discrete: RX(f)=∑krX(k)e−j2πfk, f∈[−21,21], periodic of period 1;
continuous: RX(f)=∫rX(τ)e−j2πfτdτ, f∈R.
RX is real and even (because rX is). Inversion (under regularity, e.g. Dirichlet): rX(k)=∫−1/21/2RX(f)ej2πfkdf, rX(τ)=∫RX(f)ej2πfτdf. In particular rX(0)=E(X2)=∫RX(f)df.
Theorem. If rX∈ℓ1: limN→∞2N+11E∣XN(f)∣2=RX(f), where XN is the DTFT of the chunk [−N,N]. Corollary: RX(f)≥0. Also true in continuous time.
Filtering (Yt=∫h(t−τ)Xτdτ).
General second order input: mY=h∗mX, rY(t+τ,t)=∬h(s)h(σ)rX(t+τ−s,t−σ)dsdσ.
Weakly stationary input ⇒Y weakly stationary, with
mY=H(0)mX,rY(τ)=h(τ)∗h(−τ)∗rX(τ),RY(f)=∣H(f)∣2RX(f).
(Proof: change of variable s−σ=s′, c(t)=h(t)∗h(−t), F(h(−τ))=H(−f).)
Physical meaning. With R=1Ω, Xt2 is the instantaneous power and E(Xt2)=∫RX(f)df. Ideal band-pass of width Δ around ±f0: E(Yt2)≈2ΔRX(f0), so RX(f0)=limΔ→02ΔE(Yt2) is power per unit bandwidth around f0.
Typical mistakes. Using H(f) instead of ∣H(f)∣2 for the PSD (the phase of H does not matter); forgetting H(0) in the mean; computing rY by convolving only once; restricting f to [−21,21] in continuous time or to all of R in discrete time.