Debian Codegraph @

docs/manual/Covariance__Get_significance_of_means_difference___.html

raw
1 <html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
2 <title>Covariance: Get significance of means 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: Get significance of means difference...
13 </b></font></table></table>
14 <p>Gets the level of significance for the <i>difference</i> of two means from the selected <a href="Covariance.html">Covariance</a> object being different from a hypothesized value.</p>
15 <h2>Settings</h2>
16 <dl>
17 <dt><b>Index1</b>, <b>Index2</b>
18 <dd>the positions of the two elements of the means vector whose difference is compared to the hypothesized difference.</dd>
19 <dt><b>Value</b>
20 <dd>the hypothesized difference (<i>&#956;</i>).</dd>
21 <dt><b>Paired</b>
22 <dd>determines whether we treat the two means as being dependent. </dd>
23 <dt><b>Equal variances</b>
24 <dd>determines whether the distribution of the difference of the means is a Student t-distribution (see below).</dd>
25 </dl>
26 <h2>Behaviour</h2>
27 <p>This is Student's t-test for the significance of a difference of means. The test statistic is:</p>
28 <table width="100%" style="white-space:pre-wrap"><tr><td align=middle><i>t</i> = (<i>x&#772;</i><sub>1</sub> - <i>x&#772;</i><sub>2</sub> - <i>&#956;</i>) &#8730; (<i>N</i> / <i>s</i><sup>2</sup>) with <i>ndf</i> degrees of freedom.</table>
29 <p>In the formula above <i>x&#772;</i><sub>1</sub> and <i>x&#772;</i><sub>2</sub> are the elements of the means vector, <i>&#956;</i> is the hypothesized difference and <i>N</i> is the number of observations. The value that we use for the (combined) variance <i>s</i><sup>2</sup> is:</p>
30 <table width="100%" style="white-space:pre-wrap"><tr><td align=middle><i>s</i><sup>2</sup> = <i>var</i><sub>1</sub> + <i>var</i><sub>2</sub> - 2 * <i>covar</i><sub>12</sub>,</table>
31 <p>when the samples are <i>paired</i>, and </p>
32 <table width="100%" style="white-space:pre-wrap"><tr><td align=middle><i>s</i><sup>2</sup> = <i>var</i><sub>1</sub> + <i>var</i><sub>2</sub> </table>
33 <p>when they are not.</p>
34 <p>The <i>var</i><sub>1</sub> and <i>var</i><sub>2</sub> are the variance components for <i>x&#772;</i><sub>1</sub> and <i>x&#772;</i><sub>2</sub>, respectively, and <i>covar</i><sub>12</sub> is their covariance. When we have <i>paired samples</i> we assume that the two variances are not independent and their covariance is subtracted, otherwise their covariance is not taken into account. Degrees of freedom parameter <i>ndf</i> usually equals 2(<i>N</i>-1). </p>
35 <p>If the two variances are significantly different, the statistic <i>t</i> above is only <i>approximately</i> distributed as Student's <i>t</i> with degrees of freedom equal to:</p>
36 <table width="100%" style="white-space:pre-wrap"><tr><td align=middle><i>ndf</i> = (<i>N</i>-1) &#183; (<i>var</i><sub>1</sub> + <i>var</i><sub>2</sub>)<sup>2</sup> / (<i>var</i><sub>1</sub><sup>2</sup> + <i>var</i><sub>2</sub><sup>2</sup>).</table>
37 <p>The returned probability <i>p</i> will be the <i>two-sided</i> probability</p>
38 <table width="100%" style="white-space:pre-wrap"><tr><td align=middle><i>p</i> = 2 * studentQ (<i>t</i>, <i>ndf</i>)</table>
39 <p>A low probability <i>p</i> means that the difference is significant.</p>
40 <h3>Links to this page</h3>
41 <ul>
42 <li><a href="T-test.html">T-test</a>
43 </ul>
44 <hr>
45 <address>
46 <p>© djmw 20160102</p>
47 </address>
48 </body>
49 </html>