For fixed vectors in a finite-dimensional Euclidean space, defineThe gradient and Hessian matrix of areTo derive the first identity, differentiate each exponential function and divide the sum of its gradients by . For the second, differentiating a normalized weight gives . Thus , where the weighted covariance matrix is the sum in the displayed Hessian matrix. Differentiating completes the calculation.
The weighted covariance matrix is positive semidefinite, so . Also as . Therefore and share a unique global minimizer, characterized by . The weights place that minimizer in the convex hull of the centres.
For stable numerical evaluation, subtract the largest exponent before computing the normalized weights. This is the log-sum-exp principle and avoids floating-point overflow without changing the gradient. A naive iteration need not converge: in one dimension, centres give with derivative at its unique fixed point. A Newton root-finding iteration or a suitable Quasi-Newton method instead uses the positive curvature of .
Articles by others on the same topic
There are currently no matching articles.