HyperAIHyperAI

Command Palette

Search for a command to run...

Within-class Scatter Matrix

Date

3 years ago

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 latexMlatex {M}latexM categories, latexΩ_i,,Ω_Mlatex {Ω\mathop{{}}\nolimits\_{{i}},…,Ω\mathop{{}}\nolimits\_{{M}}}latexΩ_i,,Ω_M , latexΩ_ilatex {Ω\mathop{{}}\nolimits\_{{i}}}latexΩ_i class sample setlatex{X_1(i),X_2(i),,X_N_i(i)}latex { \left\{ {X\mathop{{}}\nolimits\_{{1}}^{{{ \left( {i} \right) }}},X\mathop{{}}\nolimits\_{{2}}^{{{ \left( {i} \right) }}},…,X\mathop{{}}\nolimits\_{{N\mathop{{}}\nolimits\_{{i}}}}^{{{ \left( {i} \right) }}}} \right\} }latex{X_1(i),X_2(i),,X_N_i(i)} , latexΩ_ilatex {Ω\mathop{{}}\nolimits\_{{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)latex {S\mathop{{}}\nolimits\_{{{w}}}^{{ \left( {i} \right) }}}latexS_w(i) is the covariance matrix of the class latexΩ_ilatex {Ω\mathop{{}}\nolimits\_{{i}}}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}latex { \left\{ {S\mathop{{}}\nolimits\_{{w}}} \right\} }latex{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.

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.

AI Co-coding
Ready-to-use GPUs
Best Pricing

HyperAI Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Within-class Scatter Matrix | Wiki | HyperAI