| 1 | <html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 2 | <title>SSCP: Get confidence ellipse area...</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 | SSCP: Get confidence ellipse area... |
| 13 | </b></font></table></table> |
| 14 | <p>A command to query the selected <a href="SSCP.html">SSCP</a> object for the area of a confidence ellipse.</p> |
| 15 | <h2>Algorithm</h2> |
| 16 | <p>The algorithm proceeds as follows:</p> |
| 17 | <dl> |
| 18 | <dd style="position:relative;padding-left:1em;text-indent:-2em">1. The four array elements in the SSCP-matrix that correspond to the chosen dimensions are copied into a two-dimensional matrix <b><i>S</i></b> (symmetric of course).</dd> |
| 19 | <dd style="position:relative;padding-left:1em;text-indent:-2em">2. The eigenvalues of <b><i>S</i></b> are determined, call them <i>s</i><sub>1</sub> and <i>s</i><sub>2</sub>.</dd> |
| 20 | <dd style="position:relative;padding-left:1em;text-indent:-2em">3. The lengths <i>l</i><sub>1</sub> and <i>l</i><sub>2</sub> of the two axes of the ellipse can be obtained as (see for example <a href="Johnson__1998_.html">Johnson (1998)</a>, page 410: </dd> |
| 21 | </dl> |
| 22 | <table width="100%" style="white-space:pre-wrap"><tr><td align=middle> <i>l</i><sub><i>i</i></sub> = <i>scaleFactor</i> · √ (<i>s</i><sub><i>i</i></sub> ),</table> |
| 23 | <dl> |
| 24 | <dd style="position:relative;padding-left:1em;text-indent:-2em"> where</dd> |
| 25 | </dl> |
| 26 | <table width="100%" style="white-space:pre-wrap"><tr><td align=middle><i>scaleFactor</i> = √ (<i>f</i> · <i>p</i> · (<i>n</i> – 1) / (<i>n</i> · (<i>n</i> – <i>p</i>))),</table> |
| 27 | <dl> |
| 28 | <dd style="position:relative;padding-left:1em;text-indent:-2em"> in which <i>f</i> = <a href="_invFisherQ_.html"><b><code><font size=+1>invFisherQ</font></code></b></a> (1 – <i>confidenceLevel</i>, <i>p</i>, <i>n</i> – <i>p</i>), where <i>p</i> is the numberOfRows from the SSCP object and <i>n</i> the <i>numberOfObservations</i>.</dd> |
| 29 | <dd style="position:relative;padding-left:1em;text-indent:-2em">4. The area of the ellipse will be <i>π</i>·<i>l</i><sub>1</sub>·<i>l</i><sub>2</sub>.</dd> |
| 30 | </dl> |
| 31 | <h3>Links to this page</h3> |
| 32 | <ul> |
| 33 | <li><a href="Discriminant__Get_confidence_ellipse_area___.html">Discriminant: Get confidence ellipse area...</a> |
| 34 | </ul> |
| 35 | <hr> |
| 36 | <address> |
| 37 | <p>© djmw 20000525</p> |
| 38 | </address> |
| 39 | </body> |
| 40 | </html> |