SSP 4 1 - Modelling 1
SSP 4 1 - Modelling 1
SSP 4 1 - Modelling 1
IN5340/9340
Andreas Austeng
March 2022
Department of Informatics, University of Oslo
1/26
Outline
Introduction
Spectral factorization
Motivation
Rational power spectra
Filter parameters ↔ Auto-correlation Sequence
2/26
What do we learn
3/26
Power spectrum, definition
• Defined as the Fourier transform of the auto-correlation (AC) sequence, γxx [k], (sometime
called the auto-covariance sequence) of a WSS process:
• Px (e ω ) = ∞ γ [k]e − k ω , and
P
k =−∞ xx
• γxx [k] = E {x[n]x ∗ [n − k]} = 21π −π
Rπ
Px (e ω )e k ω d ω,
• where
WSS: A random process x[n] for which
1. the mean is a constant, mx [n] = mx ,
2. the AC γxx [k , l] depends only on the difference k − l, and
3. the variance is finite, cx [0] < ∞.
(and γxx [k] is a deterministic function of delay).
• γxx [k] = E x ∗ [n]x[n − k]
© ª
4/26
Why Power spectrum ...
From dsbguide.com
• But the Fourier transform of WWS signals does not exist ...
5/26
Why Power spectrum ...
• What then, if
• x[n] is a WWS process, and
x[n] −→ h[n] −→ ?
6/26
Filtering & statistics
• How does LTI-filtering of random processes affect the statistics?
• Goal:
1. For a given system, determine the relationship between mean and AC of the input process to
the mean and AC of the output process.
2. For a given system, determine the relationship between the powers spectrum of the input
and output process.
• Assumptions;
• x[n] a WSS process with mean mx and AC rx [k].
• x[n] is filtered by a stable LTI filter described by h[n].
• The output from the system, y [n] will then be a stochastic process described by
∞
X
y [n] = x[n] ∗ h[n] = h[k]x[n − k]
k =−∞
.
7/26
Effect of an LTI System on a Random Signal (1)
• my ; mean of y[n]:
( )
© ª ∞
X ∞
X © ª
myn = E y [n] = E h[k]x[n − k] = h[k]E x[n − k]
k =−∞ k =−∞
∞
h[k] = mx H(e 0 ).
X
= mx
k =−∞
8/26
Effect of an LTI System on a Random Signal (2)
i.e. the input-output cross-covariance is equal to the convolution of the folded complex
conjugate of the impulse response with the input AC sequence.
• For zero-mean WWS processes, Pyx (e ω ) = H ∗ (e ω )Pxx (e ω )
i.e., the cross-spectrum between input and output is the product of the input signal’s
power spectrum with the complex conjugate of the filter’s frequency response.
9/26
Effect of an LTI System on a Random Signal (3)
• This gives
¯2
Pyy (e ω ) = H(e ω )H ∗ (e ω )Pxx (e ω ) = ¯H(e ω )¯ Pxx (e ω )
¯
i.e. the power spectrum of the output signal is equal to the spectrum of the input signal
multiplied by the squared magnitude of the filter’s frequency response.
10/26
Effect of an LTI System on a Random Signal (4)
From Hayes
11/26
Effect of an LTI System on a Random Signal (5)
• In terms of z-transform:
Py (z) = Px (z)H(z)H(1/z).
12/26
Linear prediction
• Linear prediction is a mathematical operation where future values of a discrete-time signal
are estimated as a linear function of previous samples.
• These techniques use known information about the system to determine the model.
• Applications include speech and music synthesis, data compression, high-resolution
spectral estimation, communications, manufacturing, and simulation.
13/26
The core of linear prediction with an AR model ...
i.e. bye estimating σ2e and H(e ω ), the power spectrum can be estimated.
14/26
Assumtions (. . . that all can be proven right)
• The spectrum Pxx of a WSS process is a real-valued, positive and periodic function of ω.
• The spectra of a very wide class of causal WSS random signals an be approximated by
rational functions.
• A rational spectrum is a rational function of e ω :
Pq − ωk
γ [k]e
k =−q 1
ω
Pxx (e ) ≡ Pxx (ω) = Pp
γ [l]e − ωl
l =−p 2
where γ1 [k] and γ2 [l] are two sequences having even symmetry which characterizes the AC
sequence of a real signal, and q and p represent some summation limits.
• This corresponds to seeing the signal as the result of filtering white noise with a filter with
proper order and coefficients.
• This again means viewing the generation of the measured series as a stochastic process,
which can be modelled by a general ARMA(p,q) model.
15/26
Assumtions (. . . that all can be proven right) (2)
where
A(e ω ) = 1 + a1 e − ω + · · · + ap e − ωp
B(e ω ) = 1 + b1 e − ω + · · · + bq e − ωq
are the polynomial numerator and denominator of the filter1s frequency response
A(e ω )
H(e ω ) = .
B(e ω )
16/26
The white noise is random(!!)
17/26
Spectral factorization
18/26
Rational power spectra
19/26
Special types of random processes
Pp Pq
From x[n] + a [k]x[n − k] =
k =1 p
b [k]e[n − k]
k =0 q
20/26
Filter parameters ↔ Auto-correlation Sequence
• Multiply by x ∗ [n − i] (from the right) and take the expectation value of both sides:
p
E x[n]x ∗ [n − l] = − ap [k]E x[n − i]x ∗ [n − l]
© ª X © ª
i =1
q
bq [i]E e[n − i]x ∗ [n − i]
X © ª
+
i =0
p q
i.e. γxx [l] = − ap [i]γxx [l − i] + bq [i]γex [l − i].
X X
i =1 i =0
• Using that x[n] = e[n] ∗ h[n] and that E e ∗ [n]e[m] = σ2e δ[n − m] we have that
© ª
∞
γex [l − i] = E e ∗ [n − i]x[n − l] = E e ∗ [n − i]e[m]h[n − l − m]
© ª © X ª
m=−∞
∞ ³ ©
E e ∗ [n − i]e[m] h[n − l − m] = σ2e h[i − l].
X ª ´
=
m=−∞
p q
γxx [l] = − ap [i]γxx [l − i] + σ2e
X X
=⇒ bq [i]h[i − l].
i =1 i =0
21/26
Filter parameters ↔ Auto-correlation Sequence (2)
• We have when the power spectral density function of the stationary random process is a
rational function, that
Pp
− i =1 ap [i]γxx [l − i] for l > q
γxx [i] = − pi=1 ap [i]γxx [l − i] + σ2e c[l] for l ≤ q
P
for l < 0.
γ∗ [−l]
xx
22/26
Filter parameters ↔ Auto-correlation Sequence (3)
• AR-process: x[n] generated by filtering white noise through an all-pole filter h[n]:
z-transform: H(z) = 1+Pp 1 a z −1 = A(1z )
i =1 i
23/26
Filter parameters ↔ Auto-correlation Sequence (4)
a p = [a1 a2 . . . ap ]T
γp = [γ[1] γ[2] . . . γ[p]]T
24/26
Filter parameters ↔ Auto-correlation Sequence (5)
• Including also l = 0, we may move the right-hand side term to the left and add extra row
at top of Γp , forming the augmented Yule-Walker equations
σ2e
γxx [0] γxx [−1] ··· γxx [−p] 1
γxx [1] γxx [0] γxx [−p + 1] 0
∗
··· ap [1]
. .. .. .. .. = ..
.. .
. .
.
.
γ∗xx [p] γ∗xx [p − 1] ··· γxx [0] ap [p] 0
• The σ2e can be found from the augmented equations: σ2e = γ[0] + pi=1 ai γ[i].
P
25/26
Filter parameters ↔ Auto-correlation Sequence (5)
• MA-process: x[n] generated by filtering white noise through an all-zero filter h[n]:
Pq −1
z-transform: H(z) = B(z) + bz
i =1 i
H(e ω ) = B(e ω )1 +
Pq − ωi
frequency transform: be
i =1 i
¯2
power spectrum: Pxx (ω) = σ2e ¯B(e ω )¯ or: Pxx (z) = Pee (z)B(z)B ∗ (1/z ∗ )
¯
Pq
and diff. eq: x[n] = − i =1 bi e[n − i]
• It has auto-correlation sequence
σ2 Pq −|l | b [i + |l |]b for |l | ≤ q
e i =1 q q
γxx [i] =
0 for |l | > q .
• Problem: Estimating the q parameters bq [i] and σ2e is a nonlinear estimation problem!
26/26