| 1 | <html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 2 | <title>Discriminant & TableOfReal: To ClassificationTable...</title> |
| 3 | <style> |
| 4 | td { padding-left: 5pt; padding-right: 5pt; } |
| 5 | th { padding-left: 5pt; padding-right: 5pt; } |
| 6 | code { white-space: pre-wrap; } |
| 7 | dd { white-space: pre-wrap; } |
| 8 | </style> |
| 9 | </head><body bgcolor="#FFFFFF"> |
| 10 | |
| 11 | <table border=0 cellpadding=0 cellspacing=0><tr><td bgcolor="#CCCC00"><table border=4 cellpadding=9><tr><td align=middle bgcolor="#000000"><font face="Palatino,Times" size=6 color="#999900"><b> |
| 12 | Discriminant & TableOfReal: To ClassificationTable... |
| 13 | </b></font></table></table> |
| 14 | <p>A command to use the selected <a href="Discriminant.html">Discriminant</a> to classify each row from the selected <a href="TableOfReal.html">TableOfReal</a>. The newly created <a href="ClassificationTable.html">ClassificationTable</a> will then contain the posterior probabilities of group membership.</p> |
| 15 | <h2>Settings</h2> |
| 16 | <dl> |
| 17 | <dt><b>Pool covariance matrices</b> |
| 18 | <dd>when on, all group covariance matrices are pooled and distances will be determined on the basis of only this pooled covariance matrix (see below).</dd> |
| 19 | </dl> |
| 20 | <h2>Details</h2> |
| 21 | <p>The posterior probabilities of group membership <i>p</i><sub><i>j</i></sub> for a vector <b>x</b> are defined as:</p> |
| 22 | <table width="100%" style="white-space:pre-wrap"><tr><td align=middle><i>p</i><sub><i>j</i></sub> = <i>p</i>(<i>j</i>|<b><i>x</i></b>) = exp (–<i>d</i><sub><i>j</i></sub><sup>2</sup>(<b><i>x</i></b>) / 2) / ∑<sub><i>k</i>=1..<i>numberOfGroups</i></sub> exp (–<i>d</i><sub><i>k</i></sub><sup>2</sup>(<b><i>x</i></b>) / 2),</table> |
| 23 | <p>where <i>d</i><sub><i>i</i></sub><sup>2</sup> is the generalized squared distance function:</p> |
| 24 | <table width="100%" style="white-space:pre-wrap"><tr><td align=middle><i>d</i><sub><i>i</i></sub><sup>2</sup>(<b><i>x</i></b>) = ((<b><i>x</i></b>–<b><i>μ</i></b><sub><i>i</i></sub>)′ <b>Σ</b><sub><i>i</i></sub><sup>-1</sup> (<b><i>x</i></b>–<b><i>μ</i></b><sub><i>i</i></sub>) + ln determinant (<b>Σ</b><sub><i>i</i></sub>)) / 2 – ln <i>aprioriProbability</i><sub><i>i</i></sub></table> |
| 25 | <p>that depends on the individual covariance matrix <b>Σ</b><sub><i>i</i></sub> and the mean <b><i>μ</i></b><sub><i>i</i></sub> for group <i>i</i>.</p> |
| 26 | <p>When the covariances matrices are <i>pooled</i>, the squared distance function can be reduced to:</p> |
| 27 | <table width="100%" style="white-space:pre-wrap"><tr><td align=middle><i>d</i><sub><i>i</i></sub><sup>2</sup>(<b><i>x</i></b>) = ((<b><i>x</i></b>–<b><i>μ</i></b><sub><i>i</i></sub>)′ <b>Σ</b><sup>-1</sup> (<b><i>x</i></b>–<b><i>μ</i></b><sub><i>i</i></sub>) – ln <i>aprioriProbability</i><sub><i>i</i></sub>,</table> |
| 28 | <p>and <b>Σ</b> is now the pooled covariance matrix.</p> |
| 29 | <p>The a priori probabilities normally will have values that are related to the number of <i>training</i> vectors <i>n</i><sub><i>i</i></sub> in each group:</p> |
| 30 | <table width="100%" style="white-space:pre-wrap"><tr><td align=middle><i>aprioriProbability</i><sub><i>i</i></sub> = <i>n</i><sub><i>i</i></sub> / Σ<sub><i>k</i>=1..<i>numberOfGroups</i></sub> <i>n</i><sub><i>k</i></sub></table> |
| 31 | <h3>Links to this page</h3> |
| 32 | <ul> |
| 33 | <li><a href="Discriminant___PatternList__To_Categories___.html">Discriminant & PatternList: To Categories...</a> |
| 34 | <li><a href="Discriminant_analysis.html">Discriminant analysis</a> |
| 35 | </ul> |
| 36 | <hr> |
| 37 | <address> |
| 38 | <p>© djmw 20040407</p> |
| 39 | </address> |
| 40 | </body> |
| 41 | </html> |