concept discriminant function in category R
appears as: discrimint functions, discriminant function, discrimint function

This is an excerpt from Manning's book Machine Learning with R, the tidyverse, and mlr.
Figure 5.3. Learning a discriminant function in two dimensions. LDA learns a new axis such that, when the data is projected onto it (dashed lines), it maximizes the difference between class means while minimizing intra-class variance.
and s2 are the mean and variance of each class along the new axis, respectively.
![]()
In this way, the discriminant function (DF) in this equation is a linear combination of variables var1, var2 and var3. The combination is linear because we are simply adding together the contributions from each variable. The values that each variable is multiplied by are called the canonical discriminant function coefficients and weight each variable by how much it contributes to class separation. In other words, variables that contribute most to class separation will have larger absolute canonical DF coefficients (positive or negative). Variables that contain little or no class-separation information will have canonical DF coefficients closer to zero.
Discriminant analysis is a supervised learning algorithm that projects the data onto a lower-dimensional representation to create discriminant functions. Discriminant functions are linear combinations of the original (continuous) variables that maximize the separation of class centroids while minimizing the variance of each class along them.