Linear Discriminant Analysis (LDA)

The LDA is similar to the QDA, however we assume that the correlation structure is the same for all classes, therefore we utilize the mean valor for the standard deviations and correlations between the outcomes.

The lack of flexibility of the LDA does not permit the method to capture the non-linearity of the problem. By applying the same standard deviations and correlations, the boundary is a line, as with logistic regression.

In the case of 784 predictors, it becomes unpratical to use QDA, due to overfitting and the number of correlations that must be calculated.
LDA would have to estimate over 600,000 parameters and QDA would have to estimate over 6,000,000 parameters.

QDA and LDA for 3 classes: 1, 2, 7

We will look up on the QDA and LDA models with 3 outcomes. The purpose here is to see how these techniques relies on multivariate normal distributions and how the accuracy gets lower when there are more outcomes and the predictors do not clearly follow a normal distribution.
We sample from these 3 outcomes, create training and test subsets and do some preprocessing: