For the latest version of JMP Help, visit JMP.com/help.


Multivariate Methods > Discriminant Analysis > Example of Discriminant Analysis
Publication date: 04/21/2023

Example of Discriminant Analysis

In this example, the goal is to identify the species of iris flowers accurately using the values of four measurements taken from the flowers.

1. Select Help > Sample Data Folder and open Iris.jmp.

2. Select Analyze > Multivariate Methods > Discriminant.

3. Select Sepal length, Sepal width, Petal length, and Petal width and click Y, Covariates.

4. Select Species and click X, Categories.

5. Click OK.

Figure 5.2 Discriminant Analysis Report Window 

Discriminant Analysis Report Window

Because there are three classes for Species, there are two canonical variables. In the Canonical Plot, each observation is plotted against the two canonical coordinates. The plot shows that these two coordinates separate the three species. Since there was no validation set, the Score Summaries report shows a panel for the Training set only. When there is no validation set, the entire data set is considered the Training set. Of the 150 observations, only three are misclassified.

Want more information? Have questions? Get answers in the JMP User Community (community.jmp.com).