FreeStatisticalTools.com
Multivariate analysis

Discriminant Analysis Online

Find the combinations of predictors that best separate known groups, and see how accurately the functions classify cases.

Free · No sign-upReplaces SPSS DiscriminantWorks with your data
Updated · By Bibin Xavier

Data 120 × 6

Paste from Excel, or drop a CSV, TSV or Excel file here.
Example data 120 rows, 6 variables. Data stays in this browser tab.
Plottext · 120 levelsCultivartext · 3 levelsLeaf_LengthnumericLeaf_WidthnumericStem_HeightnumericYield_kgnumeric
L001Amber5.343.2518.41.19
L002Amber4.663.5913.91.15
L003Amber5.143.39161.4
L004Amber4.733.6314.41.13
L005Amber5.142.598.51.18
L006Amber4.823.9515.91.23
L007Amber4.913.2315.11.19
L008Amber5.733.7416.51.01

Variables and options

Predictors 4 selected · min 2
Results update automatically when you change an option.

Results

120 rows · example data
Correctly classified87.5%
Discriminant functions2
Chance accuracy33.3%
Table 1

Eigenvalues and Wilks’ lambda

FunctionEigenvalue% of varianceCanonical rWilks’ Λχ²dfp
1 through 25.99795.3.926.110254.508< .001
20.2944.7.477.77329.803< .001

Note. The Wilks test in each row checks that function and all later ones.

Table 2

Standardized canonical discriminant coefficients

PredictorFunction 1Function 2
Leaf_Length0.459-0.091
Leaf_Width-0.7050.720
Stem_Height0.4560.024
Yield_kg0.4000.569
Table 3

Group centroids

GroupFunction 1Function 2
Amber-3.2690.222
Basil0.765-0.738
Cedar2.5040.516
Table 4

Classification results

Actual groupPredicted AmberPredicted BasilPredicted Cedar% correct
Amber4000100.0
Basil330775.0
Cedar053587.5

Note. 87.5% of original grouped cases correctly classified.

Discriminant function scores

Interpretation

The first function accounts for 95.3% of the between-group variance (canonical r = .926) and is statistically significant. The functions classify 87.5% of cases correctly, compared with 33.3% expected by chance.

The first discriminant function was significant, Λ = .110, χ²(8) = 254.50, p < .001, canonical R = .93; 87.5% of cases were correctly classified.

How to cite this tool

Using these results in a thesis, journal article, report or class assignment? Please cite this free tool so others can find it. It keeps the site free.

APA 7

Xavier, B. (2026). Discriminant Analysis Online [Web application]. FreeStatisticalTools.com. https://freestatisticaltools.com/discriminant-analysis/

BibTeX

@software{xavier_discriminantanalysis_2026,
  author = {Xavier, Bibin},
  title = {Discriminant Analysis Online},
  publisher = {FreeStatisticalTools.com},
  year = {2026},
  url = {https://freestatisticaltools.com/discriminant-analysis/},
  note = {Web application}
}

Suggested sentence for your methods section: “The analysis was carried out with the free Discriminant Analysis Online tool on FreeStatisticalTools.com (Xavier, 2026).”

What is discriminant analysis?

Discriminant analysis finds the linear combinations of predictors that best separate known groups, then uses them to classify cases. It is the predictive counterpart of MANOVA.

When to use discriminant analysis

Use it to predict group membership from continuous predictors, or to describe which variables separate the groups. It complements MANOVA.

Assumptions

  • Multivariate normality within groups.
  • Equal covariance matrices across groups.
  • More cases in the smallest group than predictors.

How to use this tool

  1. Enter your data. Paste columns from Excel, Google Sheets or SPSS with variable names in the first row, or upload a CSV or Excel file. The example data shows the expected layout.
  2. Choose the variables. Select the predictors and grouping variable.
  3. Set the options. Fill in prior probabilities.
  4. Read the results. Results update automatically. Read the plain-English interpretation, then use Copy table to paste APA-style tables into Word and Copy for the results sentence.

Frequently asked questions

What does Wilks’ lambda show in discriminant analysis?

It tests whether a discriminant function separates the groups significantly. Smaller values mean better separation.

How do I judge classification accuracy?

Compare the percentage correctly classified with the accuracy expected by chance, which the tool reports.

What are standardized coefficients?

They show each predictor’s relative contribution to a function, on a common scale.

Related tools

Browse all categories