
DISTANCE FROM MEANName:
where X' is the transpose of X. If the vector X has n rows, then M must be an nxn matrix. The distance from the mean for a matrix X is a commonly used quadratic form:
where X_{i} is the ith row, is the vector of column means, and is the inverse of the variancecovariance matrix of X. That is, D_{i} is the distance of the ith row of the matrix from the mean. D is a vector. In Dataplot, you specify the original matrix, not the variancecovariance matrix.
where <mat1> is a matrix for which the distance from the mean is to be computed; and where <y> is a vector where the resulting distances are saved.
READ MATRIX IRIS.DAT M LET Y = DISTANCE FROM MEAN M PRINT Y
Date created: 6/5/2001 