Convex Optimization · Problem 7.4

Geometric problems — Boyd & Vandenberghe

Mathematics — Optimization · estimation-covariance-mean-multivariate-normal

Problem

Estimation of covariance and mean of a multivariate normal distribution. We consider the problem of estimating the covariance matrix RR and the mean aa of a Gaussian probability density function pR,a(y)=(2π)−n/2det⁡(R)−1/2exp⁡(−(y−a)TR−1(y−a)/2),p_{R,a}(y) = (2\pi)^{-n/2} \det(R)^{-1/2} \exp(-(y-a)^T R^{-1}(y-a)/2), based on NN independent samples y1,y2,…,yN∈Rny_1, y_2, \ldots, y_N \in \mathbf{R}^n. (a) We first consider the estimation problem when there are no additional constraints on RR and aa. Let μ\mu and YY be the sample mean and covariance, defined as μ=1N∑k=1Nyk,Y=1N∑k=1N(yk−μ)(yk−μ)T.\mu = \frac{1}{N} \sum_{k=1}^N y_k, \qquad Y = \frac{1}{N} \sum_{k=1}^N (y_k - \mu)(y_k - \mu)^T. Show that the log-likelihood function l(R,a)=−(Nn/2)log⁡(2π)−(N/2)log⁡det⁡R−(1/2)∑k=1N(yk−a)TR−1(yk−a)l(R, a) = -(Nn/2)\log(2\pi) - (N/2)\log \det R - (1/2)\sum_{k=1}^N (y_k - a)^T R^{-1}(y_k - a) can be expressed as l(R,a)=N2(−nlog⁡(2π)−log⁡det⁡R−tr(R−1Y)−(a−μ)TR−1(a−μ)).l(R, a) = \frac{N}{2}\left(-n\log(2\pi) - \log \det R - \mathbf{tr}(R^{-1}Y) - (a - \mu)^T R^{-1}(a - \mu)\right). Use this expression to show that if Y≻0Y \succ 0, the ML estimates of RR and aa are unique, and given by aml=μ,Rml=Y.a_{\mathrm{ml}} = \mu, \qquad R_{\mathrm{ml}} = Y. (b) The log-likelihood function includes a convex term (−log⁡det⁡R-\log \det R), so it is not obviously concave. Show that ll is concave, jointly in RR and aa, in the region defined by R⪯2Y.R \preceq 2Y. This means we can use convex optimization to compute simultaneous ML estimates of RR and aa, subject to convex constraints, as long as the constraints include R⪯2YR \preceq 2Y, i.e., the estimate RR must not exceed twice the unconstrained ML estimate.

Related theory

Browse the problem library