What is between-class scatter and within class scatter?

What is between-class scatter and within class scatter?

The within-class scatter matrix is defined as: Here, is the sample mean of the k -th class. The between-class scatter matrix is defined as: Here, m is the number of classes, is the overall sample mean, and.

What is the between-class scatter matrix?

The between-class scatter matrix is defined by S h = E { ( X ( 1 ) − X ( 2 ) ) ( X ( 1 ) − X ( 2 ) ) T } Find Sh in terms of the expected vectors and covariance matrices of two classes.

What is scatter matrix in LDA?

Within- and between-class scatter matrices in LDA are direct multivariate generalizations of the within- and between-class sums of squares in ANOVA. So let us consider those. The idea is to decompose the total sum of squares into two parts. Let xij be a j-th data point from the i-th class with ni data points.

What are LDA assumptions?

LDA makes some simplifying assumptions about your data: That your data is Gaussian, that each variable is is shaped like a bell curve when plotted. That each attribute has the same variance, that values of each variable vary around the mean by the same amount on average.

How to calculate the within class scatter matrix?

The within-class scatter matrix SW is computed by the following equation: Alternatively, we could also compute the class-covariance matrices by adding the scaling factor 1 N −1 1 N − 1 to the within-class scatter matrix, so that our equation becomes

Which is better LDA or linear discriminant analysis?

For example, comparisons between classification accuracies for image recognition after using PCA or LDA show that PCA tends to outperform LDA if the number of samples per class is relatively small (PCA vs. LDA, A.M. Martinez et al., 2001).

How is linear discriminant analysis used in machine learning?

Linear Discriminant Analysis (LDA) is a generalization of Fisher’s linear discriminant, a method used in Statistics, pattern recognition and machine learning to find a linear combination of features that characterizes or separates two or more classes of objects or events.

When to use LDA in combination with PCA?

In practice, it is not uncommon to use both LDA and PCA in combination: e.g., PCA for dimensionality reduction followed by LDA.