The function returns the elements needed to calculate the quadratic discrimination in (11.48). Use the output from this function in predict_qda (Section A.3.2) to find the predicted groups.
qda(x, y)
Arguments
x: The NxP data matrix.
y: The N-vector of group identities, assumed to be given by the numbers 1,...,K for K groups.
Returns
A list with the following components:
Mean: A PxK matrix, where column K contains the coefficents ak for (11.31). The final column is all zero.
Sigma: A KxPxP array, where the Sigma[k,,] contains the sample covariance matrix for group k, Σk^.