In this link, the ellipse of a covariance matrix is discussed in more details. Basically, the major axis can be determined by finding the largest eigenvalue of the covariance matrix and the the chi square value with given confidence level, thus
$$
\text{L} = \sqrt{(\chi^{2}_{n,\alpha}) \lambda_{max}}
$$
where L is half of the major axis length. For 2D case, given the confidence level ( $95 \%$ or $\alpha = 0.05$), $\chi^{2}_{n=2,\alpha} = 5.9915$. (i.e. using chi2inv(0.95,2)
in Matlab), the result is
covariance =
5.6681 4.6314
4.6314 5.5951
mean =
-0.0208 0.0048
eigenMax =
19.1943
My question is that how can I expand the aforementioned approach for ellipsoid? How can I determine the maximum axis? Should I merely determine the maximum eigenvalue and multiple it with the chi square value? Thank you.