Docsity

Widrow and Stearns - Homework Solution | ECE 635, Assignments of Electrical and Electronics Engineering

Toggle sidebar
bg1
ECE 635
Adaptive Signal Processing
Homework solutions for Chapter 6 of Widrow and Stearns
Exercise 7 on p.115
What is the effect of adding a third weight to the adaptive transversal filter in Figure 6.2:
(a) On the minimum mean-square error?
From equation:
[
]
.
*2
min WPT
k
dE −=
ξ
(2.19) We need to find P and W*.
Using a modified equation (2.21) we can calculate P.
[]
(
)
2 1, ,0 ;
n2
-sin
2
sin
2
cos
2
1
==
−
=∑
=
−
n
N
N
nk
N
k
N
xdE N
k
nkk
π
ππ
[]
[]
[]
[]
.
4
sin
2
sin
0
2
1
0
⎥
⎥
⎥
⎥
⎥
⎥
⎦
⎤
⎢
⎢
⎢
⎢
⎢
⎢
⎣
⎡
−
−=
⎥
⎥
⎥
⎦
⎤
⎢
⎢
⎢
⎣
⎡
==
N
N
xdE
xdE
xdE
dE
k
k
k
kk
π
π
XP
To find R (for W*) we use equation the following two equations and note the random
samples are independent of each other.
[
]
φ
+= 5.0
2
k
xE
[]
,
2
cos5.0
N
n
xxE nkk
π
=
− n = 1, 2 (2.20) slightly modified.
⎥
⎥
⎥
⎥
⎥
⎥
⎦
⎤
⎢
⎢
⎢
⎢
⎢
⎢
⎣
⎡
+
+
+
=
φ
ππ
π
φ
π
ππ
φ
21
2
cos
4
cos
2
cos21
2
cos
4
cos
2
cos21
5.0
NN
NN
NN
R.
Since answering this question for an arbitrary N and
φ
is too exhaustive we shall set N to
16, as the example in the book has done, and
φ
to 0.01. Then R and P become:
,
7071.0
3827.0
0
⎥
⎥
⎥
⎦
⎤
⎢
⎢
⎢
⎣
⎡
−
−=P
.
5100.04619.05100.0
4619.05100.04619.0
3536.04619.05100.0
⎥
⎥
⎥
⎦
⎤
⎢
⎢
⎢
⎣
⎡
=R
Using Matlab to obtain the inverse of R:
⎥
⎥
⎥
⎦
⎤
⎢
⎢
⎢
⎣
⎡
−
−−
−
=
−
8971.218776.335052.15
8776.333311.638776.33
5052.158776.338971.21
1
R
⎥
⎥
⎥
⎦
⎤
⎢
⎢
⎢
⎣
⎡
−
−=
5192.2
2807.0
006.2
*
W,
Page 1 / 7
pf3
pf4
pf5

Partial preview of the text

Download Widrow and Stearns - Homework Solution | ECE 635 and more Assignments Electrical and Electronics Engineering in PDF only on Docsity!

Adaptive Signal Processing Homework solutions for Chapter 6 of Widrow and Stearns

Exercise 7 on p.

What is the effect of adding a third weight to the adaptive transversal filter in Figure 6.2:

(a) On the minimum mean-square error? From equation:

[ ] .

2 * min P W

T ξ = E dk − (2.19) We need to find P and W

.

Using a modified equation (2.21) we can calculate P.

[ ]

2 n -sin

sin

cos

1

= (^) ∑

−

n N

N

k n

N

k

N

Ed x

N

k

k k n

[ ]

[ ]

[ ]

[ ]

sin

sin

2

1

0

N
N

Ed x

Ed x

Ed x

Ed

k

k

k

k k

P X

To find R (for W

) we use equation the following two equations and note the random samples are independent of each other.

[ ]= 0. 5 + φ

2 Ex k

[ ] ,

  1. 5 cos N

n E xkxkn

− = n^ = 1, 2^ (2.20) slightly modified.

cos

cos

1 2 cos

cos

cos

1 2 cos

N N
N N
N N
R.

Since answering this question for an arbitrary N and φ is too exhaustive we shall set N to

16, as the example in the book has done, and φ to 0.01. Then R and P become:

P = −.
R =

Using Matlab to obtain the inverse of R :

−

1 R

W (^) ,

Adaptive Signal Processing Homework solutions for Chapter 6 of Widrow and Stearns

and finally:

[ ].

min^200.^38270.^7071

⎥

ξmin = 0. 1113.

From Figure 6.3 ξ min = 0. 40 when only 2 weights are used in the filter. This shows that

as you increase the number of weights (for this particular problem with N set to 16 and φ

set 0.01) that the minimum mean-squared error will most probably decrease. This makes sense since the adaptive filter has more degrees of freedom to adjust the input signal to the desired signal.

(b) On the misadjustment?

The misadjustment is given by:

M = μtr [ R ] (6.36)

With two weights and the same parameters as used in Figure 6.3 above we calculate R :

cos

1 2 cos

  1. (^5) ⎥ ⎦

φ

π

π φ

N
R N

M = 0.01 * 1.0200 = 0.0102.

For three weights:

cos

cos

1 2 cos

cos

cos

1 2 cos

φ

π π

π φ

π

π π φ

N N
N N
N N
R

M = 0.01 * 1.5300 = 0.0153. This may seem odd at first glance, but after realizing what the misadjustment is defined as it does make sense. The misadjustment is defined as the ratio of the excess mean- square error to the minimum mean-square error. Since the minimum mean-square error has been reduced (calculated above) the misadjustment must increase. Also the excess MSE increases because there is more noise introduced into the measurement.

(c) On the learning curve?

The learning curve can be defined piece wise by the associated time constants given by:

T n L n

MSE (^) n ≈ =

For the two weight case with the above parameters we have the following eigenvalues:

Which gives us the following:

Adaptive Signal Processing Homework solutions for Chapter 6 of Widrow and Stearns

( ). 2

sin 7

cos 2

0 1 1

2 1

2 = 0 + + − +

ξ w w ww w

(b) Determine a range for the adaptive gain constant.

The general rule is:

tr [ R ]

0 <μ <

tr [ R ] = 1

∴ 0 < μ < 1

(c) Express the LMS algorithm for this situation.

W k + 1 = W k + 2 με k X k (6.3)

where,

k d^ k X k W k^ (6.1)

T

1

0

7

cos 7

cos 7

sin w

k k k w k

cos

cos

cos 7

cos 7

2 sin 1

0

1

0

1 1

0 1

k

k

w

k k k w

w

w

w

w

k

k

k

k

k

k

π

π

π π π μ

cos

cos

cos 7

cos 7

2 sin 0 1 1

0

1 1

0 1 k

k k w

k w

k

w

w

w

w k k k

k

k

k

(d) Using μ =0.05 and 0.005 with zero initial conditions, run the LMS algorithm and plot

two learning curves similar to Figure 6.5 on the same graph. Estimate the two time constants.

The time constants are given by:

T n L n

MSE (^) n ≈ =

For μ =0.05 (these values have been rounded up to the nearest integer):

( TMSE ) 1 ≈ 6

( T MSE ) 2 ≈ 101

For μ =0.005 (these values have also been rounded up to the nearest integer):

( T MSE ) 1 ≈ 53

( T MSE ) 2 ≈ 1001

Adaptive Signal Processing Homework solutions for Chapter 6 of Widrow and Stearns

These numbers can also be obtained by eyeballing the figure below. For example for

(TMSE) 1 when μ = 0.050 the line for the first portion of the graph is seen to decrease

approximately 7 decades in 100 iterations ( ≈ 1 decade in 14 iterations). Since a decade

is a factor of 10 or e

, a decade also represents a lapse of 2.30 time constants. Thus

(TMSE) 1 , is observed to be on the order of 14/2.30, or approximately 6 iterations. The

same can be done for the other time constants.

The figure below shows the two learning curves:

Adaptive Signal Processing Homework solutions for Chapter 6 of Widrow and Stearns

1

0

5

sin 5

sin 5

sin w

k k k w k

sin

sin

sin 5

sin 5

sin 5

1

0

1

0

1 1

0 1

k

k

w

k k k w

w

w

w

w

k

k

k

k

k

k

,

sin

sin

sin 5

sin 5

sin 5

0 1 1

0

1 1

0 1 k

k

k w

k w

k

w

w

w

w k k k

k

k

k

.

(d) Using the LMS algorithm in part (c), list the first 20 error values, ε 0 through ε 19.

Assume that W 0 = 0.

ε k =0.5878, 0.9511, 0.8196, 0.0267, -0.3822, -0.5403, -0.6832,

-0.4870, 0.0859, 0.3322, 0.4395, 0.5450, 0.3812, -0.0760, -0.2691, -0.3543, -0.4386, -0.3063, 0.0617, 0.2169. .