Math 2.0

Statistics Definition

Linear discriminant analysis

Builds on Multivariate normal distributionPositive definite matrixCovariance matrix

Definition

Let K≥2K \ge 2 be the number of classes. For k=1,…,Kk = 1, \ldots, K let πk>0\pi_k > 0 be prior probabilities with π1+⋯+πK=1\pi_1 + \cdots + \pi_K = 1, and let μk∈ℝp\mu_k \in \R^p be class means. Let Σ\Sigma be a positive definite p×pp \times p matrix, the common covariance matrix. The linear discriminant functions are δk(x)=xTΣ−1μk−12μkTΣ−1μk+log⁡πk,x∈ℝp.\delta_k(x) = x^T \Sigma^{-1} \mu_k - \tfrac{1}{2} \mu_k^T \Sigma^{-1} \mu_k + \log \pi_k, \qquad x \in \R^p. Linear discriminant analysis assigns xx to a class kk for which δk(x)\delta_k(x) is largest. In practice the parameters are estimated from a labelled training sample. One uses the class proportions for πk\pi_k, the class sample means for μk\mu_k and the pooled sample covariance matrix for Σ\Sigma.

Remarks

If the class kk has the distribution Np(μk,Σ)N_p(\mu_k, \Sigma) and prior probability πk\pi_k, this rule is the Bayes rule. Indeed, δk(x)\delta_k(x) differs from log⁡(πkfk(x))\log(\pi_k f_k(x)) by a term that does not depend on kk, where fkf_k is the density of class kk. Each δk\delta_k is affine in xx, so the boundary between two classes is a hyperplane. For two classes, xx goes to class 11 when (μ1−μ2)TΣ−1x−12(μ1−μ2)TΣ−1(μ1+μ2)>log⁡(π2/π1).(\mu_1 - \mu_2)^T \Sigma^{-1} x - \tfrac{1}{2} (\mu_1 - \mu_2)^T \Sigma^{-1} (\mu_1 + \mu_2) > \log(\pi_2 / \pi_1). Example: with p=1p = 1, μ1=1\mu_1 = 1, μ2=−1\mu_2 = -1, Σ=1\Sigma = 1 and π1=π2\pi_1 = \pi_2, the condition is 2x>02x > 0, so xx goes to class 11 when x>0x > 0. Non-example: if the normal classes have different covariance matrices Σk\Sigma_k, the Bayes rule has quadratic boundaries. This rule is quadratic discriminant analysis, not a linear rule.

Reading path

To understand this page from the ground up, read these 4 pages in order. The foundations come first.

Show the path as a graph
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Covariance matrix concept
  2. Multivariate normal distribution concept
  3. Positive definite matrix concept
  4. Linear discriminant analysis definition

Further reading

  1. Web https://en.wikipedia.org/wiki/Linear_discriminant_analysis
About this page
TagGTBMW9QXST
URIm2://GTBMW9QXST
Kinddefinition
WritingW0 stub
MSC62H30
DefinesLinear discriminant analysis
UsesMultivariate normal distribution, Positive definite matrix, Covariance matrix

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)
  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.