Docsity

Statistical Signal Processing - Homework 9 Solutions | ECE 567, Assignments of Electrical and Electronics Engineering

Toggle sidebar
bg1
ECE 567 STATISTICAL SIGNAL PROCESSING SPRING 2008
Homework Assignment #9
Solutions
1. When θ > 0,
∂
∂θ ·(θ+λ)xe−(θ+λ)
x!¸=1
x!£x(θ+λ)x−1e−(θ+λ)−(θ+λ)xe−(θ+λ)¤.
Setting this equal to zero yields x−(θ+λ) = 0 or θ=x−λ. Since θmust be
nonnegative, this expression is not valid if x < λ. In that case, the maximum likelihood
must be at either θ= 0 or θ=∞(the boundary points), so that
ˆ
θ=½x−λ, x −λ≥0
0,otherwise.
2. (a)
P r[s, n;θ] = µθse−θ
s!µλne−λ
n!.
ln[P r(s, n;θ)] = sln(θ)−θ+nln(λ)−λ−ln(s!n!).
(b)
U(θ, θk) = E[ln(P r[s, n;θ]) |x=x0;θk]
=E[sln(θ)−θ|x=x0;θk] + (terms not depending on θ)
= ln(θ)E[s|x=x0;θk]−θ+ (terms not depending on θ)
∂
∂θ U(θ, θk) = 1
θE[s|x=x0;θk]−1.
Setting this equal to zero and solving in order to find
θk+1 = arg max
θU(θ, θk)
yields
θk+1 =E[s|x=x0;θk].
(c)
E[s|x=x0;θk] =
x0
X
`=0
` P r[s=`|x=x0;θk]
=
x0
X
`=0
`P r[s=`, n =x0−`;θk]
P r[x=x0;θk]
=
x0
X
`=0
`³θ`
kexp(−θk)
`!´³λ(x0−`)exp(−λ)
(x0−`)! ´
1
x0![(θk+λ)x0exp[−(θk+λ)]]
pf3
pf4

Partial preview of the text

Download Statistical Signal Processing - Homework 9 Solutions | ECE 567 and more Assignments Electrical and Electronics Engineering in PDF only on Docsity!

ECE 567 STATISTICAL SIGNAL PROCESSING SPRING 2008

Homework Assignment # Solutions

  1. When θ > 0,

∂ ∂θ

[

(θ + λ)xe−(θ+λ) x!

]

x!

[

x(θ + λ)x−^1 e−(θ+λ)^ − (θ + λ)xe−(θ+λ)

]

Setting this equal to zero yields x − (θ + λ) = 0 or θ = x − λ. Since θ must be nonnegative, this expression is not valid if x < λ. In that case, the maximum likelihood must be at either θ = 0 or θ = ∞ (the boundary points), so that

θˆ =

x − λ, x − λ ≥ 0 0 , otherwise.

  1. (a)

P r[s, n; θ] =

θse−θ s!

λne−λ n!

ln[P r(s, n; θ)] = s ln(θ) − θ + n ln(λ) − λ − ln(s!n!).

(b)

U (θ, θk) = E[ln(P r[s, n; θ]) | x = x 0 ; θk] = E[s ln(θ) − θ | x = x 0 ; θk] + (terms not depending on θ) = ln(θ)E[s | x = x 0 ; θk] − θ + (terms not depending on θ) ∂ ∂θ

U (θ, θk) =

θ

E[s | x = x 0 ; θk] − 1.

Setting this equal to zero and solving in order to find

θk+1 = arg max θ

U (θ, θk)

yields θk+1 = E[s | x = x 0 ; θk]. (c)

E[s|x = x 0 ; θk] =

∑^ x^0

`=

P r[s = | x = x 0 ; θk]

∑^ x^0

`=

`

P r[s = , n = x 0 −; θk] P r[x = x 0 ; θk]

∑^ x^0

`=

`

θk exp(−θk )!

λ(x^0 −)^ exp(−λ) (x 0 −)!

1 x 0! [(θk^ +^ λ) x (^0) exp[−(θk + λ)]]

and continuing the manipulations yields

E[s|x = x 0 ; θk] =

∑^ x^0

`

`

θkλ(x^0 −) (θk + λ)x^0

x 0! !(x 0 −)!

λ θk + λ

)x (^0) ∑x 0

n=

`

θk λ

)` (

x 0 `

λ θk + λ

)x 0 x 0

θk λ

θk λ

)x 0 − 1

λ θk + λ

)x 0 x 0

θk λ

θk + λ λ

)x 0 − 1

λ θk + λ

x 0

θk λ

θk θk + λ

x 0.

(d) Thus θk+1 = x 0

θk θk + λ

  1. The simulations yield the following results.

0 2 4 6 8 10 12 14 16 18 20

1

2

3

4

5

6

7

8

9

10

k

θk

λ = 4, x 0 = 10

% subroutine function [th_1,th_2,th_3] = EM_iter(lambda,x0) th = zeros(1,20); th(1) = 1; for k=2:20, th(k) = x0*th(k-1)/(th(k-1)+lambda); end th_1 = th;

th = zeros(1,20); th(1) = 4; for k=2:20, th(k) = x0*th(k-1)/(th(k-1)+lambda); end th_2 = th;

th = zeros(1,20); th(1) = 10; for k=2:20, th(k) = x0*th(k-1)/(th(k-1)+lambda); end th_3 = th;

return