Professional Documents
Culture Documents
Example Lec 6
Example Lec 6
Example 1 - Lecture 6
λ xn
p(xn ; λ) = e−λ ,
xn !
and with expected value E[xn ] = λ.
∂ ln p(xn ;λ)
(a) Calculate ∂λ and show that the regularity condition is satisfied.
(b) Determine the CRLB for Var[λ̂] under the pmf p(x; λ)
Now let the distribution of λ be exponential with pdf p(λ; a) = ae−aλ , with λ ≥ 0, E[λ] = 1
a
and var[λ] = a12 .
N
−λ λxn = e−N λ λ( n=1 xn )
P
QN
(a) p(x; λ) = i=1 e xn !
Q N
n=1 xn !
PN
∂ ln p(x;λ) xn
∂λ = −N + n=1
λ
E[ xn ]
h i P
∂ ln p(x;λ) n=1N Nλ
The regularity condition holds as, E ∂λ = −N + λ = −N + λ = 0.
∂ 2 ln p(x;λ) − N
P
n=1 xn
(b) = .
h 22
∂λ i λ2
∂ ln p(x;λ)
E ∂λ2
= − Nλ . The CRLB is then given by Var[λ̂] ≥ h 1
∂ 2 ln p(x;λ)
i = λ
N
−E
∂λ2
(d)
( N
n=1 xn ) 1
P
Rc
λe−N λ λQN c dλ
N
e−N λ λ1+( n=1 xn ) dλ
Rc P
0
n=1 xn ! 0
λ̂ = E[λ|x1 , ..., xN ] = = Rc PN
( )1
PN
Rc
e −N λ λQ n=1
xn
e−N λ λ( n=1 xn ) dλ
0 N c dλ 0
n=1 n !
x
Notice that
lim γ(s, x) = Γ(s)
x→∞
1 Γ(2 + ( N 1+ N
P P
n=1 xn )) n=1 xn
lim E[λ|x1 , ..., xN ] = N
=
N Γ(1 + ( n=1 xn )) N
c→∞
P
2
(e) λM AP = arg maxλ log p(λ|x1 , ..., xN ). Function log p(λ|x1 , ..., xN ) is concave for λ ∈ [0, c].
d d
log p(λ|x1 , ..., xN ) = log p(λ) + log p(x1 , ..., xN |λ) − log p(x1 , ..., xN ) =
dλ dλ
N
( N
P
d n=1 xn )
X
− Nλ + ( xn ) log(λ) = −N + .
λ λ
n=1
( N
P PN
n=1 xn ) ( n=1 xn )
Thus, λM AP = N for N < c. Otherwise, λM AP = c.
(f )
PN
R∞ ( n=1 xn )
λe−N λ λQ ae−aλ dλ R∞ N
−(a+N )λ λ(1+ n=1 xn ) dλ
P
0 e
0 N
n=1 xn !
λ̂ = E[λ|x1 , ..., xN ] = = R∞ PN =
( )
PN
R∞
e−N λ λQN
n=1 xn
ae−aλ dλ 0 e−(a+N )λ λ( n=1 xn ) dλ
0
n=1 xn !
1P
Γ 2+ N
P
x
N n=1 n
1+ N
P
(N +a)2+ n=1 xn
= n=1 xn
1P PN
Γ 1 + n=1 xn N +a
N
(N +a)1+ n=1 xn
N
If we define α = N +a , we can write
PN
n=1 xn
E[λ|x1 , ..., xN ] = α + (1 − α)E[λ],
N
which clearly shows the trade-off between the data (x1 , ..., xN ) and the information of
the prior by means of E[λ].
(g) λM AP = arg maxλ log p(λ|x1 , ..., xN ). Function log p(λ|x1 , ..., xN ) is concave.
d d
log p(λ|x1 , ..., xN ) = log p(λ) + log p(x1 , ..., xN |λ) − log p(x1 , ..., xN ) =
dλ dλ
N
( N
P
d n=1 xn )
X
− (a + N )λ + ( xn ) log(λ) = −(a + N ) + .
λ λ
n=1
( N
P
n=1 xn )
Thus, λM AP = N +a