Same But Different: Distance Correlations Between Topological Summaries
Katharine Turner, Gard Spreemann

TL;DR
This paper explores how distance correlation can compare different topological summaries of data, highlighting its application in analyzing complex data structures across various metric spaces.
Contribution
It introduces the use of distance correlation for comparing topological summaries in different metric spaces, providing a non-parametric statistical tool for topological data analysis.
Findings
Distance correlation effectively compares topological summaries across different metric spaces.
Different topological summaries can yield varying statistical conclusions.
The method is applicable to various data models and scalar measures.
Abstract
Persistent homology allows us to create topological summaries of complex data. In order to analyse these statistically, we need to choose a topological summary and a relevant metric space in which this topological summary exists. While different summaries may contain the same information (as they come from the same persistence module), they can lead to different statistical conclusions since they lie in different metric spaces. The best choice of metric will often be application-specific. In this paper we discuss distance correlation, which is a non-parametric tool for comparing data sets that can lie in completely different metric spaces. In particular we calculate the distance correlation between different choices of topological summaries. We compare some different topological summaries for a variety of random models of underlying data via the distance correlation between the samples.…
| Diagram | Off-diagonal points | Weight |
|---|---|---|
| Same | Share an | Diag. opp. | Example | No. of such | |
|---|---|---|---|---|---|
| corner | edge | corners | diagram | ||
| Topological summary | |
|---|---|
| Persistence scale space kernel, | |
| -Wasserstein | |
| with | |
| with | |
| -Wasserstein | |
| Persistence landscape with | |
| Persistence scale space kernel, | |
| Persistence landscape with | |
| Persistence landscape with | |
| Sliced Wasserstein kernel, | |
| Persistence scale space kernel, | |
| Sliced Wasserstein kernel, |
| Summary (topological, apart from first two) | ||
|---|---|---|
| Bottleneck | ||
| -Wasserstein | ||
| Persistence scale space kernel, | ||
| Persistence scale space kernel, | ||
| Persistence landscape with | ||
| Persistence landscape with | ||
| Persistence landscape with | ||
| Sliced Wasserstein kernel, | ||
| Sliced Wasserstein kernel, | ||
| with | ||
| with |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsTopological and Geometric Data Analysis · Data Management and Algorithms · Geochemistry and Geologic Mapping
Same But Different
Distance Correlations Between Topological Summaries
Katharine Turner and Gard Spreemann
Abstract
Persistent homology allows us to create topological summaries of complex data. In order to analyse these statistically, we need to choose a topological summary and a relevant metric space in which this topological summary exists. While different summaries may contain the same information (as they come from the same persistence module), they can lead to different statistical conclusions since they lie in different metric spaces. The best choice of metric will often be application-specific. In this paper we discuss distance correlation, which is a non-parametric tool for comparing data sets that can lie in completely different metric spaces. In particular we calculate the distance correlation between different choices of topological summaries. We compare some different topological summaries for a variety of random models of underlying data via the distance correlation between the samples. We also give examples of performing distance correlation between topological summaries and other scalar measures of interest, such as a paired random variable or a parameter of the random model used to generate the underlying data. This article is meant to be expository in style, and will include the definitions of standard statistical quantities in order to be accessible to non-statisticians.
1 Introduction
The development and application of statistical theory and methods within Topological Data Analysis (TDA) are still in their infancies. The main reason is that distributions of topological summaries are harder to study than distributions of real numbers, or of vectors. Complications arise both from the geometry of the spaces that the summaries lie in, and, more importantly, from the complete lack of nice parameterised families which one could expect the distributions of topological summaries to follow. Even when the distribution of filtrations of topological spaces is parametric, topological summaries do not necessarily preserve distributions in any meaningful way, so the resulting topological summaries will generally not be in the form of a tractable exponential family. Effectively none of the methods from basic statistics can be directly applied, at least not without significant caveats and great care. We should instead turn to the world of non-parametric statistics, in which the methods are usually distribution-free and can sometimes be applied to random elements lying in quite general metric spaces.
A quintessential example of the challenges faced when improving the statistical rigour in TDA is that of correlation. The Pearson correlation coefficient is the correlation, the “r-value”, taught in every introductory course on statistics. However, it is only defined for real-valued functions, and inference involving Pearson correlation often assumes the variables follow normal distributions. It is very much a method from parametric statistics. It measures the strength of the linear relationship between normally distributed random variables. Here the parametric families are the normal distributions with the mean and covariance as the parameters, and the correlation coefficient is a straightforward function of the covariance matrix. The Pearson correlation is very useful and appropriate if the distributions are normal. However, that is a very big “if”; and one that will rarely hold for topological summaries.
Thankfully for practitioners of TDA, correlation as a concept is not defined by the formula of the Pearson correlation coefficient, but rather should be thought of more philosophically as some quantity measuring the extent of interdependence of random variables. This research is the result of a treasure hunt within the field of non-parametric statistics for an appropriate notion of correlation applicable to topological summaries. Our finding was distance correlation. Effectively it considers the correlations between pairwise distances (appropriately recentred) instead of the raw values. This makes it applicable to distributions over any pair of metric spaces.
Distance correlation is a distribution-free method and exemplifies a non-parametric approach. It can detect relationships between variables that are not linear, and not even monotonic. If the variables are independent, then the distance correlation is zero. In the other direction, if the metric spaces are of strong negative type, then a distance correlation of zero implies the variables are independent. This is true for any joint distribution. In contrast, we can only conclude from a Pearson correlation coefficient of zero that the variables are independent if we assume that the joint distribution is bivariate normal.
There are two take-home messages. The first is that distance correlation is a useful tool in the statistical analysis of topological summaries. The current exposition serves as an introduction to the potential of distance correlation for statistical analysis in TDA. In section 6 we outline some further opportunities that distance correlation can offer. The second message is the simple observation that the choice of topological summary statistic matters. A responsible topological data analyst should carefully consider which is the most appropriate topological summary. A better choice is one where the pairwise distances better reflect the differences of interest in the raw data. This will be domain- and application-specific. There may be other considerations for the choice of topological summary in terms of the statistical methods available, computational complexity and inference power, but this is beyond the scope of this discussion.
2 Background theory
We summarize the relevant basic concepts from TDA, the statistical analysis of topological summaries, and of metric spaces of strong negative type.
2.1 Topological summary statistics
TDA is usually concerned with analysing complex and hard-to-visualize data. This data may have complicated geometric or topological structure, and one creates a family of topological spaces which can then be studied using algebraic-topological methods in order to reveal information about said structure. We call a family of spaces such that whenever a filtration. The inclusion for induces a homomorphism between the homology groups. The persistent homology group is the image of in . It encodes the -cycles in that are independent with respect to boundaries in , i.e.
[TABLE]
where and are, respectively, the kernel and the image of the ’th boundary map in the given homology theory.
Under very general assumptions on the filtration, and assuming one works with coefficients in a field, persistent homology is fully described by two equivalent representations: the barcode and the persistence diagram. The barcode is a collection of intervals each representing the first appearance (“birth”), , and first disappearance (“death”), , of a persistent homology class. This collection of intervals satisfies the condition that for every , the number of intervals containing is . The corresponding persistence diagram is the multi-set of points in the plane with birth filtrations as one coordinate and death filtrations as the other.111We will consider only persistent homology with intervals with finite death.
A summary statistic is a object that is used to summarise a set of observations, in order to communicate the largest amount of information as simply as possible. Simple examples in the case of real-valued distributions include the mean, the variance, the median and the box plot. Many summary statistics in TDA are created via persistent homology. We have a filtration of topological spaces built from our observations, and by applying persistent homology we can summarise this filtration in terms of the evolution of homology. Notably, one creates a summary from a single complex object, whether it be a point cloud, a graph, etc.
There are now a wide array of topological summaries that can be computed directly from a persistence diagram or barcode. Each of these is a different expression of the persistent homology in the form of a topological summary statistic. The practitioner wanting to perform statistical analysis using topological summaries needs to choose which type of summary to represent their data with, as well as the metric on the space where that summary takes values. For some of these different topological summaries there are parameters to choose which play roles like bandwidth, and some depend on a choices like norm order (for us, ) akin to choosing in the distance for function spaces. In addition, there are topological summaries not based on persistent homology, such as simplex count functions.
In this paper we will consider a range of different topological summaries and distances defined on them, namely:
- •
Persistence diagrams, with Wasserstein distances for
- •
Persistence landscapes [4], with distances for
- •
Persistence scale space kernel [19] for two different bandwidths, with distances
- •
Betti and Euler characteristic curves, with distances for
- •
Sliced Wasserstein kernel [6] distance
Note that all of these topological summaries can be computed from the persistence diagram and that with the exception of the Betti and Euler curves, which collapse information, they all are distance functions of the information provided in the original persistence diagram. In this sense they are the “same”. It is merely the metric space structure that is different.
It is worth noting that the above list is by no means an exhaustive list of topological summaries. Other examples include the persistent homology rank function [21], the accumulation persistence function [3], the persistence weighted Gaussian kernel [12], the persistence Fisher kernel [13], using tangent vectors from the mean of the square root framework with principal geodesic analysis [1], using points in the persistence diagrams as roots of a complex polynomial for concatenated-coefficient vector representations [9], or using distance matrices of points in persistence diagrams for sorted-entry vector representations [7]. Notably, most of these are functional summaries with an metric or lie in a reproducing kernel Hilbert space. Analogous arguments to those for the persistence scale space discussed later could be used to show that many of them lie in metric spaces of strong negative type as a corollary of being separable Hilbert spaces.
2.2 Distance correlation
A random element is a map from a probability space to a set . Its distribution is the pushforward measure on . Given two random elements and , one can consider the paired samples . This has a joint distribution on . The marginal distributions for this joint distribution are the pushforwards via the projection maps onto each of the coordinates. An important notion in statistics is whether two variables are independent. This occurs precisely when the joint distribution is the product of the marginal distributions.
The most common measure of correlation between two random variables is the Pearson correlation coefficient. It is defined as the covariance of the two variables divided by the product of their standard deviations. For paired random variables , the Pearson correlation coefficient is defined by
[TABLE]
where are the means of and , their standard deviations, and denotes expectation. Note that if and are independent, then . This implies that a non-zero correlation is evidence of a lack of independence, and hence the variables are related somehow (though possible only indirectly).
The Pearson correlation is designed to analyse bivariate Gaussian distributions. In this case, a correlation of [math] implies that the variables are independent. Furthermore, Pearson correlation determines the ellipticity of the distribution. We can calculate the Pearson correlation for more general distributions, but in that case it detects linear relationships, and nonlinear relationships can be lost. Some examples of the Pearson correlation coefficient are illustrated in Figure 1. Any test using the correlation coefficient (such as significance testing) depends on the bivariate Gaussian assumption.
In parametric statistics we make some assumption about the parameters (defining properties) of the population distribution(s) from which the data are drawn, while in non-parametric statistics we do not make such assumptions. Given the lack of parametric families of topological summary statistics, it makes sense to consider non-parametric methods. One option when studying real-valued random variables which are not normally distributed, or when the relationship between the variables is not linear, is to use the rankings of the samples. It should also be mentioned that such ranking correlations are designed to detect monotone relationships, which — although more general than the linearity of Pearson’s correlation — is still a significant restriction. There are multiple ways to measure the similarity of the orderings of the data when ranked by each of the quantities. The most common is the Spearman rank correlation method, which is the Pearson correlation of the ranks. Alternatives are Kendall’s and Goodman and Kruskall’s , which measure pairwise concordance. We say that a pair of samples is concordant if the cases are ranked in the same order for both variables. They are reversed if the orders differ. We drop any pair of samples where the values in either of the variables is equal. We then define
[TABLE]
where is the number of concordant pairs, is the number of reversed pairs, and is the total number of samples. The only difference between these rank correlations is the treatment of pairs with equal rank; penalises ties while does not. While these methods are distribution free, they are not suitable to be directly applied to topological summaries as the summaries do not lie in spaces with an order. We cannot rank the samples, and thus we can not apply tests that use the ranks.
A new, non-parametric alternative is to work with the pairwise distances. Given paired samples , where the and lie in metric spaces and , respectively, we can ask what the joint variability of the pairwise distances is (i.e. how related is to ). The statistical tools of distance covariance and distance correlation are apt for this purpose. The notion was introduced in [23] for the case of samples lying in Euclidean space.
Distance correlation can be applied to distributions of samples lying in more general metric spaces. It can detect relationships between variables that are not linear, and not even monotonic, as can be seen in Figure 1. There are strong theoretical results about independence. If the variables are independent then the distance correlation is zero. In the other direction, if the metrics spaces are separable and of strong negative type then distance correlation of zero implies the variables are independent. This is discussed in more detail in section 2.3.
In contrast, we can only conclude from Pearson correlation coefficient being zero that the variables are independent when we can assume that the joint distribution is bivariate normal. This difference between Pearson correlation and distance correlation is illustrated with real valued random variables in Figure 1.
The formal definitions follow.
Definition 2.1**.**
Let be a random element taking values in a connected metric space with distribution . For we call the expected distance of to , and denote it by . We say that has finite first moment if for any the expected distance to is finite. In this case we set . For with finite first moment we define its doubly centred distance function as
[TABLE]
It is worth observing that is not a distance function. Lyons showed [15] that for all as long as the support of contains at least two points. This implies for all .
Definition 2.2**.**
Let and be metric spaces. Let be a probability distribution over the product space with marginals and such that and both have finite first moment. We define the distance covariance of as
[TABLE]
The distance variance is a special case where have two identical copies as the joint distributions . Here we have
[TABLE]
which is always non-negative, and zero only in the case of a distribution supported on a single point.
The distance correlation of is defined as
[TABLE]
Remark*.*
There are some variations of notation with regard to whether to include a square root in the definition of distance covariance and correlation. In the introduction of distance correlation in [23], the authors restricted their analysis to Euclidean spaces. Euclidean spaces are metric spaces of negative type, and such spaces have the property that the distance correlation is always non-negative. They could thus define the distance covariance as
[TABLE]
We will follow the notation of [15] and use to denote the square root of , i.e.
[TABLE]
We will also use as the square root of the distance variation and to denote the square root of the the distance correlation, i.e.
[TABLE]
In the simulations and calculations involving topological summaries, it turns out that all the values of the distance correlation are non-negative, even for those involving spaces that are not of negative type.
Given a set of paired samples drawn from a joint distribution, we can compute a sample distance covariance. This is an estimator of the distance covariance of a joint distribution from which the paired samples was taken.
The estimation of the distance correlation of a joint distribution by sample distance covariances is reasonable. In other words this means that if is the sampled joint distribution from i.i.d. samples of then as with probability . See Proposition 2.6 in [15]. This justifies the approximation of the distance correlation via simulations. This is particularly important when dealing with distributions for which there is no closed expressions, which is usually the case when dealing with topological summaries
The following procedure computes the sample distance covariance between paired samples , which we denote :
Compute the pairwise distance matrices , with and . 2. 2.
Compute the means of each row and column in and as well as the total means of the matrices. Let and denote the row means and and the column means. Let and denote the total matrix means. 3. 3.
Compute doubly centered matrices and with and 4. 4.
The sample distance covariance is
[TABLE]
Note that the matrices and have the property that all rows and columns sum to zero.
2.3 Metric spaces of strong negative type
As straightforward application of the definition shows that the distance correlation of a product measure is always zero. To see this, observe that when is a product of and , then
[TABLE]
By construction of and , we have . The converse of this statement holds under conditions on the metric spaces the distributions are over (not the distributions themselves).
Definition 2.3**.**
A metric space has negative type if for all and with
[TABLE]
For spaces of negative type it is always true that the distance covariance is non-negative [15]. We have further nice properties when the metric space is of strong negative type.
Definition 2.4**.**
A metric space has strict negative type if it is a space of negative type where equality in (2.2) implies that the are all zero. By extending to distributions of infinite support we get the definition of strong negative type: A metric space has strong negative type if it has negative type and for all probability measures we have
[TABLE]
Lyons [15] used the notion to characterize the spaces where one can test for independence of random variables using distance correlation.
Theorem 2.5** ([15] [15], \citeyearLyons).**
Suppose that and are separable metric spaces of strong negative type and that is a probability measure on whose marginals have finite first moment. If , then is a product measure.
This means that given paired random variable with joint distribution , we can test for independence by computing and decide they are independent if , and not independent if . The challenge is then how to implement such a test given a sample distance correlation. We expect the sample distance correlation to be non-zero even when the variables are independent.
There is a range of spaces that are proven to be of strong negative type, including all separable Hilbert spaces.
Theorem 2.6** ([15] [15], \citeyearLyons).**
Every separable Hilbert space is of strong negative type. Moreover, if has negative type, then has strong negative type when .
A list of metric spaces of negative type appears as Theorem 3.6 of [16]; in particular, this includes all spaces for . On the other hand, with the -metric is not of negative type whenever and .
The distance correlation still contains useful information even when the spaces are not of strong negative type. It is just more powerful as a test statistic when the spaces are of strong negative type. This is analogous to how the Pearson correlation coefficient still can be evidence of a relationship between two variables even when the joint distribution is not Gaussian. Here the Pearson correlation coefficient is detecting linear relationships. It is an open problem to characterise which relationships are, and which are not, detected by the distance correlation in spaces that are not of strong negative type.
Distance correlation lends itself to non-parametric methods. One possibility is to combine it with permutation tests to construct -values for independence. Permutation tests construct a sampling distribution by resampling the observed data. We can permute the observed data without replacement to create a null distribution (in this case a distribution of distance correlation values under the assumption that the random variables are independent). The use and exploration of permutation tests in relation to distance correlation is beyond the scope of this paper. We direct the interested reader to section 6 for more details.
3 A veritable zoo of topological summaries, some of which are of strong negative type
Persistent homology has become a very important tool in TDA. Certainly there are many choices that are made in any persistent homology analysis, with much of the focus being on the filtration. In this paper we want to highlight another choice, namely the metric space structure to put on the topological summary of choice. Examples include persistence diagrams with bottleneck and Wasserstein distances, persistence landscapes or rank function with an distance, or one of the many kernel representations. The choice of which topological summary we use to represent persistent homology, and the choice of metric on this space of topological summaries, will affect any statistical analysis and will influence whether or not the summary captures the information that is of relevance to the application.
For spaces of strong negative type, distance correlation is known to have the additional nice properties. As a rule, functional spaces with an metric and those lying in a reproducing kernel Hilbert space are of strongly negative type. This implies that the Euler characteristic and Betti curves with the metric are of strong negative type, and that the space of persistence scale shape kernels is of strong negative type. In this section we will characterise which of the spaces of persistence landscapes are of strong negative type and show that the space of persistence diagrams is never of strong negative type. The main results are as follows.
Theorem** (Theorem 3.2).**
The space of persistence diagrams is not of negative type under the bottleneck metric or under any of the Wasserstein metrics.
Theorem** (Theorem 3.4).**
- (a)
The space of persistence landscapes with the norm is of strong negative type. 2. (b)
The space of persistence landscapes with the norm is of negative type when 3. (c)
The space of persistence landscapes with the norm is not of strong negative type, even when restricting to persistence landscapes that arise from persistence diagrams. 4. (d)
The space of persistence landscapes with the norm is not of negative type, even when restricting to persistence landscapes that arise from persistence diagrams.
It is an open question as to whether the sliced Wasserstein metric is of strong negative type; if it is separable then it will be.
3.1 Betti and Euler characteristic curves
Some of the first topological summaries often considered for parameterised families of topological spaces () are the Betti and the Euler characteristic curves, which we denote by and . These are integer valued functions with and . From the point of view of barcodes, one thinks of as the number of bars that contain the point . The Euler curve is then the alternating sum of the Betti curves, , as one would expect.
Clearly the Betti and Euler curves contain less information than the persistence diagrams; in particular, the Betti curves can be thought of as encoding point-wise homological information without considering the induced maps .
Since and are functions, we can consider functional distances between them. In this paper we consider both and distances. Since is a separable Hilbert space, it is of strong negative type. In comparison is of negative type, but not of strict negative type (see [15]). For an explicit counterexample, the reader can modify the one used for the case in section 3.3.
3.2 Persistence diagrams
Persistence diagrams are arguably the most common way of representing persistent homology. A persistence diagrams is a multiset of points above the diagonal in the real plane, with lines at in the second coordinate.
In what follows, let be the subset of the plane above the diagonal , and let denote horizontal lines at infinity.
Definition 3.1**.**
A persistence diagram is a multiset in such that
- •
The number of elements in and are finite
- •
- •
contains countably infinite copies of .
For our purposes, it suffices to consider persistence diagrams with only finitely many off-diagonal points.
Let denote the set of all persistence diagrams. We will consider a family of metrics which are analogous to the -Wasserstein distances on the set of probability measures, and to the distances on the set of functions on a discrete set. inherits natural distances from . For we have and .
With a slight abuse of notation we write to denote the shortest distance to from a point in a persistence diagram. Thus
[TABLE]
for , and . Both and inherit natural distances from the metric on , i.e. and .
Given persistence diagrams and , we can consider all the bijections between them. This set is non-empty due to the presence of in the diagrams. Each bijection can be thought of as providing a transport plan from to . One defines a family of metrics in terms of the cost of the most efficient transport plan.
For each , define
[TABLE]
and
[TABLE]
These distances may be infinite. Indeed, if and contain a different number of points in , then for all .
In theory, for every pair one can construct a distance function of the form
[TABLE]
with and potentially different. Some of the computational topology literature uses a family of metrics where varies but is fixed. The families and share many properties. The metrics and are bi-Lipschitz equivalent, as for any we have , implying . Any stability results (i.e. results pertaining to the change in persistence diagrams due to perturbations of the underlying filtration) for or extend (with minor changes in the constants involved) to stability results for the other.
We feel that the choice of is cleaner in theory and in practice. The coordinates of the points within a persistence diagram have particular meanings; one is the birth time and one is the death time. They are often locally independent (even though not globally so). For example, if we have generated our persistence diagram from the distance function to a point cloud, then each persistence class has its birth and death time locally determined by the location of two pairs of points, which are often distinct. Whenever these pairs are distinct, moving any of these four points will change either the birth or the death but not both. The distinctness of the treatment of birth and death times as separate qualities may seem more philosophically pleasing to the reader in the setting of barcodes.
Unfortunately, the geometry of the space of persistence diagrams is complicated and statistical methods not easy to apply. For example, there are challenges even in computing the mean or median of finite samples (see [26, 25]). Given this it is perhaps not surprising that the space of persistence diagrams is not of negative type (let alone of strong negative type) under the bottleneck or indeed any of the Wasserstein metrics. Although this has been indirectly mentioned or suggested before (notably in [19, 6]), we include here explicit counterexamples.
Theorem 3.2**.**
The space of persistence diagrams is not of negative type under the bottleneck or any of the Wasserstein metrics.
Proof.
We will construct two different counterexamples; one for small and one for large . Note that the bottleneck metric is the Wasserstein metric with .
For small , consider the two separate unit squares formed by the points and in Figure 2. Each persistence diagram will be a union of a pair of corners sharing an edge in one of the squares, together with a pair of corners diagonally opposite on the other square. We then choose the weights (the ’s in inequality (2.2)) to be if the off-diagonal points are diagonally opposite in the rightmost square, and if they are diagonally opposite in the leftmost square. A list of the diagrams is in Table 1.
We have the following distance matrix for the within-group distances, i.e. the symmetric matrix with entries :
[TABLE]
This implies that
[TABLE]
and similarly
[TABLE]
The sum of interest, using the weighting in Table 1, is
[TABLE]
Now exactly when . This thus shows that the metric space of persistence diagrams with is not of negative type when .
We will now construct a counterexample for space of persistence diagrams under -Wasserstein distance with . We will construct our counterexample with persistence diagrams containing points listed in Figure 3. This has separate squares with unit edge length that are sufficiently far apart. We will have two sets of persistence diagrams, and , and we will be giving a weight of to all the persistence diagrams in and a weight of to all the persistence diagrams in .
Each persistence diagram in will have 4 off-diagonal points; one corner point from each of the squares labelled with upper case letters, and and . An example is . There are a total of 16 such persistence diagrams.
Each persistence diagram in will have 4 off-diagonal points; one corner point from each of the squares labelled with lower case letters, and and . An example is .
For every pair of persistence diagrams we have . This implies that the total between-group pairwise distance is .
To compute the within group distances we first observe that the symmetry of the counterexample ensures that the sum of distance is the same for all and that this is also the same as for all . This means we can compute for a fixed . We can split the remaining into cases depending on how many of the off-diagonal points in the persistence diagrams are the same as that in , are on the same edge of the corresponding square as that in , or are diagonally opposite corners of the corresponding square. We describe this distribution in Table 2, giving example persistence diagrams.
Using this table, we calculate . To prove this is a counterexample we need to show that
[TABLE]
This is equivalent to and by diving through by this is equivalent to the condition that
[TABLE]
Now is an increasing function in , when and . Thus for all we know , , and . Together these imply that
[TABLE]
and (3.1) holds for all . ∎
When performing computations with Wasserstein distances, we used the approximate Wasserstein distance algorithm implemented in Hera [11]. The algorithm computes the distances up to arbitrarily chosen relative errors, that we set very low.
3.3 Persistence landscapes
Recall that is the vector space of non-trivial homology classes in that are still distinct when thought of as elements of under the induced map . For let . We can think of as a persistent version of the ordinary Betti numbers. Indeed, is the Betti number of . Notably, persistent Betti numbers are non-negative integer valued functions. Furthermore, when , then . We can construct the persistence landscape as a sequence of functions which together completely describe the level sets of these functions.
Definition 3.3**.**
The persistence landscape of some filtration is a function , where denotes the extended real numbers, defined by
[TABLE]
We alternatively think of the landscapes as a sequence of functions with .
Since persistence landscapes are real-valued functions, we can consider the space of these functions with the norm
[TABLE]
for .
Theorem 3.4**.**
The following are true for the space of persistence landscapes under different norms:
: It is of strong negative type. 2. 2.
: It is of negative type. 3. 3.
: It is not of strong negative type, even when restricting to persistence landscapes that arise from persistence diagrams. 4. 4.
: It is not of negative type, even when restricting to persistence landscapes that arise from persistence diagrams.
Proof.
The space of persistence landscapes with the norm is a separable Hilbert space. Applying Theorem 2.6 shows it is of strong negative type. 2. 2.
As discussed in [4], these function spaces are function spaces. From Theorem 3.6 in [16] we know that these are of negative type when . 3. 3.
The space of persistence landscapes with norm is of negative type but not of strong negative type. We can construct a counterexample using only distributions of landscapes that arise from persistent homology. To this end it is sufficient to provide appropriate barcodes, each with finitely many bars, as every such barcode can be realised. Let
[TABLE]
Since all the bars in each barcode are disjoint, only the first persistence landscape in non-zero.
Let denote the persistence landscape of , and the metric induced by the norm.
We have and for all . If we weight and by , and the and by , then the weighted sum from inequality (2.2) is [math], which means that the space of persistence landscapes with norm is of non-strict negative type. 4. 4.
For the space of persistence landscapes is not of negative type. We can construct a counterexample using only distributions of landscapes that arise from persistent homology. Again we do to this via barcodes. Let
[TABLE]
Since all the bars in each barcode are disjoint, only the first persistence landscape is non-zero.
It is straightforward to compute the distances between the corresponding persistence landscapes. Let denote the persistence landscape of , and the metric induced by the norm. We see that when and for all . If we weight each of the with and the by we get the desired counterexample showing that the space of persistence landscapes with the distance is not of negative type.
∎
Persistence landscapes computations were performed using the persistence landscapes toolkit [5].
3.4 Persistence scale space kernel
The persistence scale space kernel is a modification of scale space theory to a persistence diagram setting. Extra care is needed to consider the role of the diagonal. The idea is to consider the heat kernel with an initial heat energy of Dirac masses at each of the points in the persistence diagram with the boundary condition that it is zero on the diagonal. The amount of time over which the heat diffusion takes place is a parameter. More formally, it is defined in [19] as follows.
Definition 3.5**.**
Let denote a Dirac delta centered at the point . For a given finite persistence diagram with only finite lifetimes222When analyzing real data, one often cones off the space at some more or less meaningful maximum filtration so as to avoid infinite intervals., we now consider the solution of the partial differential equation
[TABLE]
The solution lies in whenever has finitely many points. It has a nice closed expression using the observation that it is the restriction of the solution of a PDE with an initial condition where below the diagonal we start with the negative of the Dirac masses over the reflection of the points in the diagram above the diagonal. For and we have
[TABLE]
The metric for the space of persistence scale shape kernels is that of . The closed form for the persistence scale space kernel allows a closed form of the pairwise distances in terms of the points in the original diagrams. In particular for diagrams and and fixed , this distance can be written in terms of a kernel , where
[TABLE]
and the corresponding distance function is
[TABLE]
Since is a separable Hilbert space, this metric is of strong negative type.
3.5 Sliced Wasserstein kernel distance
The sliced Wasserstein distance between persistence diagrams, introduced in [6], works with projections onto lines through the origin. For each choice of line, one intuitively computes the Wasserstein distance between the two projections (a computationally much easier problem, being a matching of points in one dimension), and then integrates the result over all choices of lines. More formally the definition in [6] is as follows.
Definition 3.6**.**
Given with , Let denote the line , and let be the orthogonal projection onto . Let and be two persistence diagrams, and let and for . Then the sliced Wasserstein distance is defined as
[TABLE]
where the -Wasserstein distance is defined as where is the set of measures on with marginals and .
It was shown in [6] that the sliced Wasserstein distance is conditionally seminegative definite on the space of finite and bounded persistence diagrams. This is equivalent to the condition of being of negative type. It is an open question as to whether it is of strong negative type.
In [6], the authors construct a kernel with bandwidth parameter in the standard way (see [27]), namely
[TABLE]
It being a kernel in the sense that
[TABLE]
for some function into a Hilbert space , one obtains a distance function with
[TABLE]
If this reproducing kernel Hilbert space is separable, then the space of persistence diagrams with will be of strong negative type. This separability property is an open question.
In our computations, we always projected onto equidistributed lines.
4 Distance correlation between different topological summaries
The differences between the metrics used can dramatically affect the statistical analysis of a data set. It is important to choose a summary such that the domain-specific differences in the input data that are of interest are reflected in the distances between their corresponding topological summaries.
The key idea in this section is to take the same object, for example generated through a random process, and then to record different topological summaries of it. As we have seen, this gives us different metric space structures on the data. We then compare the pairwise distances using distance correlation.
We consider a variety of more or less standard or well known families of random cell complexes and their filtrations, as well as some non-random data.
4.1 Erdős–Rényi
We constructed the weighted version of -vertex Erdős–Rényi random graphs, which is to say we endow the complete graph on vertices with uniform random independent edge weights. The flag complexes of each of these are then the filtrations we consider. We generated such filtrations to get sample the distribution of degree- persistent homology of such complexes. An example persistence diagram is shown in Figure 4. We then computed the distance correlation between the different topological summaries, with the result shown in Figure 4.
The persistent homology computations were performed using Ripser [2].
4.2 Directed Erdős–Rényi
A directed analog of the flag complex of undirected graphs was introduced in [18]. To construct such flag complexes, we generated instances of the independently random uniform weights on the complete directed graph on vertices (taking “complete directed graph” to mean having opposing edges between every pair of vertices), and computed the corresponding filtrations and degree- persistent homology of directed flag complexes using Flagser [14]. An example persistence diagram is shown in Figure 5. We then computed the distance correlation between the different topological summaries, with the result shown in Figure 5.
4.3 Geometric random complexes for points sampled on a torus
For this dataset, we randomly sampled points independently from a flat torus in by sampling uniformly and considering the image of . We then built the alpha complex over this set of points. This was performed times to construct samples of the distribution of persistent homology in degree for such complexes. An example persistence diagram is shown in Figure 6. We then computed the distance correlation between the different topological summaries, which is shown in Figure 6.
The computations of alpha complexes and persistent homology for this dataset were done using GUDHI [24].
4.4 Geometric random complexes for point sampled from a unit cube
For this dataset, we uniformly randomly sampled points independently from the unit cube . We then constructed the alpha complex over this set of points. This was performed times to sample the distribution of persistent homology for such complexes. An example persistence diagram is in Figure 7. We then computed the distance correlation between the different topological summaries which is shown in Figure 7.
For this particular dataset, we also computed a very non-topological summary based on the same underlying complex, namely the counts of -simplices ( in Figure 7). These were considered as “count curves” in the obvious way, and endowed with the and metrics. They, unsurprisingly, correlate little with the topological summaries.
The computations of the alpha complexes and persistent homology for this dataset were done using GUDHI [24].
4.5 Observations about the distance correlation in these simulations
The first general comment is that the sampled distance correlations for the tological summaries split these different simulations into two groups; one group contains the directed Erdös Rényi filtrations and the Erdös Rényi filtrations, and the other group of simulations contain filtrations built from random point clouds either on the flat torus on is the unit cube. This is not too surprising as the both directed Erdös Rényi filtrations and the Erdös Rényiscenarios represent completely random types of complexes without correlations on the simplex values. In contrast, for fitrations built on point clouds there are geometric constriants which imply correlations between the filtration values on neighbouring simplices. This in turn affects the observed topology.
For both the persistence diagrams and the persistence landscapes sampled the distance correlations for and . In all of the simulation studies the metrics from and of the same topological summary generally have high distance correlation, but that they are quite different to the version of that same topological summary. This is particularly prenounced in the Erdös Rényi and directed Erdös Rényi filtrations. In fact here the distance correlation between digrams and landscapes with and is higher than the distance correlation between bottleneck distances and -Wasserstein distances for or , and similarly for landscapes. One explanation is that in the completely random scenario we can have more extremal persistent homology classes and these extremal persistent homology classes dominate the metrics more that in the and metrics.
Another observation is that overall we see high correlation between the Sliced Wasserstein distances and the Wasserstein ( or ) distances. Perhaps not surprising since both are geometrically measuring similar quantities with a pairing process of points involved in both distances (though the pairing potentially varying between slices in the Sliced Wasserstein).
5 Distance correlation to another parameter
Instead of considering the correlation between two distances of topological summaries, one may want to consider the correlation between a metric on topological summaries and some real number relating to the underlying model. The real number may for example parameterise the underlying model, or it may be some function of the model that has domain-specific meaning. We will here consider only parameters and functions with codomain in (intervals in) , and consider that space as a metric space equipped with the absolute value distance.
For brevity, we will from now on refer also to the value of certain domain-specific functions on the underlying model as “parameters”, even though they strictly speaking are not (see for example the case of elevation data below, where terrain smoothness will incorrectly be referred to as a parameter of the landscape). We will also use the letter to denote the parameter space as a metric space with the absolute value distance.
We can use distance correlation to quantify how well the distances between some topological summaries relate to the differences in the parameter. The varying performances of the different topological summaries in correlating to the parameter highlights how the choice of topological summary has statistical significance.
5.1 Parameterised interpolation between Erdős–Rényi and geometric complexes
Our parameter space is now . Each sampled filtered complex with parameter is built by sampling points i.i.d. uniformly from the unit cube , and sampling the entries of a symmetric matrix i.i.d. uniformly from . We endow a complete graph on vertices with weights for each pair by letting with probability and with probability . The filtered complex generated is then the flag complex of this graph. Observe that this is a (Vietoris–Rips) version of the random geometric complex considered before when , and the Erdős–Rényi complex when .
A correlation between the parameter space and a given metric on a topological summary is then a measure of how well that metric detects the parameter.
For this experiment, we let take the equally spaced values from , including the endpoints. These distance correlations are displayed in Table 3. The higher the distance correlation, the better the topological summary reflects the effect of the parameter . We see that generally the function distances between Betti curves, Wasserstein distances and bottleneck distances between and the function distances between persistence landscapes had a higher correlation, all with a distance correlation greater than . This illustrates that these topological summaries would be good choices if we wish to do learning problems or statistical analysis with regards to this parametrised random model, such as parameter estimation. We also see the importance of the choice of bandwidth with dramatic effect on the distance correlation of the persistence scale space kernel and the Sliced Wasserstein kernel.
The persistent homology computations were performed using Ripser [2].
5.2 Digital elevation models and terrain ruggedness
As a simple example of “real world” data, we considered digital elevation model (DEM) data for a km by km patch around the city of Trondheim, Norway333The data was provided by the Norwegian Mapping Authority [10] under a CC-BY-4.0 license.. The DEM data set maps elevation data with a horizontal resolution of m m and a vertical resolution of about m, and as such provides a terrain height map. Figure 8 shows the DEM our data was based on.
The data can, at the aforementioned horizontal resolution, be considered as a integer-valued matrix , where each entry is interpreted as the height above a reference elevation in the vertical resolution unit. Each filtered complex we consider comes from block in . The blocks overlap up to , and we keep a total of blocks. Each block is then considered as a two-dimensional cubical complex with the elevation data as the height filtration on the -cells.
The terrain ruggedness indicator (TRI) is an extremely simple measure of local terrain ruggedness that is widely employed in GIS and topography [20]. The TRI itself is a real-valued function defined on each map point/pixel, and a high value indicates a locally more rugged terrain. We simplify the measure even further by averaging the TRI for the whole map chunk considered, thus assigning a single real number to each map chunk. It is this number that will play the role of one parameter assigned to each of the map chunks considered, which we will call . The results are shown in Table 4.
Another natural metric that can be defined on the raw data (the chunks) itself is the actual geodesic distance between the centers of the chunks. We also computed distance correlations between the metrics on topological summaries and this geodesic distance, although one must remember that it is perhaps not reasonable to expect a high correlation here; indeed, topographies with topologically highly interesting height functions may exist on a coastline, and thus be very close topologically trivial terrain. The results in Table 4 are therefore quite surprising.
The cubical complex persistent homology calculations were doing using GUDHI [24].
6 Future directions
Non-parametric statistics is a fruitful area for ideas and inspiration for methods that can be applied in conjunction with TDA. There are already a variety of options that only use pairwise distances, including null-hypothesis testing, clustering, classification, and parameter estimation. In all these cases, we would expect that distance correlation would be a good estimator for similarity of statistical analyses.
We can perform null hypothesis testing with topological summaries via a permutation text with a loss function a function of the pairwise distances (see [22]). Intuitively, when there is a high distance correlation, the pairwise distances are correlated and the corresponding loss functions should be similar for each permutation of the labels. This implies we should expect that the -values given a sample distribution should be close, at least with high probability. It may be possible to show that the power of the null hypothesis tests are close. An experimental and theoretical exploration of this relationship is a future direction.
We can also think of considering a modification of the permutation test for independence using distance correlation (instead of Pearson correlation). This can then be applied to topological summaries. One can get a -value that for whether two variables are independent by permuting the coupling of the variables but keeping the marginal distributions the same. A high ranking of the distance correlation for the original joint distribution would indicate that the variables are not independent, with high probability. Exploring the power of this is a future direction of research.
Another non-parametric method is parameter estimation using nearest neighbours. One method for estimating a real valued parameter which is unknown on a particular sample, but is known on a training set, is to take a weighted average of the values of the parameter on the training set with the weighting dependent on the pairwise distances from the sample of interest to those in the training set. We would expect better estimation when the distance correlation between the samples and the parameter of interest is high. Future directions for research can include experimental and theoretical results along these lines with respect to topological summaries. In particular, we would expect that we should be able to create confidence intervals for the parameter, dependent on the distance correlation. This is also an area where we should expect similar statistical analysis when the samples have high distance correlation.
Completely analogous to the above comments, clustering methods using pairwise distances should have similar results when the sets of samples have high distance correlation and future work could explore this with respect to topological summaries.
Acknowledgments
G.S. would like to thank Andreas Prebensen Korsnes of the Norwegian Mapping Authority for going out of his way to facilitate bulk downloads of DEM data before a single region was decided upon for the experiment in section 5.2.
G.S. was supported by Swiss National Science Foundation grant number 200021_172636.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Rushil Anirudh, Vinay Venkataraman, Karthikeyan Natesan Ramamurthy and Pavan Turaga “A Riemannian Framework for Statistical Analysis of Topological Persistence Diagrams” In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops , 2016, pp. 68–76
- 2[2] Ulrich Bauer “Ripser” URL: https://github.com/Ripser/ripser
- 3[3] Christophe Biscio and Jesper Møller “The accumulated persistence function, a new useful functional summary statistic for topological data analysis, with a view to brain artery trees and spatial point process applications” In Journal of Computational and Graphical Statistics Taylor & Francis, 2019, pp. 1–20
- 4[4] Peter Bubenik “Statistical topological data analysis using persistence landscapes” In The Journal of Machine Learning Research 16.1 JMLR.org, 2015, pp. 77–102
- 5[5] Peter Bubenik and Paweł Dłotko “A persistence landscapes toolbox for topological statistics” In Journal of Symbolic Computation 78 Elsevier, 2017, pp. 91–114
- 6[6] Mathieu Carrière, Marco Cuturi and Steve Oudot “Sliced Wasserstein kernel for persistence diagrams” In Proceedings of the 34th International Conference on Machine Learning 70 , 2017, pp. 664–673 JMLR.org
- 7[7] Mathieu Carrière, Steve Y Oudot and Maks Ovsjanikov “Stable topological signatures for points on 3d shapes” In Computer Graphics Forum 34.5 , 2015, pp. 1–12 Wiley Online Library
- 8[8] Wikimedia Denis Boigelot “Examples of correlations” In the public domain., 2011 URL: https://commons.wikimedia.org/wiki/File:Correlation_examples 2.svg
