Graph connections

Draft

Quadratic Discriminant Analysis

Let each class keep its own covariance shape, producing curved supervised decision boundaries.

algorithm intermediate machine-learningdimensionality-reductionclassification

Hook problem: one shared class shape is too stiff

LDA assumes classes share one covariance shape. That is a useful simplification, but it can fail when one class is stretched, another is round, and the boundary needs to bend.

Quadratic Discriminant Analysis, or QDA, repairs the shared-shape assumption.

Labels change the questionLDA searches for a separating projection; QDA keeps separate class shapes and gets a curved boundary.
A1A2A3B1B2B3
LDAone projection

shared covariance assumption

QDAcurved boundary

separate covariance per class

Important boundary: QDA is not a standard projection method

QDA is mainly a supervised classifier. It appears in this dimensionality-reduction cluster because it is the natural contrast after LDA: instead of one linear discriminant geometry, it models one covariance matrix per class and gets a quadratic decision boundary.

Core invention: separate covariance per class

For each class c, QDA estimates its own mean and covariance. A class score has the form:

logp(xc)+logp(c)\log p(x\mid c)+\log p(c)

The likelihood term uses the class-specific covariance matrix Sigma_c. When those covariance matrices differ, equal-score curves are quadratic.

Trace lab

QDALet each class keep its own covariance, creating quadratic boundaries rather than one shared projection.
Step 1/2: When one shared covariance is too stiff

QDA keeps separate covariance shapes for each class instead of forcing one shared oval.

Working formulaSigma_c for each class c

class shapes differ

Implementation sketch

for each class:
  estimate mean_c and covariance_c;
for a new point:
  score each class with its Gaussian log likelihood plus log prior;
  choose the largest score;

Correctness intuition and cost

QDA is more flexible than LDA because each class can have its own oval shape. That flexibility costs more parameters, so it needs more data and more careful regularization when features are many.

Common confusions

  • QDA does not produce a single low-dimensional embedding like PCA or t-SNE.
  • QDA is supervised; labels are required.
  • Curved boundaries can overfit when each class has too few examples.
Dimensionality reduction pathLinear projections, distance-preserving maps, supervised discriminants, and neighbor embeddings solve different pains.
PCA

Keep the directions where centered data varies most.

MDS

Place points so low-dimensional distances imitate the original distance table.

Isomap

Use neighbor-graph shortest paths before applying an MDS-style layout.

LDA

Use labels to find projections that separate class means while keeping classes tight.

QDA

Let each class keep its own covariance, creating quadratic boundaries rather than one shared projection.

SNE

Match neighbor probabilities between high and low dimensions.

t-SNE

Repair SNE's crowding problem with a heavy-tailed low-dimensional similarity.

UMAP

Build a fuzzy neighbor graph, then optimize a low-dimensional graph with similar membership strengths.

Exercises

  1. What assumption does QDA relax from LDA?
  2. Why can QDA overfit more easily than LDA?
  3. Why should QDA not be described as a general-purpose visualization algorithm?

Graph connections : Quadratic Discriminant Analysis