Discriminant Analysis
To interactively train a discriminant analysis model, use the Classification Learner app. For greater flexibility, train a discriminant analysis model using fitcdiscr in the command-line interface. After training, predict labels or estimate posterior probabilities by passing the model and predictor data to predict.
Apps
| Classification Learner | Train models to classify data using supervised machine learning | 
Blocks
| ClassificationDiscriminant Predict | Classify observations using discriminant analysis model (Since R2024a) | 
Functions
Objects
| ClassificationDiscriminant | Discriminant analysis classification | 
| CompactClassificationDiscriminant | Compact discriminant analysis classification | 
| ClassificationPartitionedModel | Cross-validated classification model | 
Topics
- Supervised Learning Workflow and AlgorithmsUnderstand the steps for supervised learning and the characteristics of nonparametric classification and regression functions. 
- Parametric ClassificationLearn about parametric classification methods. 
- Discriminant Analysis ClassificationUnderstand the discriminant analysis algorithm and how to fit a discriminant analysis model to data. 
- Creating Discriminant Analysis ModelUnderstand the algorithm used to construct discriminant analysis classifiers. 
- Create and Visualize Discriminant Analysis ClassifierPerform linear and quadratic classification of Fisher iris data. 
- Improving Discriminant Analysis ModelsExamine and improve discriminant analysis model performance. 
- Regularize Discriminant Analysis ClassifierMake a more robust and simpler model by removing predictors without compromising the predictive power of the model. 
- Examine the Gaussian Mixture AssumptionDiscriminant analysis assumes that the data comes from a Gaussian mixture model. Understand how to examine this assumption. 
- Prediction Using Discriminant Analysis ModelsUnderstand how predictclassifies observations using a discriminant analysis model.
- Visualize Decision Surfaces of Different ClassifiersThis example shows how to visualize the decision surface for different classification algorithms.