Robust Topological Inference: Distance To a Measure and Kernel Distance
Frédéric Chazal, Brittany T. Fasy, Fabrizio Lecci, Bertrand Michel, Alessandro Rinaldo, Larry Wasserman
Introduction
Figure 1 shows three complex point clouds, based on a model used for simulating cosmology data. Visually, the three samples look very similar. Below the data plots are the persistence diagrams, which are summaries of topological features defined in Section 2. The persistence diagrams make it clearer that the third data set is from a different data generating process than the first two.
This is an example of how topological features can summarize structure in point clouds. The field of topological data analysis (TDA) is concerned with defining such topological features; see Carlsson (2009). When performing TDA, it is important to use topological measures that are robust to noise. This paper explores some of these robust topological measures.
The sublevel sets provide multiscale topological information about . As varies from zero to , topological features — connected components, loops, voids — are born and die. Persistent homology quantifies the evolution of these topological features as a function of . See Figure 2. Each point on the persistence diagram represents the birth and death time of a topological feature.
Given a sample , the empirical distance function is defined by
If is supported on , and has a density bounded away from zero and infinity, then is a consistent estimator of , i.e., However, if there are outliers, or noise, then is no longer consistent. Figure 3 (bottom) shows that a few outliers completely change the distance function. In the language of robust statistics, the empirical distance function has breakdown point zero.
A more robust approach is to estimate the persistent homology of the super-level sets of the density of . As long as is concentrated near , we expect the level sets of to provide useful topological information about . Specifically, some level sets of are homotopic to under weak conditions, and this implies that we can estimate the homology of . Note that, in this case, we are using the persistent homology of the super-level sets of , to estimate the homology of . This is the approach suggested by Bubenik (2012), Fasy et al. (2014b) and Bobrowski et al. (2014). A related idea is to use persistent homology based on a kernel distance (Phillips et al., 2014). In fact, the sublevel sets of the kernel distance are a rescaling of the super-level sets of , so these two ideas are essentially equivalent. We discuss this approach in Section 5.
A different approach, more closely related to the distance function, but robust to noise, is to use the distance-to-a-measure (DTM), , from Chazal et al. (2011); see Section 2. An estimate of is obtained by replacing the true probability measure with the empirical probability measure , or with a deconvolved version of the observed measure Caillerie et al. (2011). One then constructs a persistence diagram based on the sub-level sets of the DTM. See Figure 1. This approach is aimed at estimating the persistent homology of . (The DTM also suggests new approaches to density estimation; see Biau et al. (2011).)
The density estimation approach and the DTM are both trying to probe the topology of . But the former is using persistent homology to estimate the homology of , while the DTM is directly trying to estimate the persistent homology of . We discuss this point in detail in Section 9.1.
In this paper, we explore some statistical properties of these methods. In particular:
We show that converges to a Gaussian process. (Theorem 5).
We show that the bootstrap provides asymptotically valid confidence bands for . This allows us to identify significant topological features. (Theorem 18).
We find the limiting distribution of a key topological quantity called the bottleneck distance. (Section 4.1).
We also show that, under additional assumptions, there is another version of the bootstrap — which we call the bottleneck bootstrap — that provides more precise inferences. (Section 6).
We show similar results for the kernel distance. (Section 5).
We propose a method for choosing the tuning parameter for DTM and the bandwidth for the kernel distance. (Section 7.1).
We show that the DTM and the KDE both suffer from boundary bias and we suggest a method for reducing the bias. (Section 7.2).
Notation. is a Euclidean ball of radius , centered at . We define , the union of -balls centered at points in . If is a vector then . Similarly, if is a real-valued fiction then . We write to mean that converges in distribution to , and we use symbols like as generic positive constants.
Remark: The computing for the examples in this paper were done using the R package TDA. See Fasy et al. (2014a). The package can be downloaded from http://cran.r-project.org/web/packages/TDA/index.html.
Remark: In this paper, we discuss the DTM which uses a smoothing parameter and the kernel density estimator which uses a smoothing bandwidth . Unlike in traditional function estimation, we do not send these parameters to zero as increases. In TDA, the topological features created with a fixed smoothing parameter are of interest. Thus, all the theory in this paper treats the smoothing parameters as being bounded away from 0. See also Section 4.4 in Fasy et al. (2014b). In Section 7.1, we discuss the choice of these smoothing parameters.
Background
In this section, we define several distance functions and distance-like functions, and we introduce the relevant concepts from computational topology. For more detail, we refer the reader to Edelsbrunner and Harer (2010).
Let . We will refer to the parameter as “time.”
Given the nested family of the sublevel sets of , the topology of changes as increases: new connected components can appear, existing connected components can merge, cycles and cavities can appear or be filled, etc. Persistent homology tracks these changes, identifies features and associates an interval or lifetime (from to ) to them. For instance, a connected component is a feature that is born at the smallest such that the component is present in , and dies when it merges with an older connected component. Intuitively, the longer a feature persists, the more relevant it is.
A feature, or more precisely its lifetime, can be represented as a segment whose extremities have abscissae and ; the set of these segments is called the barcode of . An interval can also be represented as a point in the plane with coordinates . The set of points (with multiplicity) representing the intervals is called the persistence diagram of . Note that the diagram is entirely contained in the half-plane above the diagonal defined by , since death always occurs after birth. This diagram is well-defined for any compact set (Chazal et al. (2012), Theorem 2.22). The most persistent features (supposedly the most important) are those represented by the points furthest from the diagonal in the diagram, whereas points close to the diagonal can be interpreted as (topological) noise.
Let and be compact sets with distance functions and and diagrams and . The bottleneck distance between and is defined by
where the minimum is over all bijections between and . In words, the bottleneck distance is the maximum distance between the points of the two diagrams, after minimizing over all possible pairings of the points (including the points on the diagonals).
A fundamental property of persistence diagrams is their stability. According to the Persistence Stability Theorem (Cohen-Steiner et al. (2005); Chazal et al. (2012))
Here, is the Hausdorff distance, namely,
Given a sample , the empirical distance function is defined by
Suppose that is supported on , and has a density bounded away from zero and infinity. Then
See also Cuevas and Rodríguez-Casal (2004). The previous lemma justifies using to estimate the persistent homology of sublevel sets of . In fact, the sublevel sets of are just unions of balls around the observed data. That is,
The persistent homology of the union of the balls as increases may be computed by creating a combinatorial representation (called a Cech complex) of the union of balls, and then applying basic operations from linear algebra (Edelsbrunner and Harer, 2010, Sections VI.2 and VII.1).
However, as soon as there is noise or outliers, the empirical distance function becomes useless, as illustrated in Figure 3. More specifically, suppose that
where , is an outlier distribution (such as a uniform on a large set), is supported on , denotes convolution, and is a compactly supported noise distribution with scale parameter .
Recovering the persistent homology of exactly (or even the homology of ) is not possible in general since the problem is under-identified. But we would still like to find a function that is similar to the distance function for . The empirical distance function fails miserably even when and are small. Instead, we now turn to the DTM.
2 Distance to a Measure
Given a probability measure , for , the distance-to-measure (DTM) at resolution (Chazal et al., 2011) is defined by
where . Alternatively, the DTM can be defined using the cdf of the squared distances, as in the following lemma:
Let . Then
Given a sample , let be the probability measure that puts mass on each . It is easy to see that the distance to the measure at resolution is
where and is the set containing the nearest neighbors of among . We will use to estimate .
Now we summarize some important properties of the DTM, all of which are proved in Chazal et al. (2011). First, recall that the Wasserstein distance of order between two probability measures and is given by
where the infimum is over all joint distributions for such that and . We say that satisfies the -condition if there exist such that, for every in the support of and every ,
The next theorem summarizes results from Chazal et al. (2011) and Buchet et al. (2013).
If satisfies (11) and is supported on a compact set , then
In particular, as .
If and are two distributions, then
If satisfies (11) and is supported on a compact set and is another distribution (not necessarily supported on ), then
Hence, if , then .
Let be the diagram from and let be the diagram from . The bottleneck distance is bounded by
We conclude this section by bounding the distance between the diagrams and .
We first apply the stability theorem and part 3 in the previous result:
The term can be upper bounded as follows:
These two terms can be bounded with simple transport plans. Let be a Bernoulli random variable with parameter . Let and be random variables with distributions and . We take these three random variables independent. Then, the random variable defined by has for distribution the mixture distribution . By definition of , one has
It can be checked in a similar way that (see for instance the proof of Proposition 1 in Caillerie et al. (2011)) and the Lemma is proved. ∎
Limiting Distribution of the Empirical DTM
In this section, we find the limiting distribution of and we use this to find confidence bands for . We start with the pointwise limit.
Let and , as defined in the previous section.
First suppose that .
Then, by integrating “horizontally” rather than “vertically”, we can split the integral into two parts, as illustrated in Figure 4:
Next, it can be easily checked that (18) is also true when if we take when . Now, since is differentiable at , we have that \Bigl{|}F_{x}^{-1}(m)-\widehat{F}_{x}^{-1}(m)\Bigr{|}=O_{P}(1/\sqrt{n}), see for instance Corollary 21.5 in van der Vaart (2000). According to the DKW inequality we have that and thus
with . When such modulus of continuity exists, note that it always can be chosen non decreasing and this allows us to consider its generalized inverse .
One may ask if the existence of the uniform modulus of continuity over a compact domain is a strong assumption or not. To answer this issue, let us introduce the following assumption:
Note that Assumption is not very strong. For instance it is satisfied for a measure supported on a compact and connected manifold, with absolutely continuous for the Hausdorff measure on . The following Lemma derives from general results on quantile functions given in Bobkov and Ledoux (2014) (see their Appendix A); the lemma shows that a uniform modulus of continuity for the quantiles exists under Assumption .
Let . According to Proposition A.17 in Bobkov and Ledoux (2014), Assumption is equivalent to the absolute continuity of in . We can then define a modulus of continuity of by
According to Lemma 8, we have that for any :
where only depends on and . According to (19), for any , and for any :
By taking the supremum over the and the such that , it yields:
and is thus Lipschitz at any . For any , let
which gives that and both tend to zero because is continuous at zero. Thus is continuous at zero and the Lemma is proved. ∎
Therefore . Similarly,
which implies .
We are now in position to state the functional limit of the distance to measure to the empirical measure.
Note that the functional limit is valid for any value of . A local version of this result could be also proposed by considering the (local) modulii of continuity of the quantile functions at . For the sake of clarity, we prefer to give a global version.
In the proof of Theorem 5 we showed that where
First, we show that . Then we prove that converges to a Gaussian process.
Note that where
Let Uniform (0,1), for and let be their empirical distribution function. Define . Then , where is the th order statistic. Thus, for any and any :
In the last line we used inequality 1 page 453 and Point (12) of Proposition 1 page 455 of Shorack and Wellner (2009). Note that for any because is assumed to be continuous at zero by definition.
Fix . There exists an absolute constant such that there exists an integer and points laying in such that , where . Now, we apply Lemma 8 with , and with and we find that for any :
where is a positive constant which only depends on and . Using a union bound together with (20) , we find that
Thus, . Then
Since , it only remains to prove that the process converges to a Gaussian process.
Now, we consider the process on . Let us denote the empirical process. Note that
Hadamard Differentiability and The Bootstrap
In this section, we use the bootstrap to get a confidence band for . Define by
Let be a sample from the empirical measure and let be the corresponding empirical DTM. The bootstrap estimate is defined by
As usual, can be approximated by Monte Carlo. Below we show that this bootstrap is valid. It then follows that
A different approach to the bootstrap is considered in Section 6.
conditionally given , in probability.
We will establish the above result using the functional delta method, which entails showing that the distance to measure function is Hadamard differentiable at . In fact, the proof further shows that the process
This result is consistent with the result established in Theorem 9, but in order to establish Hadamard differentiability, we use a slightly different assumption. Theorem 9 is proved by assuming an uniform modulus of continuity on the quantile functions whereas in Theorem 11 an uniform lower bound on the derivatives is required. These two assumptions are consistent: they both say that is well behaved in a neighborhood of for all . However, (24) is stronger.
Let us first give the definition of Hadamard differentiability, for which we refer the reader to, e.g., Section 3.9 of van der Vaart and Wellner (1996). A map from a normed space to a normed space is Hadamard differentiable at the point if there exists a continuous linear map such that
whenever as .
We also recall the functional delta method (see, e.g. van der Vaart and Wellner, 1996, Theorem 3.9.4): suppose that takes values in , , , and suppose that is Hadamard differentiable at . Then . Moreover, by Theorem 3.9.11 of van der Vaart and Wellner (1996) the bootstrap has the same limit. More precisely, given , we have that converges conditionally in distribution to , in probability. This implies the validity of the bootstrap confidence sets.
The pair is a normed space.
where the infimum over the empty set is define to be . If is a probability measure and then is just the -th quantile of the random variable , .
Fix a and let denote the subset of consisting of all finite signed measure such that, there exists a value of for which . Thus, for any and , . Let be the image of by the mapping (26).
Let the set of bounded, real-valued function on , a normed space with respect to the sup norm. Finally, we define to be the mapping
Notice that if is a probability measure, simple algebra shows that is the square value of the distance to measure of at the point , i.e. ; see Figure 5.
Below we will show that, for any probability measure , the mapping (27) is Hadamard differentiable at .
For an arbitrary , let be a sequence of signed measure such that and such that for all . Sequences of this form exist: since as , for any arbitrary and all small enough,
By the boundedness of and compactness of , this implies that there exists a number such that
so the image of by (27) is an element of (i.e. it is a bounded function).
To demonstrate Hadamard differentiability (see 25), we will prove that, as , the expression in (28), as a bounded function of , will converge in to the bounded function
Towards that end, we have, for all and any ,
where, for , we write .
To handle the three terms appearing in the last display, we first state and prove two useful results.
We first prove (31). Let . Then,
Since as we obtain (30). The claim (31) follows from (30) using the facts that is monotone for each and that .
To show (29), the relation (32) combined with the fact that for all yields that
for all . By (31) and (24),
uniformly in and for all small enough. The relation (29) follows from the fact that . ∎
We now analyze the terms , and separately.
Term . As , and, uniformly in and , . Furthermore, by compactness of and . Therefore, using the dominated convergence theorem,
Term . Since is non-decreasing in for all , we have
Term . Finally, since as and using (31), we obtain
Therefore, from (28), (33), (34), and (35),
is the Hadamard derivative of at .
Fasy et al (2014) showed how to use the bootstrap to test the significance of a topological feature. They did this for distance functions and density estimators but the same idea works for DTM as we now explain.
Given a feature with birth and death time , we will say that the feature is significant if where is defined by
In particular, can be estimated from the bootstrap as we showed in the previous section. Specifically, define by
Then is a consistent estimate of .
To see why this makes sense, let be the set of persistence diagrams. Let be the true diagram and let be the estimated diagram. Let
as . Now if and only if the feature cannot be matched to the diagonal for any diagram in . (Recall that the diagonal corresponds to features with zero lifetime.)
We can visualize the significant features by putting a band of size around the diagonal of . See Figure 6.
Theory for Kernels
In this section, we consider an alternative to the DTM, namely, kernel based methods. This includes the kernel distance and the kernel density estimator.
Phillips et al. (2014) suggest using the kernel distance for topological inference. Given a kernel , the kernel distance between two probability measures and is
It can be shown that for vectors and in an appropriate reproducing kernel Hilbert space (RKHS). Such distances are popular in machine learning; see Sriperumbudur et al. (2009), for example.
Given a sample , let be the probability measure that put mass on each . Let be the Dirac measure that puts mass one on . Phillips et al. (2014) suggest using the discrete kernel distance
for topological inference. This is an estimate of the population quantity
The most common choice of kernel is the Gaussian kernel , which has one tuning parameter . We recall that, in topological inference, we generally do not let tend to zero. See the related discussion in Section 4.4 of Fasy et al. (2014b).
Recall that the kernel density estimator is defined by
Here, we used the fact that and .
We see that up to small order terms, the sublevel sets of are a rescaled version of the super-level sets of the kernel density estimator. Hence, the kernel distance approach and the density estimator approach are essentially the same, up to a rescaling. However, has some nice properties; see Phillips et al. (2014).
The limiting properties of follow immediately from well-known properties of kernel density estimators. In fact, the conditions needed for are weaker than for the DTM.
The Bottleneck Bootstrap
More precise inferences can be obtained by directly bootstrapping the persistence diagram. Define by
The quantile can be estimated by Monte Carlo. We then use a band of size on the diagram .
In the following, we show that consistently estimates the population value defined by
The reason why the bottleneck bootstrap can lead to more precise inferences than the functional bootstrap from the previous section is that the functional bootstrap uses the fact that and finds an upper bound for . But in many cases the inequality is not sharp so the confidence set can be very conservative. Moreover, we can obtain different critical values for different dimensions (connected components, loops, voids, …) and so the inferences are tuned to the specific features we are estimating. See Figure 7.
Although the bottleneck bootstrap can be used with either the DTM or the KDE, we shall only prove its validity for the KDE. First, we need the following result. For any function , let denote its gradient and let denotes its Hessian. We say that is a critical point if . We then call a critical value. A function is Morse if the Hessian is non-degenerate at each critical point. The More index of a critical point is the number of negative eigenvalues of .
is a Morse function with exactly critical points say, and, after a suitable re-labeling of indices,
Moreover, and have the same Morse index.
Now let be small enough such that , and for any , . Then where and are both positive. If satisfies the assumptions of the lemma for any , then the critical values of have to be in and the critical points have to be in .
More precisely, notice that since is a Morse function, for small enough, , and, for any , the Taylor series of about yields
where as and is the Hessian of at . Let be the smallest absolute eigenvalue of the Hessians at all the critical points. Since is a Morse function, the matrix is full rank and is positive. As a consequence, for all and small enough, . Since is a non-incresing function of , we have that, for small enough, .
To conclude the proof of the lemma, we need to prove that each ball contains exactly one critical point of . Indeed, for , the functions are Morse functions satisfying the same properties as . Now, since each is a non-degenerate point of , it follows from the continuity of the critical points (see, e.g. Prop. 4.6.1 in Demazure (2013)) that, restricting if necessary, there exist smooth functions , such that is the unique critical point of in . Moreover, since all the are Morse functions and since the Hessian of at is a continuous function of , then for any , is a non-degenerate critical point of with same index as . ∎
Consider now two smooth functions such that the critical points are close, as illustrated in Figure 8. Next we show that, in this circumstance, the bottleneck distance takes a simple form.
Let and be two Morse functions as in Lemma 16, with finitely many critical points and respectively. Let and be the persistence diagrams from the upper level set filtrations of and respectively and let and . If and , then .
The topology of the upper level sets of the Morse functions and only changes at critical values (Theorem 3.1 in Milnor (1963)). As a consequence the non diagonal points of (resp. ) have their coordinates among the set (resp. ) and each is the coordinate of exactly one point in . Moreover, the pairwise distances between the points of are lower bounded by and all non diagonal points of are at distance at least from the diagonal. From the persistence stability theorem Cohen-Steiner et al. (2005); Chazal et al. (2012), . Since and , the (unique) optimal matching realizing the bottleneck distance is such that if then it is matched to the point which thus have to be in . It follows that . ∎
Now we establish the limiting distribution of .
where and
Let be the set of critical points of . Let and be the gradient and Hessian of . Let and be the gradient and Hessian of . By a standard concentration of measure argument (and recalling that the support is compact), for any there is an event such that, on ,
For smaller than a fixed value , we can apply Lemma 16, we get that on , and have the same number of elements and can be indexed so that
where is the same constant is in Lemma 16. We then take and we consider the events . Then, for large enough, on we get
whereas . In the following, we thus can restrict to .
The critical values of are and the critical values of are . Now we use Lemma 17 to conclude that for large enough. Hence,
Then, using a Taylor expansion, for each ,
Since we can write the last equation as
For the second term, note that and . So
By the multivariate Berry-Esseen theorem (Bentkus, 2003),
By Lemma 17, . The result follows. ∎
Let where is the empirical distribution. Let be the diagram from and let
be the bootstrap approximation to .
Next we show that the bootstrap quantity converges to the same limit as .
Assume the same conditions as the last theorem. Then,
The proof is essentially the same as the proof of Theorem 18 except that replaces and replaces . Using the same notations as in the proof of Theorem 18, we note that on the set , for larger than a fixed value , the function is a Morse function with two uniformly bounded continuous derivatives and finitely many critical points . We can restrict the analysis to sequence of events since tends to zero. Assuming that is satisfied, using the same argument as in Theorem 18, we get that:
where with
and depends on the empirical third moments of . There exists an upper bound on , which only depends on and . Since and , we conclude that
Extensions
In this section, we discuss how to deal with three issues that can arise: choosing the parameters, correcting for boundary bias, and dealing with noisy data.
An unsolved problem in topological inference is how to choose the smoothing parameter (or ). Guibas et al. (2013) suggested tracking the evolution of the persistence of the homological features as the tuning parameter varies. Here we make this method more formal, by selecting the parameter that maximizes the total amount of significant persistence.
These measures are small when is small since is large. On the other hand, they are small when is large since then all the features are smoothed out. Thus we have a kind of topological bias-variance trade-off. We choose to maximize or . The same idea can be applied to the kernel distance and kernel density estimator. See the example in Figure 9.
2 Boundary Bias
It is well known that kernel density estimators suffer from boundary bias. For topological inference, this bias manifests itself in a particular form and the same problem affects the DTM. Consider Figure 10. Because of the bounding box, many of the loops are incomplete. The result is that, using either the DTM or the KDE we will miss many of the loops.
There is a large literature on reducing boundary bias in the kernel density estimation literature. Perhaps the simplest approach is to reflect the data around the boundaries (see for example Schuster (1958)). But there is a simpler fix for topological inference: we merely need to close the loops at the boundary. This can be done by adding points uniformly around the boundary.
3 Two Methods for Improving Performance
We can improve the performance of all the methods if we cam mitigate the outliers and noise. Here we suggest two methods to do this. We focus on the kernel density estimator.
First, a simple method to reduce the number of outliers is to truncate the density, that is, we eliminate for some threshold . Then we re-estimate the density.
Secondly, we sharpen the data as described in Choi and Hall (1999) and Hall and Minnotte (2002). The idea of sharpening is to move each data point slightly in the direction of the gradient and then re-estimate the density. The authors show that this reduces the bias at peaks in the density which should make it easier to find topological features. It can be seen that the sharpening method amounts to running one or more steps if the mean-shift algorithm. This is a gradient ascent which is intended to find modes of the density estimator. Given a point , we move to
which is simply the local average centered at . For data sharpening, we do one (or a few) iterations of this to each data point . Then the density is re-estimated. In fact, we could also use the subspace constrained mean shift algorithm (SCMS) which moves points towards ridges of the density; see Ozertem and Erdogmus (2011). Figure 11 shows these methods applied to a simple example.
Examples
The data in Figure 12 are 10,000 data points on a 2D grid. We add Gaussian noise plus 1,000 outliers and compute the persistence diagrams of Kernel Density Estimator, Kernel distance, and Distance to Measure. The pink bands show 95% confidence sets obtained by bootstrapping the corresponding functions. The black lines show 95% confidence bands obtained with the bottleneck bootstrap for dimension 0, while the red lines show 95% confidence bands obtained with the bottleneck bootstrap for dimension 1. The Distance to Measure, which is less sensitive to the density of the points, correctly captures the topology of the data. The Kernel Distance and KDE find some extra significant connected component, corresponding to high density regions at the intersection of the grid.
Figure 13 shows the field position of two soccer players. The data come from body-sensor traces collected during a professional soccer game in late 2013 at the Alfheim Stadium in Tromso, Norway. The data are sampled at 20 Hz. See Pettersen et al. (2014). Although the data is a function observed over time, we treat it as a point cloud. Points on the boundary of the field have been added to avoid boundary bias. The DTM captures the difference between the two players: the defender leaves one big portion of the filed uncovered (1 significant loop in the persistence diagram), while the midfielder does not cover the 4 corners (4 significant loops). Nonetheless, the Kernel distance, which is more sensible to the density of these points, fails to detect significant topological features.
We will sample points around the the nodes, lines and faces that are formed at the intersection of the Voronoi regions. A Voronoi wall model is a sampling scheme that returns points within or around the Voronoi faces. Similarly, by sampling points exclusively around the lines or exclusively around the nodes, we can construct Voronoi filament models and Voronoi cluster models.
These models were introduced by Icke and van de Weygaert (1991) to mimic key features of cosmological data; see also van de Weygaert et al. (2011).
In this example we generate data from filament models and wall models using the basic definition of Voronoi diagram, computed on a fine grid in . We also add random Gaussian noise. See Figure 14: the first two rows show 100K particles concentrated around the filaments of 8 and 64 Voronoi cells, respectively. The last two rows show 100K particles concentrated around the walls of 8 and 64 Voronoi cells. 60K points on the boundary of the boxes have been added to mitigate boundary bias. For each model we present the persistent diagrams of the distance function, distance to measure and kernel density estimator. We chose the smoothing parameters by maximizing the quantity , defined in Section 7.1.
The diagrams illustrate the evolution of the filtrations for the three different functions: at first, the connected components appear (black points in the diagrams); then they merge forming loops (red triangle), that eventually evolve into 3D voids (blue squares).
The persistence diagrams of the three functions allow us to distinguish the different models (see Figure 1 for a less trivial example) and the confidence bands, generated using the bootstrap method of Section 4.1, allow us to separate the topological signal from the topological noise. In general, the DTM performs better than the KDE, which is more affected by the high density of points around the nodes and filaments. For instance, this is very clear in the third row of Figure 14. The DTM diagram correctly captures the topology of the Voronoi wall model with 8 nuclei: one connected component and 8 voids are significant, while the remaining homological features fall into the band and are classified as noise.
Discussion
In this paper, we showed how the DTM and KDE can be used for robust topological inference. Further, we showed how to use the bootstrap to identify topological features that are distinguishable from noise. We conclude by discussing two issues: comparing DTM and KDE, and using persistent homology versus selecting a single level set.
The DTM and the KDE have the same broad aim: to provide a means for extracting topological features from data. However, these two methods are really focused on different goals. Consider again the model and let be the support of . As before, we assume that is a “small set” meaning that either it has dimension or that it is full dimensional but has small Lebesgue measure. When and are small, the persistent homology of the upper level sets of the density will be dominated by features corresponding to the homology of . In other words, we are using the persistent homology of to learn about the homology of . In contrast, the DTM is aimed at estimating the persistent homology of . Both are useful, but they have slightly different goals.
This also raises the intriguing idea of extracting more information from both the KDE and DTM by varying more parameters. For example, if we look at the sets for fixed but varying , we get information very similar to that of the DTM. Conversely, for the DTM, we can vary the tuning parameter . There are many possibilities here which we will investigate in future work.
2 Persistent Homology Versus Choosing One Level Set
We have used the persistent homology of the upper level sets to probe the homology of . This is the approach used in Bubenik (2012) and Phillips et al. (2014).
Bobrowski et al (2104) suggest a different approach. They select a particular level set and they form a robust estimate of the homology of this one level set. They have a data-driven method for selecting . (This approach is only one part of the paper. They also consider persistent homology.)
They make two key assumptions. The first is that there exists such that is homotopic to for all . (If two sets are homotopic, then they have the same homology.) This is a very reasonable assumption. In the mixture model this assumption will be satisfied when is a small set and when and are small. In this case, persistent homology will also work well: the dominant features in the persistence diagram will correspond to the homology of .
Bobrowski et al (2104) make an additional assumption. They assume that the dimension of is known and that the rank of the homology group is 0 for all . This assumption is critical for their approach to choosing a single level set. Currently, it is not clear how strong this assumption is. In future work, we plan to compare the robustness of the single-level approach versus persistent homology.
3 Future Work
Lastly, we would like to mention that several issues deserve future attention. In particular, the methods we discussed for choosing the tuning parameters, for mitigating boundary bias and for sharpening the data, all deserve further investigation.
In a companion paper we will show how the ideas presented in this work can be used to develop hypothesis tests for comparing point clouds.
Acknowledgements
The authors are grateful to Jérome Dedecker for pointing out the key decomposition (18) of the DTM. The authors also would like to thank Jessi Cisewski and Jisu Kim for their comments.