Linear Discriminant Analysis
Linear Discriminant Analysis
Tushar B. Kute,
http://tusharkute.com
Introduction to LDA
Ref. https://www.analyticssteps.com
Example:
• Extensions to LDA:
– Quadratic Discriminant Analysis (QDA): Each class
deploys its own estimate of variance, or the
covariance where there are multiple input variables.
– Flexible Discriminant Analysis (FDA): Where the
combinations of non-linear sets of inputs are
deployed such as splines.
– Regularized Discriminant Analysis (RDA): It adds
regularization into the estimate of the variance, or
covariance that controls the impact of various
variables on LDA.
Limitations of Logistic Regression
Ref. https://www.knowledgehut.com
Practical approach to an LDA
• Assumptions
– Every feature either be variable, dimension, or attribute
in the dataset has gaussian distribution, i.e, features
have a bell-shaped curve.
– Each feature holds the same variance, and has varying
values around the mean with the same amount on
average.
– Each feature is assumed to be sampled randomly.
– Lack of multicollinearity in independent features and
there is an increment in correlations between
independent features and the power of prediction
decreases.
How LDA works?
Where x = input.
k = output class.
Plk = Nk/n or base probability of each class
observed in the training data. It is also called prior
probability in Bayes’ Theorem.
fk(x) = estimated probability of x belonging to
class k.
How does an LDA model make predictions?
• There are various techniques used for the classification of data and
reduction in dimension, among which Principal Component
Analysis(PCA) and Linear Discriminant Analysis(LDA) are commonly
used techniques.
• The condition where within -class frequencies are not equal, Linear
Discriminant Analysis can assist data easily, their performance
ability can be checked on randomly distributed test data.
• This method results in the maximization of the ratio between-class
variance to the within-class variance for any dataset and maximizes
separability.
• LDA has been successfully used in various applications, as far as a
problem is transformed into a classification problem, this
technique can be implemented.
LDA vs. PCA
Web Resources
https://mitu.co.in
http://tusharkute.com