Command Palette
Search for a command to run...
Within-class Scatter Matrix
Date
Within-class scatter matrixIt is used to represent the distribution of sample points around the mean, and its definition is as follows:
Suppose there are latexM categories, latexΩ_i,…,Ω_M , latexΩ_i class sample setlatex{X_1(i),X_2(i),…,X_N_i(i)} , latexΩ_i The divergence matrix of the class is defined as:
latex {S\mathop{{}}\nolimits\_{{w}}^{{{ \left( {i} \right) }}}\text{ }=\text{ }\frac{{1}}{{N\mathop{{}}\nolimits\_{{i}}}}{\mathop{ \sum }\limits\_{{k=1}}^{{N\mathop{{}}\nolimits\_{{i}}}}{{ \left( { {X\mathop{{}}\nolimits\_{{k}}^{{{ \left( {i} \right) }}}-m\mathop{{}}\nolimits^{{{ \left( {i} \right) }}}} \right) }\mathop{{}}\nolimits^{{T}}}}}
Among them, latexS_w(i) is the covariance matrix of the class latexΩ_i.
The total intra-class scatter matrix is:
latex {S\mathop{{}}\nolimits\_{{w}}\text{ }=\text{ }{\mathop{ \sum }\limits\_{{i=1}}^{{M}}{P{ \left( {Ω\mathop{{}}\nolimits\_{{i}}} \right) }S\mathop{{}}\nolimits\_{{w}}^{{{ \left( {i} \right) }}}}}\text{ }=\text{ }{\mathop{ \sum }\limits\_{{i=1}}^{{M}}{P{ \left( {Ω\mathop{{}}\nolimits\_{{i}}} \right) }\frac{{1}}{{N\mathop{{}}\nolimits\_{{i}}}}{\mathop{ \sum }\limits\_{{k=1}}^{{N\mathop{{}}\nolimits\_{{i}}}}{{ \left( { {X\mathop{{}}\nolimits\_{{k}}^{{{ \left( {i} \right) }}}-m\mathop{{}}\nolimits^{{{ \left( {i} \right) }}}} \right) }\mathop{{}}\nolimits^{{T}}}}}}}
Then: tracelatex{S_w} is the average measure of feature variance of all classes.
Regarding the results of feature selection and extraction, the smaller the product of the within-class scatter matrix, the better.
Related words: between-class scatter matrix
Build AI with AI
From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.