Suppose that there are g classification groups and N observations. The distance from an observation to the multivariate mean of the ith group is the Mahalanobis distance, D2. This is computed as
The Save Discrim command in the popup menu on the platform title bar saves discriminant scores with their formulas as columns in the current data table. SqDist[0] is a quadratic form needed in all the distance calculations. It is the portion of the Mahalanobis distance formula that does not vary across groups. SqDist[i] is the Mahalanobis distance of an observation from the ith centroid. SqDist[0] and SqDist[i] are calculated as
SqDist[i] = SqDist[0] -
Prob[i] =