Exercise 14 (last)
- Due No Due Date
- Points None
14.1 CRLB identity
Show the following equality, where for simplicity it is assumed that θ is a scalar parameter
E((dl(y,θ)dθ)2)=−E(d2l(y,θ)dθ2).
Here l denotes the log-likelihood function, i.e.
l(y,θ)=logp(y;θ)
(You can make appropriate assumptions of regularity of functions if needed.)
14.2 CRLB for exponential distribution
The pdf for an exponentional distribution is given by
p(y;θ)=1θexp(−y/θ),y≥0
It is easy to check that E(y)=θ and
cov(y)=θ2. Assume we have
N data points
y1,…,yNdrawn from
p(y;θ).
a) Show that ˆθ=1N∑Nk=1yk is a bias-free estimator of
θ and determine the variance of
ˆθ.
b) Calculate the CRLB, and show that the estimator in a) is efficient, i.e. achieves the Cramer Rao lower bound.
14.3 Kalman Filter for improved GPS positioning
Download the matlabb code gps.m Download gps.m and study how the motion model described on the lecture is implemented and how it improves tracking performance.
a) Change sigma2 from 1e-1 to 1e-3 and describe what happens to the position estimates
b) The code contains the following lines
kalman1 = ss(A-A*M*C,A*M,eye(4),zeros(4,2),h);
kalman0 = ss(A-A*M*C,A*M,eye(4)-M*C,M,h);
Explain why this gives the kalman filter without and with direct term (predictor vs filter).
14.4 Particle filter
Study the code PF.m Download PF.m and identify where the height measurement is used to update the weights.
The code assumes the height sensor has a normally distributed error. How should the code on lines 80 and 83 be updated if the height sensor error was instead uniformly distributed in the interval [-a,a] (the parameter a is assumed known). You do not have to change the code.
We will also talk about the exam.
Solutions:
(Please disregard the different problem numbering in these videos)
ex14_1.mp4 Download ex14_1.mp4
(Note: I made a slight error at the end, missing to move the minus sign over before defining I(θ))
ex14_2.mp4 Download ex14_2.mp4
(Note: And here I missed a transpose after 5 min, the formula should be Var(Ax)=AVar(x)AT)
ex14_3.mp4 Download ex14_3.mp4
ex14_4.mp4 Download ex14_4.mp4