Choose weights to trade off expected return and variance (Markowitz). With expected returns and covariance (expectation-variance):
The global minimum-variance portfolio is .
The eigenvalues of give independent risk factors; tiny eigenvalues make unstable, so estimates are shrunk or regularised (compare overfitting-regularization). Background: risk-and-return.