Multivariate Mean and Covariance Calculator
This program
Should take a multivariate dataset, one observation per line,
and calculate the mean and covariance matrix. The covariance is the
interrelatedness between random variables, the mean is the expected value
of the vector.
4 Observations of 3 Dimensional Data
The first observation differs from the mean by:
[ -5.000000000000E-01 -5.000000000000E-01 -1.250000000000E+00 ]
Euclidean Distance sqrt(v`v):
1.43614066163451
Hotelling T^2 { v` S^-1 v }:
[ 2.249999999968E+00 ]
Mahalinobis Distance { sqrt(v` S^-1 v) }:
1.4999999999895
where the inverse covariance matrix is:
[ 1.800000000005E+01 2.999999999954E+00 -5.999999999986E+00 ]
[ 2.999999999954E+00 2.999999999926E+01 -1.799999999956E+01 ]
[ -5.999999999986E+00 -1.799999999956E+01 1.199999999974E+01 ]
David Forrest 3 june 1998
Uses Perl ,
Math::MatrixReal .
Calculations per eqn 1.40,
Rencher, A. 1998.
Multivariate Statistical Inference and
Applications . New York:Wiley. p. 9.
Known Bugs:
No warning for observations with different dimensions.
Insufficinet data does not display gracefully
other items of interest:
This page is
Very Good
Good
Useful
Ok
Poor
Wrong
Boring
Awful
Please comment on:
Content, Errors & Omissions,
Ease of use, Speed on dialup connections,
Compatibility with your equipment/software:
or anything else you'd like.
---------
If you would like to receive a response, please give
me a means of contacting you. Thanks for your time,
Dave Forrest, P.E., C.Q.E.
dforrest@virginia.edu
Validate