Tutorials › Multivariate Statistics (Graduate) › Multiclass LDA Boundaries And Decision Regions

Discriminant Analysis Theory · Tutorial 591 of 975

Multiclass LDA Boundaries And Decision Regions

Derive the pairwise LDA hyperplanes and use score dominance to describe each class’s decision region, including cases where ties do not form a separating boundary.

Intermediate 11 min read

What You'll Learn

  • Derive the affine score difference for two Gaussian classes with shared covariance.
  • Identify when a pairwise score-equality set is a genuine hyperplane.
  • Express each multiclass decision region as an intersection of half-spaces.
  • Determine which parts of a pairwise hyperplane are active in the multiclass rule.
  • Distinguish a maximal tie from a topological boundary when score functions coincide.

From Linear Scores to Multiclass Geometry

In linear discriminant analysis, every class is scored by an affine function of the observation. Comparing two such scores produces a linear inequality; comparing one score with all the others produces a class decision region. The geometry is therefore simple to state, but two distinctions matter: a pairwise equality plane need not be an active part of the multiclass boundary, and a tie at the maximum need not be a boundary when two score functions are identical.

Assume there are \(K\) classes and an observation \(x\in\mathbb{R}^p\). Conditional on class \(k\), suppose \(X\sim N(\mu_k,\Sigma)\), where the common covariance matrix \(\Sigma\) is positive definite. Let the class prior probabilities satisfy \(\pi_k>0\) and \(\sum_{k=1}^K\pi_k=1\). Under zero-one misclassification loss, a Bayes rule assigns \(x\) to a class with the largest prior-weighted Gaussian density. Equivalently, it maximizes the following discriminant score:

$$ \delta_k(x) = x^\mathsf{T}\Sigma^{-1}\mu_k -\frac{1}{2}\mu_k^\mathsf{T}\Sigma^{-1}\mu_k +\log \pi_k. $$

This score follows by taking the log of \(\pi_k f_k(x)\) and removing terms common to every class. In particular, the quadratic term in \(x\) cancels because all classes share \(\Sigma\). The class assigned at a tie depends on the chosen tie-breaking rule; for geometric descriptions, it is useful first to retain all maximizing classes.

Pairwise Score Equality

Fix two distinct class labels \(i\) and \(j\). Subtracting their scores gives

$$ \delta_i(x)-\delta_j(x) = x^\mathsf{T}\Sigma^{-1}(\mu_i-\mu_j) -\frac{1}{2}\left( \mu_i^\mathsf{T}\Sigma^{-1}\mu_i -\mu_j^\mathsf{T}\Sigma^{-1}\mu_j \right) +\log\frac{\pi_i}{\pi_j}. $$

The equality set is affine. If \(\mu_i\ne\mu_j\), positive definiteness makes \(\Sigma^{-1}\) nonsingular, so the coefficient vector \(\Sigma^{-1}(\mu_i-\mu_j)\) is nonzero. The equality set is then a genuine hyperplane in \(\mathbb{R}^p\). The sign of the same affine expression tells which side favors each class.

Definition: For \(\mu_i\ne\mu_j\), the pairwise LDA hyperplane for classes \(i\) and \(j\) is the set of \(x\) satisfying \(\delta_i(x)=\delta_j(x)\). A point on this plane favors neither class over the other by score alone. It is an active multiclass interface only if their tied score is also at least as large as every other class score.

If the means coincide, the linear term in the score difference vanishes. The difference is then the constant \(\log(\pi_i/\pi_j)\). With unequal priors, the scores never tie; with equal priors, the score functions are identical everywhere. Thus, in these cases the equality set is respectively empty or all of \(\mathbb{R}^p\), not a hyperplane.

Worked Example: A Pairwise Hyperplane with Unequal Priors

Take two classes in two dimensions with \(\Sigma=\begin{pmatrix}4&1\\1&2\end{pmatrix}\), \(\mu_1=(0,0)^\mathsf{T}\), \(\mu_2=(2,1)^\mathsf{T}\), \(\pi_1=0.6\), and \(\pi_2=0.4\). Find the boundary and determine which side favors class 2.

First, \(\det(\Sigma)=8-1=7\), so \(\Sigma^{-1}=\frac{1}{7}\begin{pmatrix}2&-1\\-1&4\end{pmatrix}\). Consequently, \(\Sigma^{-1}\mu_2=(3/7,2/7)^\mathsf{T}\), and \(\mu_2^\mathsf{T}\Sigma^{-1}\mu_2=2(3/7)+1(2/7)=8/7\).

Since \(\mu_1=0\), the score difference is \[ \delta_2(x)-\delta_1(x) = \frac{3x_1+2x_2}{7}-\frac{4}{7}+\log\frac{2}{3}. \] Setting this equal to zero gives \(3x_1+2x_2=4+7\log(3/2)\), an affine line. Class 2 has the larger score on the side \(3x_1+2x_2>4+7\log(3/2)\); class 1 has the larger score on the other side.

For a sign check, at \(x=(0,0)^\mathsf{T}\), the difference is \(-4/7+\log(2/3)<0\), so class 1 wins. At \(x=(3,0)^\mathsf{T}\), it is \(9/7-4/7+\log(2/3)=5/7-\log(3/2)>0\), so class 2 wins. These points lie on the predicted sides of the line.

Decision Regions as Intersections of Half-Spaces

For each class, define its weak score-dominance region to include every observation at which that class attains the maximum score. These regions can overlap at ties. A deterministic classifier can assign tied points by a rule, but the weak regions expose the full geometry without hiding ties.

Theorem: Under the shared positive-definite covariance model above, the weak decision region for class \(i\) is \[ R_i=\{x\in\mathbb{R}^p:\delta_i(x)\geq\delta_j(x)\text{ for every }j\} =\bigcap_{j\ne i}\{x:\delta_i(x)-\delta_j(x)\geq 0\}. \] Each comparison is an affine half-space when \(\mu_i\ne\mu_j\); if the means coincide, it is either a constant true constraint or a constant false constraint. Hence \(R_i\) is a closed intersection of half-spaces, possibly empty or lower-dimensional.

Proof. By definition, \(x\in R_i\) exactly when \(\delta_i(x)\) is at least every score \(\delta_j(x)\). This is equivalent to the finite collection of inequalities \(\delta_i(x)-\delta_j(x)\geq0\), one for each \(j\ne i\), which proves the set equality. Each difference is affine by the displayed score subtraction. Its nonnegative set is a closed half-space when its linear coefficient is nonzero, and is all or none of \(\mathbb{R}^p\) when the difference is a constant. A finite intersection of closed sets is closed. The intersection may be empty or have dimension smaller than \(p\), so neither nonemptiness nor a full-dimensional region is guaranteed. \(\square\)

This description also explains why pairwise planes alone do not determine the visible multiclass boundary. The part of the plane for classes \(i,j\) relevant to their shared maximizing region is \(\{x:\delta_i(x)=\delta_j(x)\geq\delta_m(x)\text{ for every }m\}\). Equality without the dominance condition may be hidden below a third class’s score.

Worked Example: Three Regions in the Plane

Let \(\Sigma=I_2\), let all three priors be equal, and take \(\mu_1=(0,0)^\mathsf{T}\), \(\mu_2=(2,0)^\mathsf{T}\), and \(\mu_3=(0,2)^\mathsf{T}\). The common log-prior term does not affect comparisons, so use scores with that term removed: \(\delta_1(x)=0\), \(\delta_2(x)=2x_1-2\), and \(\delta_3(x)=2x_2-2\).

For class 1 to win, it must satisfy \(0\geq2x_1-2\) and \(0\geq2x_2-2\). Thus \(R_1=\{x:x_1\leq1,\ x_2\leq1\}\).

For class 2 to win, comparison with class 1 gives \(2x_1-2\geq0\), or \(x_1\geq1\). Comparison with class 3 gives \(2x_1-2\geq2x_2-2\), or \(x_1\geq x_2\). Therefore \(R_2=\{x:x_1\geq1,\ x_1\geq x_2\}\).

Similarly, class 3 must satisfy \(x_2\geq1\) and \(x_2\geq x_1\), so \(R_3=\{x:x_2\geq1,\ x_2\geq x_1\}\). The plane where classes 2 and 3 tie is the line \(x_1=x_2\), but its active part is the ray \(x_1=x_2\geq1\). On the rest of that line, class 1 has a strictly larger score. The half-space intersections identify both the regions and the active portions of their pairwise ties.

Active Interfaces and Degenerate Ties

A tie at the maximum is always a point of overlap between the corresponding weak regions. When the two means are distinct, it is also a topological boundary point of each region. To see this, set \(a=\Sigma^{-1}(\mu_i-\mu_j)\), which is nonzero. At a point \(x\) where \(i\) and \(j\) tie at the maximum, consider \(x+ta\). The score difference changes by \(t\,a^\mathsf{T}a\). For arbitrarily small positive \(t\), class \(i\)'s score exceeds class \(j\)'s; for negative \(t\), class \(j\)'s score exceeds class \(i\)'s. In particular, points outside \(R_i\) and outside \(R_j\) occur arbitrarily close to \(x\), while \(x\) belongs to both closed regions. So \(x\) lies on the boundary of both.

This argument depends on the score difference being nonconstant. If \(\mu_i=\mu_j\) and \(\pi_i=\pi_j\), the score functions are identical. With only these two classes, both weak regions equal all of \(\mathbb{R}^p\); their overlap is all of \(\mathbb{R}^p\), but their topological boundaries are empty. With additional classes, their shared score may be maximal only on part of the space, and the two regions still coincide there. Such a tie does not by itself separate one region from the other.

Worked Example: An Inactive Equality and an Identical-Score Tie

First consider three one-dimensional classes with common variance \(1\), equal priors, and means \(\mu_1=-1\), \(\mu_2=1\), and \(\mu_3=0\). Ignoring the common prior term, the scores are \(\delta_1(x)=-x-\frac12\), \(\delta_2(x)=x-\frac12\), and \(\delta_3(x)=0\).

Classes 1 and 2 tie when \(-x-\frac12=x-\frac12\), hence at \(x=0\). At that point both scores equal \(-1/2\), while class 3 scores \(0\). Thus the pairwise equality is not a maximal tie and is not an active interface. The regions are \(R_1=\{x:x\leq-1/2\}\), \(R_3=[-1/2,1/2]\), and \(R_2=\{x:x\geq1/2\}\), as follows by requiring each score to dominate the other two.

For the degeneracy, instead take just two classes with common variance \(1\), means \(\mu_1=\mu_2=0\), and equal priors. Both scores are the same constant after removing terms common to the classes. Each weak region is \(\mathbb{R}\), and their overlap is \(\mathbb{R}\). Since the topological boundary of \(\mathbb{R}\) in itself is empty, the maximal tie does not describe a separating boundary.

Common Mistake

A tempting but incorrect claim is: “Whenever \(\delta_i(x)=\delta_j(x)\geq\delta_m(x)\) for all \(m\), the point \(x\) lies on a decision boundary between \(i\) and \(j\).” The condition correctly describes \(R_i\cap R_j\), but an overlap need not be a boundary. The identical-score example shows why: both regions can contain an open set—or all of the space—without being separated there.

The correction is to distinguish three statements. Pairwise equality identifies a score tie; equality at the maximum identifies overlap of the weak regions; and a genuine separating interface requires boundary behavior. For distinct means, the nonconstant score difference ensures that a maximal tie lies on the topological boundary of both regions. For identical score functions, that conclusion does not follow. Also, a pairwise plane may be inactive when another class scores higher, as in the one-dimensional example.

Key takeaway: Under a common positive-definite covariance, every pairwise score comparison is affine, and each weak multiclass decision region is an intersection of affine half-spaces. To identify an actual interface, check both score dominance and whether the tied score functions can separate locally.

Check Your Understanding

Use the score-dominance formulation to answer each question.

  1. Why does the pairwise score difference have no quadratic term in \(x\) when the class covariance matrices are shared?
  2. What condition on the class means ensures that a pairwise equality set is a genuine hyperplane?
  3. For three classes, what additional condition must hold for a point on the \(i,j\) equality plane to be a maximal tie?
  4. Can a pairwise equality plane contain points that do not belong to either class’s shared maximizing region? Explain.
  5. Why can identical score functions produce an overlap that is not a separating boundary?
Clinical Biostats