The Euclidean distance formula you are using is the distance between two 10 -dimensional points. The general ED formula for the distance between points p and q is
ED = sqrt( (p1-q1)**2 + (p2-q2)**2 + ... + (p10 -q10)**2 )
In this case p is the set of 10 X values and q is the center (0,0,0,...0).
So you need to produce a nonsingular 10x10 covariance matrix if you want to compute the Mahalanobis distance.
... View more