statable Statistics for study and research

Can the group of a case be recognized from numbers? (discriminant analysis)

In brief

Can students who drop out be recognized by motivation, prior knowledge and study time? Discriminant analysis looks for functions of several numbers that separate groups best, assigns each case to a group and shows with the hit rate how often this is right.

How it works in Statable

  1. "New analysis" (button after the tabs), then choose the card "Can the group of a case be recognized from numbers?".
  2. "Which group should be recognized?": the column with the groups. "From which numbers?": at least two number columns.
  3. The result appears by itself. What counts is the hit rate of the check without the case itself (leave-one-out), not the "learned" one.

What the table looks like

One row per case, one column with the group (2 to 12 groups) and at least two columns with numbers (at most 30). Rows with a gap in one of the numbers are not included; the number is shown in the result. Statable does not calculate if a group has fewer cases than the number of numbers plus 1, if a group has only one case, or if a number column is constant or can be calculated from the others. The reason is then given in a sentence.

Reading the result

Prior probability

Under "More options" you can choose whether the classification treats all groups alike (default, as in SPSS) or by the size of the groups. This changes only the classification and the hit rate, not the functions, the eigenvalues and Wilks' Λ.

Difference from SPSS

Functions, eigenvalues, Wilks' Λ and standardized coefficients are the same (apart from the sign). The classification with equal prior probability and the check without the case itself agree as well.

Requirements and limits

Reporting the result

Wilks' Λ = .023, χ²(8) = 546.12, p < .001; leave-one-out 98.0% correct (largest group 33.3%)

Typical examples

For specialists

R (MASS::lda) with the default prior probability, so that functions, eigenvalues and Wilks' Λ do not depend on the group sizes (as in SPSS). Eigenvalue = svd² · (k - 1)/(n - k); Λ per step as the product of 1/(1 + eigenvalue); χ² = -(n - 1 - (p + k)/2) · ln Λ. Classification with predict and the chosen prior probability, leave-one-out with lda(CV = TRUE). Checked on iris and biopsy against the hand calculation and SPSS.

Related

Open in Statable