Definition

A linear discriminant function is a function used in pattern classification to separate data into two or more classes. Its output is a linear combination of the input features. Geometrically, it defines a hyperplane that acts as a decision boundary between classes.

Mathematical Expression

For a dimensional input feature vector , a linear discriminant function is defined as:

Where:

  • : The input feature vector, .
  • : The weight vector, .
  • : The bias or threshold.
  • : The dot product of the weight and feature vectors, which is .

Application in Classification

Two-Class Case

For a problem with two classes, a single linear discriminant function is used to make a decision:

  • Assign x to Class 1 if .
  • Assign x to Class 2 if .
  • If , the vector x lies directly on the decision boundary.

Multi-Class Case

For a problem with N classes, N linear discriminant functions are used, one for each class: .

The decision rule is to assign the input vector x to the class i for which the corresponding discriminant function has the highest value:

Assign x to class i if for all .