Debian Codegraph @

docs/manual/Mahalanobis_distance.html

raw symbols SCIP
1 <html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
2 <title>Mahalanobis distance</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 Mahalanobis distance
13 </b></font></table></table>
14 <p>The Mahalanobis distance is defined as the distance between a (multidimensional) point and a distribution. It is the multivariate form of the distance measured in units of standard deviation and is named after the famous Indian statistician R.P. Mahalanobis (1893 &#8211; 1972).</p>
15 <p>Given a normal distribution with covariance matrix <b>S</b> and mean <b>&#956;</b>, the squared Mahalanobis distance of a point <b>x</b><b></b> to the mean of this distribution is given by <i>d</i><sup>2</sup>(<b>x</b>)=(<b>x</b>-<b>&#956;</b>)<b>&#8242;</b><b>S</b><sup>-1</sup>(<b>x</b>-<b>&#956;</b>), where (<b>x</b>-<b>&#956;</b>)<b>&#8242;</b> is the transpose of (<b>x</b>-<b>&#956;</b>).</p>
16 <p>The distance formula above says that we have to weigh dimensions according to their covariances. If the covariance matrix <b>S</b> happens to be diagonal the formula above reduces to <i>d</i><sup>2</sup>(<b>x</b>)=&#931;<sub><i>i</i>=1</sub><sup>N</sup> (<i>x</i><sub><i>i</i></sub>-<i>&#956;</i><sub><i>i</i></sub>)<sup>2</sup>/<i>&#963;</i><sub><i>i</i></sub>.</p>
17 <h3>Links to this page</h3>
18 <ul>
19 <li><a href="Covariance___TableOfReal__Extract_quantile_range___.html">Covariance & TableOfReal: Extract quantile range...</a>
20 <li><a href="Covariance___TableOfReal__To_TableOfReal__mahalanobis__.html">Covariance & TableOfReal: To TableOfReal (mahalanobis)...</a>
21 <li><a href="Discriminant___TableOfReal__To_TableOfReal__mahalanobis.html">Discriminant & TableOfReal: To TableOfReal (mahalanobis)...</a>
22 <li><a href="SSCP___TableOfReal__Extract_quantile_range___.html">SSCP & TableOfReal: Extract quantile range...</a>
23 </ul>
24 <hr>
25 <address>
26 <p>© djmw 20160120</p>
27 </address>
28 </body>
29 </html>