| 1 | <html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 2 | <title>Covariance: Difference</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 | Covariance: Difference |
| 13 | </b></font></table></table> |
| 14 | <p>You can choose this command after selecting two objects of type <a href="Covariance.html">Covariance</a>. </p> |
| 15 | <p>We test the hypothesis that the samples that gave rise to the two covariance matrices <b><i>M</i></b><sub>1</sub> and <b><i>M</i></b><sub>2</sub>, have equal covariances. The test statistic is <i>L</i>′ which is distributed as a χ<sup>2</sup> variate with <i>p</i>(<i>p</i>+1)/2 degrees of freedom.</p> |
| 16 | <table width="100%" style="white-space:pre-wrap"><tr><td align=middle><i>L</i>′ = <i>L</i> · (1 – (2<i>p</i> + 1 – 2 / (<i>p</i> + 1)) / (6 · ( <i>N</i> – 1))),</table> |
| 17 | <p>where, </p> |
| 18 | <table width="100%" style="white-space:pre-wrap"><tr><td align=middle><i>L</i> = (<i>N</i> – 1) · (ln determinant (<b><i>M</i></b><sub>1</sub>) – ln determinant (<b><i>M</i></b><sub>2</sub>)) + trace (<b><i>M</i></b><sub>2</sub> · <b><i>M</i></b><sub>1</sub><sup>–1</sup>) – <i>p</i>), </table> |
| 19 | <p><i>p</i> is dimension of covariance matrix and <i>N</i> is the number of observations underlying the covariance matrix. </p> |
| 20 | <p>For more details on this test, see e.g. page 292 of <a href="Morrison__1990_.html">Morrison (1990)</a>.</p> |
| 21 | <hr> |
| 22 | <address> |
| 23 | <p>© djmw 20090624</p> |
| 24 | </address> |
| 25 | </body> |
| 26 | </html> |