Linear discriminant analysis
Linear Discriminant Analysis[edit]
Linear Discriminant Analysis (LDA) is a statistical technique used in machine learning and pattern recognition to find a linear combination of features that characterizes or separates two or more classes of objects or events. It is a supervised learning algorithm that has been widely used in various fields, including computer vision, bioinformatics, and finance.
Overview[edit]
LDA aims to find a linear projection of the data that maximizes the separation between different classes while minimizing the variance within each class. The goal is to reduce the dimensionality of the data while preserving the discriminatory information. By projecting the data onto a lower-dimensional space, LDA can effectively classify new instances based on their feature values.
Mathematical Formulation[edit]
Let's consider a dataset with *n* samples and *d* features, where each sample belongs to one of *k* classes. The goal of LDA is to find a transformation matrix **W** that maps the original *d*-dimensional feature space to a lower-dimensional space, such that the between-class scatter is maximized and the within-class scatter is minimized.
The between-class scatter matrix **SB** is defined as the sum of the outer products of the difference between the class means and the overall mean:
- SB** = Σ(*mi* - *m*)(*mi* - *m*)^T,
where *mi* is the mean vector of class *i* and *m* is the overall mean vector.
The within-class scatter matrix **SW** is defined as the sum of the covariance matrices of each class:
- SW** = Σ**Si**,
where **Si** is the covariance matrix of class *i*.
The objective of LDA is to find the transformation matrix **W** that maximizes the ratio of the determinant of **SB** to the determinant of **SW**. This can be achieved by solving the generalized eigenvalue problem:
- SB** **W** = λ**SW** **W**,
where λ is the eigenvalue and **W** is the eigenvector matrix.
Steps of Linear Discriminant Analysis[edit]
1. Compute the mean vectors and covariance matrices for each class. 2. Compute the between-class scatter matrix **SB** and the within-class scatter matrix **SW**. 3. Solve the generalized eigenvalue problem **SB** **W** = λ**SW** **W** to obtain the eigenvectors and eigenvalues. 4. Sort the eigenvectors in descending order based on their corresponding eigenvalues. 5. Select the top *k* eigenvectors to form the transformation matrix **W**. 6. Project the data onto the lower-dimensional space using **W**.
Applications[edit]
Linear Discriminant Analysis has various applications in different domains. Some of the notable applications include:
- Face Recognition: LDA has been widely used in face recognition systems to extract discriminative features from facial images and improve classification accuracy. - Bioinformatics: LDA has been applied to analyze gene expression data and identify genes that are differentially expressed between different biological conditions. - Finance: LDA has been used in financial markets to classify and predict stock price movements based on various financial indicators.
Conclusion[edit]
Linear Discriminant Analysis is a powerful technique for dimensionality reduction and classification. By finding a linear projection that maximizes the separation between classes, LDA can effectively classify new instances based on their feature values. Its applications span across various fields, making it a valuable tool in machine learning and pattern recognition.
See Also[edit]
References[edit]
- Fisher, R. A. (1936). "The Use of Multiple Measurements in Taxonomic Problems". Annals of Eugenics. 7 (2): 179–188.
-
Linear Discriminant Analysis Plot
-
Fisher's Linear Discriminant for Two Classes
-
3D Discriminant for Four Classes
-
3D Projections in Linear Discriminant Analysis
Ad. Transform your health with W8MD Weight Loss, Sleep & MedSpa

Tired of being overweight?
Special offer:
Budget GLP-1 weight loss medications
- Semaglutide starting from $29.99/week and up with insurance for visit of $59.99 and up per week self pay.
- Tirzepatide starting from $45.00/week and up (dose dependent) or $69.99/week and up self pay
✔ Same-week appointments, evenings & weekends
Learn more:
- GLP-1 weight loss clinic NYC
- W8MD's NYC medical weight loss
- W8MD Philadelphia GLP-1 shots
- Philadelphia GLP-1 injections
- Affordable GLP-1 shots NYC
- Budget GLP-1 shots
|
WikiMD Medical Encyclopedia |
Medical Disclaimer: WikiMD is for informational purposes only and is not a substitute for professional medical advice. Content may be inaccurate or outdated and should not be used for diagnosis or treatment. Always consult your healthcare provider for medical decisions. Verify information with trusted sources such as CDC.gov and NIH.gov. By using this site, you agree that WikiMD is not liable for any outcomes related to its content. See full disclaimer.
Credits:Most images are courtesy of Wikimedia commons, and templates, categories Wikipedia, licensed under CC BY SA or similar.
Translate this page: - East Asian
中文,
日本,
한국어,
South Asian
हिन्दी,
தமிழ்,
తెలుగు,
Urdu,
ಕನ್ನಡ,
Southeast Asian
Indonesian,
Vietnamese,
Thai,
မြန်မာဘာသာ,
বাংলা
European
español,
Deutsch,
français,
Greek,
português do Brasil,
polski,
română,
русский,
Nederlands,
norsk,
svenska,
suomi,
Italian
Middle Eastern & African
عربى,
Turkish,
Persian,
Hebrew,
Afrikaans,
isiZulu,
Kiswahili,
Other
Bulgarian,
Hungarian,
Czech,
Swedish,
മലയാളം,
मराठी,
ਪੰਜਾਬੀ,
ગુજરાતી,
Portuguese,
Ukrainian
