Download Mixture Discriminant Analysis: A Method for Classification using Mixture Models and more Study notes Statistics in PDF only on Docsity!
Mixture Discriminat Analysis
Jia Li
Department of Statistics The Pennsylvania State University
Email: [email protected] http://www.stat.psu.edu/∼jiali
Mixture Discriminant Analysis
I A method for classification (supervised) based on mixture
models.
I Extension of linear discriminant analysis
I The mixture of normals is used to obtain a density estimation
for each class.
I Given a test sample X = x, the Bayes classification rule is:
ˆz = arg max
k
ak φ(x|μk , Σ)
The decision boundary is linear because Σ is shared by all the
classes.
Mixture Discriminant Analysis
I A single Gaussian to model a class, as in LDA, is too
restricted.
I Extend to a mixture of Gaussians. For class k, the
within-class density is:
fk (x) =
∑^ Rk
r =
πkr φ(x|μkr , Σ)
I A common covariance matrix is still assumed.
Model Estimation
I The overall model is:
P(X = x, Z = k) = ak fk (x) = ak
∑Rk
r =
πkr φ(x|μkr , Σ)
where ak is the prior probability of class k.
I The ML estimation of ak is the proportion of training samples
in class k.
I EM algorithm is used to estimate πkr , μk , and Σ.
I Roughly speaking, we estimate a mixture of normals by EM
for each individual class.
I Σ needs to be estimated by combining all the classes.
I EM iteration:
I (^) E-step: for each class k, collect samples in this class and compute the posterior probabilities of all the Rk components. Suppose sample i is in class k,
pi,r =
πkr φ(xi |μkr , Σ) ∑Rk r ′=1 πkr^ ′^ φ(xi^ |μkr^ ′^ ,^ Σ)^
, r = 1, ..., Rk
I (^) M-step: compute the weighted MLEs for all the parameters.
πkr =
∑n ∑i=1^ I^ (zi^ =^ k)pi,r n i=1 I^ (zi^ =^ k)
μkr =
∑n ∑i=1^ xi^ I^ (zi^ =^ k)pi,r n i=1 I^ (zi^ =^ k)pi,r
∑n i=
∑Rzi r =1 pi,r^ (xi^ −^ μzi r^ )(xi^ −^ μzi r^ ) t n
I The three classes of waveforms are random convex
combinations of two of these waveforms plus independent
Gaussian noise. Each sample is a 21 dimensional vector
containing the values of the random waveforms measured at
I (^) To generate a sample in class 1, a random number u uniformly distributed in [0, 1] and 21 random numbers 1 , 2 , ..., 21 normally distributed with mean zero and variance 1 are generated. x·j = uh 1 (j) + (1 − u)h 2 (j) + j , j = 1, ..., 21. I (^) To generate a sample in class 2, repeat the above process to generate a random number u and 21 random numbers 1 , ..., 21 and set x·j = uh 1 (j) + (1 − u)h 3 (j) + j , j = 1, ..., 21. I (^) Class 3 vectors are generated by
x·j = uh 2 (j) + (1 − u)h 3 (j) + j , j = 1, ..., 21.
Example random waveforms
0 5 10 15 20
−
−
0
2
4
6
Class 1
0 5 10 15 20
−
−
0
2
4
6
8
0 5 10 15 20
−
0
2
4
6
8
Class 2
5 10 15 20 −
−
0
2
4
6
5 10 15 20 −
−
0
2
4
6
Class 3
0 5 10 15 20
−
0
5
I A three component mixture of normals is assumed for each
class.
I The Bayes risk has been estimated to be about 0.14.
I MDA outperforms LDA and QDA.
I Low dimension views are obtained from projecting on to
canonical coordinates.