RAFisher2cda

Canonical Discriminant Analysis is a dimension-reduction technique related to PCA and CCA.
6.5K Downloads
Updated 30 Jan 2006

View License

Canonical discriminant analysis is a dimension-reduction technique related to principal component analysis and canonical correlation called canonical discriminant analysis. It derives the canonical coefficients parallels that of one-way MANOVA and it finds linear combinations of the quantitative variables that provide maximal separation between the classes or groups in much the same way that principal components summarize total variation.

The output produced are the canonical coefficients and the scored canonical variables. The canonical coefficients are rotated. The ellipse confidence bounds. Also, it proceeds with a Bartlett's approximate chi-squared statistic for testing the canonical correlation coefficients.

In summary, the canonical discriminant analysis:
- Transform the variables so that the pooled within-group covariance matrix is
an identity matrix.
- Compute group means on the transformed variables.
- Performs a principal component analysis on the means, weighting each mean by the number of observations in the group. The eigenvalues are equal to the ratio of between-group variation to the within-group variation in the direction of each principal component. Here, the principal component analysis is runned by the singular value decomposition.
- Back-transform the principal components into the space of the original variables, obtaining the canonical variables.

File gives you the option to get an unbiased or maximum-likelihood parameter estimation.

Cite As

Antonio Trujillo-Ortiz (2024). RAFisher2cda (https://www.mathworks.com/matlabcentral/fileexchange/4836-rafisher2cda), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R11
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0

Were attached the jpg-images of the three Iris plant species.