![]() |
VOOZH | about |
Now, Let's consider a classification problem represented by a Bayes Probability distribution P(Y=k | X=x), LDA does it differently by trying to model the distribution of X given the predictors class (I.e. the value of Y) P(X=x| Y=k):
In LDA, we assume that P(X | Y=k) can be estimated to the multivariate Normal distribution that is given by following equation:
where,
and P(Y=k) =\pi_k. Now, we try to write the above equation with the assumptions:
Now, we take log both sides and maximizing the equation, we get the decision boundary:
For two classes, the decision boundary is a linear function of x where both classes give equal value, this linear function is given as:
For multi-class (K>2), we need to estimate the pK means, pK variance, K prior proportions and . Now, we discuss in more detail about Quadratic Discriminant Analysis.
Quadratic discriminant analysis is quite similar to Linear discriminant analysis except we relaxed the assumption that the mean and covariance of all the classes were equal. Therefore, we required to calculate it separately.
Now, for each of the class y the covariance matrix is given by:
By adding the following term and solving (taking log both side and ). The quadratic Discriminant function is given by: