There will be a total of J classes and indicates the class associated with .
The total sample mean is given as:
The total normalized sum of squares and products (SSQP), the covariance, is given as:
The class mean is given as:
For each class the normalized sum of squares and products (SSQP),the covariance, is given as: