Professional Documents
Culture Documents
2
MATLAB simulation exercises in statistical signal
processing
[1]
[a] For p = 2, 3, 4 simulate an AR(p) process using the algorithm
x[n] = −a[1]x[n − 1] − ... − a[p]x[n − p] + w[n]
2
where {w[n]} is an iid N (0, σw ) sequence with σw = 0.1 and the AR coefficients
a[k], k = 1, 2, ..., p are chosen so that the roots of the polynomial
A(z) = 1 + a[1]z −1 + ... + a[p]z −p
fall inside the unit circle. Use the ”poly” command to generate the AR polyno-
mial for a specified set of zeroes and use the ”root” command to calculate the
roots of a polynomial for a specified set of coefficients.
all fall inside the unit circle. Here, δ[n] is the unit impulse function. Estimate
{a[k]} by minimizing
N
X p
X
E({a[k]}pk=1 ) = (x[n] + a[k]x[n − k])2
n=max(p,q+1) k=1
3
and then estimate {b[k]} using these estimated AR coefficients in the equation
p
X
b[n] = x[n] + a[k]x[n − k], n = 0, 1, ..., q
k=1
[3] Generate an AR(p) process {x[n]} as in problem [1]. Generate the desired
process,
d[n] = c[1]x[n] + c[2]x[n − 1] + .. + c[q]x[n − q] + v[n]
where {v[n]} is iid N (0, σv2 ) independent of {w[n]}. Take for example p = 3, q =
2.
[a] Implement the LMS algorithm for estimating d[n] linearly based on
x[n], x[n − 1], ..., x[n − r], ie, write
r
X
ˆ =
d[n] ˆ
hk [n]x[n − k], e[n] − d[n] − d[n],
k=0
∂
hk [n + 1] = hk [n] − µ e[n]2
∂hk [n]
= hk [n] + 2µe[n]x[n − k], k = 0, 1, ..., r
Plot the error process e[n] and estimate its limiting mean square value using
time averages. Now assuming that the vector process
X[n] = [x[n], x[n − 1], ..., x[n − r]]T , n = r, r + 1, ...
are independent, carry out the standard convergence analysis of the LMS algo-
rithm and determine the limiting mean square error of e[n]. Compare this with
the estimated one.
[b] Cast the AR filter model and the measurement model for d[n] in standard
state variable form and design a Kalman filter for estimating the state, ie, ξ[n] =
[x[n−1], ..., x[n−p]]T from the measured data d[k], k ≤ n. Also design the causal
Wiener filter and compare the asymptotics of the two.