<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://en.formulasearchengine.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=68.145.110.71</id>
	<title>formulasearchengine - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://en.formulasearchengine.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=68.145.110.71"/>
	<link rel="alternate" type="text/html" href="https://en.formulasearchengine.com/wiki/Special:Contributions/68.145.110.71"/>
	<updated>2026-05-05T00:14:46Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.0-wmf.28</generator>
	<entry>
		<id>https://en.formulasearchengine.com/index.php?title=K-d_tree&amp;diff=9079</id>
		<title>K-d tree</title>
		<link rel="alternate" type="text/html" href="https://en.formulasearchengine.com/index.php?title=K-d_tree&amp;diff=9079"/>
		<updated>2014-01-25T19:21:05Z</updated>

		<summary type="html">&lt;p&gt;68.145.110.71: /* Informal description */ grammar: corrected &amp;#039;then&amp;#039; to &amp;#039;than&amp;#039;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The &#039;&#039;&#039;Mantel test&#039;&#039;&#039;, named after [[Nathan Mantel]], is a [[statistics|statistical]] test of the [[correlation]] between two [[matrix (mathematics)|matrices]]. The matrices must be of the same [[rank of a matrix|rank]]; in most applications, they are matrices of interrelations between the same [[vector space|vector]]s of objects. The test was first published by [[Nathan Mantel]], a biostatistician at the [[National Institutes of Health]], in 1967.&amp;lt;ref name=&amp;quot;Mantel1967&amp;quot;&amp;gt;{{cite journal | last1 = Mantel | first1 = N. | year = 1967 | title = The detection of disease clustering and a generalized regression approach | url = | journal = Cancer Research | volume = 27 | issue = 2| pages = 209–220 | pmid = 6018555 }}&amp;lt;/ref&amp;gt; Accounts of it can be found in advanced statistics books (e.g., Sokal &amp;amp; Rohlf 1995&amp;lt;ref name=&amp;quot;Sokal1995&amp;quot;&amp;gt;{{cite book |author=Sokal RR, Rohlf FJ |year=1995 |title=Biometry |edition=3rd |location=New York |publisher=Freeman |isbn=0-7167-2411-1 |pages=813-819}}&amp;lt;/ref&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
&lt;br /&gt;
The test is commonly used in [[ecology]], where the data are usually estimates of the &amp;quot;distance&amp;quot; between objects such as [[species]] of organisms.  For example, one matrix might contain estimates of the [[genetics|genetic]] distances (i.e., the amount of difference between two different genomes) between all possible pairs of species in the study, obtained by the methods of [[molecular systematics]]; while the other might contain estimates of the geographical distance between the ranges of each species and every other species.&lt;br /&gt;
&lt;br /&gt;
==Method==&lt;br /&gt;
&lt;br /&gt;
If there are &#039;&#039;n&#039;&#039; objects, and the matrix is [[symmetric matrix|symmetrical]] (so the distance from object &#039;&#039;a&#039;&#039; to object &#039;&#039;b&#039;&#039; is the same as the distance from &#039;&#039;b&#039;&#039; to &#039;&#039;a&#039;&#039;) such a matrix contains &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;{\frac{n(n-1)}{2}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
distances. Because distances are not independent of each other &amp;amp;ndash; since changing the &amp;quot;position&amp;quot; of one object would change &amp;lt;math&amp;gt;n-1&amp;lt;/math&amp;gt; of these distances (the distance from that object to each of the others) &amp;amp;ndash; we can not assess the relationship between the two matrices by simply evaluating the [[Pearson product-moment correlation coefficient|correlation coefficient]] between the two sets of distances and testing its [[statistical significance]]. The Mantel test deals with this problem.&lt;br /&gt;
&lt;br /&gt;
The procedure adopted is a kind of randomization or [[Resampling (statistics)#Permutation tests|permutation test]]. The correlation between the two sets of &amp;lt;math&amp;gt;n(n-1)/2&amp;lt;/math&amp;gt; distances is calculated, and this is both the measure of correlation reported and the [[test statistic]] on which the test is based. In principle, any correlation coefficient could be used, but normally the [[Pearson product-moment correlation coefficient]] is used.  &lt;br /&gt;
&lt;br /&gt;
In contrast to the ordinary use of the correlation coefficient, to assess significance of any apparent departure from a zero correlation, the rows and columns of one of the matrices are subjected to [[random permutation]]s many times, with the correlation being recalculated after each permutation. The significance of the observed correlation is the proportion of such permutations that lead to a higher correlation coefficient.  &lt;br /&gt;
&lt;br /&gt;
The reasoning is that if the [[null hypothesis]] of there being no relation between the two matrices is true, then permuting the rows and columns of the matrix should be equally likely to produce a larger or a smaller coefficient. In addition to overcoming the problems arising from the statistical dependence of elements within each of the two matrices, use of the permutation test means that no reliance is being placed on assumptions about the statistical distributions of elements in the matrices.  &lt;br /&gt;
&lt;br /&gt;
Many [[List of statistical packages|statistical packages]] include routines for carrying out the Mantel test.&lt;br /&gt;
&lt;br /&gt;
==Criticism==&lt;br /&gt;
The various papers introducing the Mantel test and its extension the partial Mantel test lack a clear statistical framework specifying fully the  null and alternative hypotheses. This may convey the wrong idea that these tests are universal. For example, the Mantel and partial Mantel tests can be flawed in presence of spatial auto-correlation and return erroneously low p-values&lt;br /&gt;
See e.g. Guillot and Rousset, 2013 &amp;lt;ref name=&amp;quot;Guillot2013&amp;quot;&amp;gt;{{cite arXiv |eprint=1112.0651|author=Guillot G, Rousset F |year=2013 |title=Dismantling the Mantel tests |journal=Methods in Ecology and Evolution |volume=4 |number=4| pages=336-344|doi=10.1111/2041-210x.12018}}&amp;lt;/ref&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Non-parametric statistics]]&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{Reflist}}&lt;br /&gt;
&lt;br /&gt;
== External links ==&lt;br /&gt;
*[http://www.nceas.ucsb.edu/files/scicomp/doc/SpatialEcologyMantelTest.pdf  The Mantel test in ecology]&lt;br /&gt;
&lt;br /&gt;
[[Category:Statistical tests]]&lt;br /&gt;
[[Category:Non-parametric statistics]]&lt;br /&gt;
[[Category:Permutations]]&lt;/div&gt;</summary>
		<author><name>68.145.110.71</name></author>
	</entry>
</feed>