Example for Discriminant Analysis

A high school administrator wants to create a model to classify future students into one of three educational tracks. The administrator randomly selects 180 students and records an achievement test score, a motivation score, and the current track for each.

  1. Open the sample data set, EducationPlacement.MTW.
  2. Choose Stat > Multivariate > Discriminant Analysis.
  3. In Groups, enter Track.
  4. In Predictors, enter Test Score and Motivation.
  5. Under Discriminant Function, ensure that Linear is selected.
  6. Click OK.

Interpret the results

The Summary of Classification table shows the proportion of observations correctly placed into their true groups by the model. The school administrator uses the results to see how accurately the model classifies the students. Overall, 93.9% of students were placed into the correct educational track. Group 2 had the lowest proportion of correct placement, with only 53 of 60 students, or 88.3%, correctly placed into that educational track.

The Summary of Misclassified Observations table indicates into which group an observation should have been placed. The school administrator uses the results to see which individual students were misclassified. For example, student 4 should have been placed into group 2, but was incorrectly placed into group 1.

Linear Method for Response: Track
Predictors: Test Score, Motivation

Groups

Group       1       2       3
Count606060

Summary of Classification


True Group
Put into Group123
15950
21533
30257
Total N606060
N correct 595357
Proportion0.9830.8830.950

Correct Classifications

NCorrectProportion
1801690.939

Squared Distance Between Groups

123
10.000012.985348.0911
212.98530.000011.3197
348.091111.31970.0000

Linear Discriminant Function for Groups

123
Constant-9707.5-9269.0-8921.1
Test Score17.417.016.7
Motivation-3.2-3.7-4.3

Summary of Misclassified Observations

ObservationTrue GroupPred GroupGroupSquared
Distance
Probability
4**1213.5240.438
      23.0280.562
      325.5790.000
65**2112.7640.677
      24.2440.323
      329.4190.000
71**2113.3570.592
      24.1010.408
      327.0970.000
78**2112.3270.775
      24.8010.225
      329.6950.000
79**2111.5280.891
      25.7320.109
      332.5240.000
100**2115.0160.878
      28.9620.122
      338.2130.000
107**23139.02260.000
      27.36040.032
      30.52490.968
116**23131.8980.000
      27.9130.285
      36.0700.715
123**32130.1640.000
      25.6620.823
      38.7380.177
124**32126.3280.000
      24.0540.918
      38.8870.082
125**32128.5420.000
      23.0590.521
      33.2300.479