Docsity

LDA vs Tied MVG for classification, Appunti di Machine learning

Toggle sidebar
bg1
LDA vs MVG (Tied)
LDA We consider 2 classes
C0
and
C1
with means
µ0
and
µ1
. LDA searches
for a direction vector which maximizes the objective function by using Fisher’s
criterion:
J(w) = wTSBw
wTSwwwith SB= (µ1−µ0)(µ1µ0)T(1)
For the binary problem
rank
(
SB
) = 1 and
SW
has full rank, so the optimal
solution consists in the eigenvector related to the maximum eigenvalue of
S−1
wSB:
w∝S−1
w(µ1−µ0)
LDA has a discriminative approach, so it trains
w
maximizing
J
(
w
)without
any explicit hypotheses on class density. It wants to find a direction in which
the projected points onto that direction are well separated.
Once the direction is found, using Fisher’s criterion, the data are projected
and class assignment is done with a threshold comparison in the projected
1
pf3
pf4
pf5

Anteprima parziale del testo

Scarica LDA vs Tied MVG for classification e più Appunti in PDF di Machine learning solo su Docsity!

LDA vs MVG (Tied)

LDA We consider 2 classes C 0 and C 1 with means μ 0 and μ 1. LDA searches for a direction vector which maximizes the objective function by using Fisher’s criterion:

J(w) =

w T^ S B w w T^ S w w

with S B = (μ 1 − μ 0 )(μ 1 μ 0 ) T^ (1)

For the binary problem rank(S B ) = 1 and S W has full rank, so the optimal solution consists in the eigenvector related to the maximum eigenvalue of S w −^1 S B :

w ∝ S w −^1 (μ 1 − μ 0 )

LDA has a discriminative approach, so it trains w maximizing J(w) without any explicit hypotheses on class density. It wants to find a direction in which the projected points onto that direction are well separated. Once the direction is found, using Fisher’s criterion, the data are projected and class assignment is done with a threshold comparison in the projected

domain. A common value for t is:

μ 1 + μ 0 2

. This method provides a linear classifier in the subspace and reduces the problem to 1 dimension.

Tied MVG The tied model is a generative approach, adopted for classes which are modeled by a Multivariate Gaussian R.V., having a mean μ c and a common covariance matrix Σ.

f x | c (x|C = c) = N (x|μ c , Σ) (2) Given a labeled training set, the parameters μ 0 , μ 1 , Σ are estimated using the Maximum Likelihood approach, which aims to find the values that maximize the probability of observed data.

The optimal solutions are:

μ c =

N c

∑ N

i

x i

N

∑ c

∑

i | ci = c

(x i − μ c )(x i − μ c ) T

To classify a new point x, we apply the Bayes rule:

P (C = c|x) =

f (x|C = c)π c f (x)

f (x|C = c)π c ∑ k f^ (x|C^ =^ k)π k

Eq. 3: Class posterior probability.

where π c = P (C = c) is the prior probability , and consequently does not depend on model parameters. Since our classification task is binary, we can compare the two class posterior probabilities and compute a log class posterior probability ratio :

r(x) = log

f (x|h 1 )π 1 f (x|h 0 )π 0

= log

f (x|h 1 )π 1 f (x|h 0 )(1 − π 1 )

= log

f (x|h 1 ) f (x|h 0 )

  • log

π 1 1 − π 1

the model will label a sample as belonging to class 1, against 0, whether this ratio is higher or lower than zero.

The first term of (4) is called log-likelihood ratio:

Comparison LDA and Tied MVG classifier are two approaches that, despite originating from different philosophical standpoints—discriminative and generative, respectively—are deeply interconnected in their assumptions and ultimately in their practical effect on binary classification problems.

At the heart of their relationship lies a shared assumption: both models consider that each class generates data according to a distribution with its own mean vector but a common covariance matrix. This assumption is explicitly defined in the Tied MVG model, and it’s more implicit in LDA, where we define a common covariance within-class S w ; it is however central because it simplifies the structure of the classification boundary. In such cases, the optimal decision rule derived from Bayes theory leads to a linear decision surface. This is the foundational reason why both LDA and Tied-MVG result in linear classifiers, despite being derived in different ways.

LDA takes a discriminative perspective. It does not model the data distributions explicitly. Instead, it searches for the projection direction that best separates the classes in terms of maximizing the ratio between between-class variance and within-class variance. The result is a projection vector w, which defines a subspace where the class means are maximally separated relative to the scatter of the data within each class. Once this direction is found, a decision threshold is placed along this line.

On the other hand, the Tied-MVG model follows a generative approach. It explicitly models the distribution of the data in each class using Gaussian densities and estimates the class parameters (means and shared covariance) through maximum likelihood estimation. Classification is then performed using Bayes’ rule: computing the log-likelihood ratio of the two classes and comparing it against a threshold that incorporates prior probabilities. Importantly, under the assumption of a shared covariance matrix, the resulting log-likelihood ratio becomes a linear function of the input features, just like in LDA.

The most striking connection between the two methods is that the projection vector w found by LDA is proportional to the weight vector b = Σ−^1 (μ 1 − μ 0 ) used in the generative log-likelihood ratio of the Tied-MVG classifier. That is, both classifiers define the same decision direction in feature space. The difference lies in how they determine the threshold for classification. LDA typically selects the threshold based on data-driven criteria or balanced centroids, whereas Tied-MVG derives it from prior probabilities and class- conditional likelihoods.

Despite this shared geometry, the models differ in objective and interpretation. LDA aims directly at optimal separation, without assuming any probabilistic model of the data. Tied-MVG, conversely, models the data explicitly and seeks to maximize the likelihood of the observed data under that model. Because of this, Tied-MVG naturally provides estimates of posterior probabilities and is easily extended to incorporate prior knowledge or cost-sensitive decisions, whereas LDA’s output requires calibration for such uses.

In summary, while LDA and the Tied-MVG classifier originate from fundamentally different viewpoints (discriminative vs generative) they converge to almost the same practical solution in the case of Gaussian-distributed data with shared covariance. Their equivalence in directionality but divergence in thresholding and probabilistic interpretation illustrates how different paths often lead to similar outcomes when grounded in common assumptions.

LDA for Multiclass and LDA limitations In multiclass settings, LDA is used to reduce dimensionality by projecting data onto a subspace that retains the most discriminative information across classes. The objective is to find a projection matrix W that maximizes the trace of (W ⊤S W W )−^1 W ⊤S B W. This projection maximizes class separability in the lower-dimensional space.

However, LDA has some important limitations. First, the number of meaningful directions it can provide is limited to C − 1 , where C is the number of classes. Second, the method assumes that all classes share the same covariance structure, which may not be realistic in practice. Third, the invertibility of S W matrix is required, which is often problematic in high-dimensional, low-sample scenarios. Lastly, because the projection is linear, LDA cannot capture non-linear patterns unless extended with kernel methods.