Estimation of covariance and mean of a multivariate normal distribution. We consider the problem of estimating the covariance matrix R and the mean a of a Gaussian probability density function
pR,a(y)=(2π)−n/2det(R)−1/2exp(−(y−a)TR−1(y−a)/2),
based on N independent samples y1,y2,…,yN∈Rn.
(a) We first consider the estimation problem when there are no additional constraints on R and a. Let μ and Y be the sample mean and covariance, defined as
μ=N1k=1∑Nyk,Y=N1k=1∑N(yk−μ)(yk−μ)T.
Show that the log-likelihood function
l(R,a)=−(Nn/2)log(2π)−(N/2)logdetR−(1/2)k=1∑N(yk−a)TR−1(yk−a)
can be expressed as
l(R,a)=2N(−nlog(2π)−logdetR−tr(R−1Y)−(a−μ)TR−1(a−μ)).
Use this expression to show that if Y≻0, the ML estimates of R and a are unique, and given by
aml=μ,Rml=Y.
(b) The log-likelihood function includes a convex term (−logdetR), so it is not obviously concave. Show that l is concave, jointly in R and a, in the region defined by
R⪯2Y.
This means we can use convex optimization to compute simultaneous ML estimates of R and a, subject to convex constraints, as long as the constraints include R⪯2Y, i.e., the estimate R must not exceed twice the unconstrained ML estimate.