


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



Homework Assignment # Solutions
∂ ∂θ
(θ + λ)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.
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 + λ
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