Linear Discriminant Analysis for p eq1

Linear Discriminant Analysis for p=1

The Linear Discriminant Analysis (LDA) classifier results from assuming that the observations within each class come from a normal distribution with a class specific mean and a common variance σ2 , and plugging estimates for these parameters into the Bayes classifier.

Assume that fk(x) is normal or Gaussian:

fk(x)=12πσkexp(−12σk2(x−μk)2)

Where μk and σk2 are the mean and variance for the kth class.
Assume that σ12=⋯=σK2 denoted by σ2:

pk(x)=πk12πσexp(−12σ2(x−μk)2)∑l=1Kπl12πσexp(−12σ2(x−μl)2)

The Bayes classifier assigns an observation X=x to the class for which

δk(x)=x∗μkσ2−μk22σ2+log(πk)

is largest.

If K=2 and π1=π2 then the Bayes decision boundary is:

x=μ12−μ222(μ1−μ2)=μ1+μ22

LDA method uses estimates for the Bayes classifier:

μ^k=1nk∑i:yi=kxiσ^2=1n−K∑k=1K∑i:yi=k(xi−μ^k)2

Where n is the total number of training estimates and nk is the number of training observations in the kth class.

In the absence of any additional information, LDA estimates πk using:

Ï€^k=nkn

The LDA classifier assign an observation X=x to the class for which

δ^k(x)=x∗μ^kσ^2−μ^k22σ^2+log(π^k)

is the largest.

Sources: 1

Connect With Me!