The minimum distance classifier assigns to the class with the nearest mean in Euclidean distance. It comes from special case 2 of the Gaussian Bayes classifier, , when all prior probabilities are also equal. It is a simpler form of the Linear Classifier.
Main idea
With $\boldsymbol{\Sigma}_i=\sigma^2\mathbf{I}$ the boundary is a hyperplane orthogonal to the line between the means. With equal priors, the rule is: assign $\mathbf{x}$ to the nearest mean. This is template matching.
Special Case 2:
All classes share the same diagonal, scalar covariance matrix , where is the identity matrix.
When this case happens:
- all features (components of ) are statistically uncorrelated
- each feature has the same variance
Useful results:
Discriminant Function
The quadratic term is the same for all classes , so drop it. Then multiply by the constant :
where and is the threshold or bias for class . This is a linear function of , so the result is a linear classifier.
Correction to slide 28
The slide says "multiplying the constant 2". The correct constant is . Multiplying by does not change the decision, and it gives the term in the result.
Decision Boundary
The normal vector of this hyperplane is . So the equation defines a hyperplane orthogonal to the line linking the two means.
Position of the hyperplane:
- with equal priors, and the hyperplane passes through the midpoint
- with , the hyperplane moves away from toward , so the more probable class gets a larger region
Equal Priors: Minimum Distance Classifier
Start again from:
If the prior probabilities are the same for all classes, is the same for all classes and can be dropped. Multiply by the positive constant :
Correction to slide 29
The slide writes . This is missing the minus sign and the square. is the squared Euclidean distance, so the correct result is . The largest is the smallest distance.
Decision rule:
- measure the Euclidean distance from to each of the mean vectors
- assign to the class of the nearest mean
This is a minimum distance classifier. If each mean vector is an ideal prototype or template for the patterns in its class, the procedure is template matching.
flowchart TD A["Gaussian classes<br/>Σi = σ²I"] --> B{"Equal priors?"} B -->|"No"| C["Linear classifier<br/>gi(x) = μiᵀx − μiᵀμi/2 + σ² ln p(ωi)"] B -->|"Yes"| D["Minimum distance classifier<br/>gi(x) = −‖x − μi‖²"] D --> E["Template matching<br/>nearest mean"]