Quadratic Discriminant Analysis

Quadratic Discriminant Analysis#

Gaussian#

Let the multivariate gaussian be,

P(xμ,σ)=(2πσ2)d/2exp(|xμ|22σ2)

Let the N classes be represented as c{1,2,,N} such that each class has the following statistics:

  • μc : Mean of the class

  • σc : Standard deviation of the class

  • πc : Prior of the class

The optimization problem can be simplified using logarithm to preserve maximization of the Bayes decision,

y^(x)=argmaxclog((2π)d/2P(xμ,σ)πc)=argmaxc|xμc|22σc2dlogσc+logπc

General Quadratic Function#

For some quadratic function Q(x), the Bayes decision rule is given by,

y^(x)=argmaxcQc(x)

The Bayes decision rule for the quadratic discriminant always product a posterior distribution that is a logistic function. We can easily see this by considering only two classes (A,B).

y^(x)={AQA(x)QB(x)>0Botherwise
P(YX)=eQA(x)eQA(x)+eQB(x)=11+eQA(x)QB(x)