Hubbry Logo
Mantel testMantel testMain
Open search
Mantel test
Community hub
Mantel test
logo
7 pages, 0 posts
0 subscribers
Be the first to start a discussion here.
Be the first to start a discussion here.
Mantel test
Mantel test
from Wikipedia

The Mantel test, named after Nathan Mantel, is a statistical test of the correlation between two matrices. The matrices must be of the same dimension; in most applications, they are matrices of interrelations between the same vectors of objects. The test was first published by Nathan Mantel, a biostatistician at the National Institutes of Health, in 1967.[1] Accounts of it can be found in advanced statistics books (e.g., Sokal & Rohlf 1995[2]).

Usage

[edit]

The test is commonly used in ecology, where the data are usually estimates of the "distance" between objects such as species of organisms. For example, one matrix might contain estimates of the 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 to every other species. In this case, the hypothesis being tested is whether the variation in genetics for these organisms is correlated to the variation in geographical distance.

Method

[edit]

If there are n objects, and the matrix is symmetrical (so the distance from object a to object b is the same as the distance from b to a) such a matrix contains

distances. Because distances are not independent of each other – since changing the "position" of one object would change of these distances (the distance from that object to each of the others) – we can not assess the relationship between the two matrices by simply evaluating the correlation coefficient between the two sets of distances and testing its statistical significance. The Mantel test deals with this problem.

The procedure adopted is a kind of randomization or permutation test. The correlation between the two sets of 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.

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 permutations 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.

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.

Many statistical packages include routines for carrying out the Mantel test.

Criticism

[edit]

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 the presence of spatial auto-correlation and return erroneously low p-values. See, e.g., Guillot and Rousset (2013).[3]

See also

[edit]

References

[edit]
[edit]
Revisions and contributorsEdit on WikipediaRead on Wikipedia
from Grokipedia
The Mantel test is a nonparametric statistical method used to evaluate the correlation between two symmetric distance or dissimilarity matrices of the same dimension, typically by computing a between their corresponding off-diagonal elements and assessing significance through permutations of one matrix. Developed by biostatistician Nathan Mantel in 1967, it was originally proposed to detect subtle spatiotemporal clustering of diseases, such as , by comparing matrices of temporal and spatial separations among pairs of cases without requiring population-level data. In its basic form, the test calculates the Mantel rMr_M, which measures the strength and direction of the linear relationship between the matrices, with significance determined by the proportion of permuted correlations exceeding the observed value under the of no association. Extensions include partial Mantel tests, which control for the effect of a third matrix (e.g., environmental covariates), and weighted variants to emphasize certain distances. The test gained prominence in , , and landscape analysis during the late , particularly for investigating isolation by distance—where genetic differentiation increases with geographic separation—and for linking community composition to environmental gradients via dissimilarity matrices. It is implemented in software like packages vegan and ecodist, facilitating its application to multivariate data such as genetic markers, abundances, or trait dissimilarities. Despite its simplicity and versatility, the Mantel test assumes and homoscedasticity, which spatial data often violate, leading to recommendations for alternatives like spatial eigenfunction analysis in complex scenarios.

Background and Overview

Definition and Purpose

The Mantel test is a non-parametric statistical method designed to evaluate the between two symmetric matrices, each capturing pairwise dissimilarities among the same set of objects for different variables, such as genetic distances and geographic distances. These matrices typically represent multivariate data where direct variable-by-variable comparisons are impractical, allowing the test to assess overall associations without requiring the data to be in . The primary purpose of the Mantel test is to test the null hypothesis that there is no association between the two distance matrices, providing a robust approach for detecting relationships in datasets that may involve non-linear patterns or non-metric dissimilarities. This makes it particularly valuable in multivariate analysis, where traditional parametric methods might fail due to violations of assumptions like linearity or normality. For instance, it can conceptually examine whether an environmental distance matrix correlates with a species composition dissimilarity matrix, revealing potential ecological linkages without assuming specific distributional forms. A key advantage of the Mantel test lies in its ability to handle non-metric and avoid parametric assumptions, such as multivariate normality, thereby enabling reliable in complex, real-world datasets where such conditions are rarely met. Significance under the is assessed via a permutation-based procedure, which resamples the to generate an empirical distribution of test statistics.

Historical Development

The Mantel test was introduced by Nathan Mantel in 1967 as a statistical method for detecting disease clustering and testing associations between incidence matrices in epidemiological contexts, such as spatiotemporal patterns of . Originally framed as a generalized regression approach to matrix correspondence, it provided a non-parametric way to assess linear relationships while accounting for interdependencies in pairwise data. During the 1970s and 1980s, the test gained traction in for , with Robert R. Sokal applying it first in in 1979 to examine geographic variation in taxonomic data. Ecologists like Pierre Legendre further popularized its use in the 1980s, integrating it into studies of community structure and environmental gradients through comparisons. A key milestone came in 1986 with the development of the partial Mantel test by Peter E. Smouse, Jeffrey C. Long, and Robert R. Sokal, which extended the original method to control for variables via multiple regression on matrices. By the 1990s, the Mantel test saw widespread adoption in , becoming a standard tool for evaluating isolation by distance and spatial genetic structure. Advancements in computing power during the made permutation-based significance testing viable for larger matrices, broadening the test's applicability to more complex datasets. In recent years up to 2025, the Mantel test has integrated with high-throughput genomic data, as evidenced by 2023 benchmarking studies evaluating its performance against alternatives for matrix associations in evolutionary and genetic analyses, alongside 2022 efforts to address criticisms of its extensions.

Mathematical Foundations

Core Test Statistic

The Mantel test requires two symmetric n×nn \times n distance matrices, A\mathbf{A} and B\mathbf{B}, where the diagonal elements are zeros and the off-diagonal elements aija_{ij} and bijb_{ij} (for iji \neq j) represent pairwise distances or dissimilarities between nn objects or locations. The core test statistic, denoted rMr_M, is formulated as the applied to the corresponding off-diagonal elements of A\mathbf{A} and B\mathbf{B}. This is derived by vectorizing the upper (or lower) triangular portions of the matrices into vectors of length m=n(n1)/2m = n(n-1)/2, excluding the diagonals, and computing their . The explicit formula is rM=i<j(aijaˉ)(bijbˉ)i<j(aijaˉ)2i<j(bijbˉ)2,r_M = \frac{ \sum_{i < j} (a_{ij} - \bar{a})(b_{ij} - \bar{b}) }{ \sqrt{ \sum_{i < j} (a_{ij} - \bar{a})^2 \sum_{i < j} (b_{ij} - \bar{b})^2 } },
Add your contribution
Related Hubs
User Avatar
No comments yet.