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 Lt={x: ΔS(x)≤t}L_{t}=\{x:\ \Delta_{S}(x)\leq t\} provide multiscale topological information about SS. As tt varies from zero to ∞\infty, topological features — connected components, loops, voids — are born and die. Persistent homology quantifies the evolution of these topological features as a function of tt. See Figure 2. Each point on the persistence diagram represents the birth and death time of a topological feature.

Given a sample X1,…,Xn∼PX_{1},\ldots,X_{n}\sim P, the empirical distance function is defined by

If PP is supported on SS, and has a density bounded away from zero and infinity, then Δ^\widehat{\Delta} is a consistent estimator of ΔS\Delta_{S}, i.e., sup⁡x∣Δ^(x)−ΔS(x)∣→P0.\sup_{x}|\widehat{\Delta}(x)-\Delta_{S}(x)|\stackrel{{\scriptstyle P}}{{\to}}0. However, if there are outliers, or noise, then Δ^(x)\widehat{\Delta}(x) 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 pp of PP. As long as PP is concentrated near SS, we expect the level sets of pp to provide useful topological information about SS. Specifically, some level sets of pp are homotopic to SS under weak conditions, and this implies that we can estimate the homology of SS. Note that, in this case, we are using the persistent homology of the super-level sets of pp, to estimate the homology of SS. 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 pp, 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), δ≡δP,m\delta\equiv\delta_{P,m}, from Chazal et al. (2011); see Section 2. An estimate δ^\widehat{\delta} of δ\delta is obtained by replacing the true probability measure with the empirical probability measure PnP_{n}, 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 SS. (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 SS. But the former is using persistent homology to estimate the homology of SS, while the DTM is directly trying to estimate the persistent homology of SS. 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 n(δ^2(x)−δ2(x))\sqrt{n}(\widehat{\delta}^{2}(x)-\delta^{2}(x)) converges to a Gaussian process. (Theorem 5).

We show that the bootstrap provides asymptotically valid confidence bands for δ\delta. 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 mm for DTM and the bandwidth hh 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. B(x,ϵ)B(x,\epsilon) is a Euclidean ball of radius ϵ\epsilon, centered at xx. We define A⊕ϵ=⋃x∈AB(x,ϵ)A\oplus\epsilon=\bigcup_{x\in A}B(x,\epsilon), the union of ϵ\epsilon-balls centered at points in AA. If xx is a vector then ∣∣x∣∣∞=max⁡j∣xj∣||x||_{\infty}=\max_{j}|x_{j}|. Similarly, if ff is a real-valued fiction then ∣∣f∣∣∞=sup⁡x∣f(x)∣||f||_{\infty}=\sup_{x}|f(x)|. We write Xn⇝XX_{n}\rightsquigarrow X to mean that XnX_{n} converges in distribution to XX, and we use symbols like c,C,…,c,C,\ldots, 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 mm and the kernel density estimator which uses a smoothing bandwidth hh. Unlike in traditional function estimation, we do not send these parameters to zero as nn 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 Lt={x: ΔS(x)≤t}L_{t}=\{x:\ \Delta_{S}(x)\leq t\}. We will refer to the parameter tt as “time.”

Given the nested family of the sublevel sets of ΔS\Delta_{S}, the topology of LtL_{t} changes as tt 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 tbirtht_{\textrm{birth}} to tdeatht_{\textrm{death}}) to them. For instance, a connected component is a feature that is born at the smallest tt such that the component is present in LtL_{t}, 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 tbirtht_{\textrm{birth}} and tdeatht_{\textrm{death}}; the set of these segments is called the barcode of ΔS\Delta_{S}. An interval can also be represented as a point in the plane with coordinates (u,v)=(tbirth,tdeath)(u,v)=(t_{\textrm{birth}},t_{\textrm{death}}). The set of points (with multiplicity) representing the intervals is called the persistence diagram of ΔS\Delta_{S}. Note that the diagram is entirely contained in the half-plane above the diagonal defined by u=vu=v, since death always occurs after birth. This diagram is well-defined for any compact set SS (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 S1S_{1} and S2S_{2} be compact sets with distance functions Δ1\Delta_{1} and Δ2\Delta_{2} and diagrams D1D_{1} and D2D_{2}. The bottleneck distance between D1D_{1} and D2D_{2} is defined by

where the minimum is over all bijections between D1D_{1} and D2D_{2}. 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, HH is the Hausdorff distance, namely,

Given a sample X1,…,Xn∼PX_{1},\ldots,X_{n}\sim P, the empirical distance function is defined by

Suppose that PP is supported on SS, and has a density bounded away from zero and infinity. Then

See also Cuevas and Rodríguez-Casal (2004). The previous lemma justifies using Δ^\widehat{\Delta} to estimate the persistent homology of sublevel sets of ΔS\Delta_{S}. In fact, the sublevel sets of Δ^\widehat{\Delta} are just unions of balls around the observed data. That is,

The persistent homology of the union of the balls as tt 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 π∈\pi\in, RR is an outlier distribution (such as a uniform on a large set), QQ is supported on SS, ⋆\star denotes convolution, and Φσ\Phi_{\sigma} is a compactly supported noise distribution with scale parameter σ\sigma.

Recovering the persistent homology of ΔS\Delta_{S} exactly (or even the homology of SS) 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 SS. The empirical distance function fails miserably even when π\pi and σ\sigma are small. Instead, we now turn to the DTM.

2 Distance to a Measure

Given a probability measure PP, for 0<m<10<m<1, the distance-to-measure (DTM) at resolution mm (Chazal et al., 2011) is defined by

where Gx(t)=P(∥X−x∥≤t)G_{x}(t)=P(\|X-x\|\leq t). Alternatively, the DTM can be defined using the cdf of the squared distances, as in the following lemma:

Let Fx(t)=P(∥X−x∥2≤t)F_{x}(t)=P(\|X-x\|^{2}\leq t). Then

Given a sample X1,…,Xn∼PX_{1},\ldots,X_{n}\sim P, let PnP_{n} be the probability measure that puts mass 1/n1/n on each XiX_{i}. It is easy to see that the distance to the measure PnP_{n} at resolution mm is

where k=⌈mn⌉k=\lceil mn\rceil and Nk(x)N_{k}(x) is the set containing the kk nearest neighbors of xx among X1,…,XnX_{1},\ldots,X_{n}. We will use δ^\widehat{\delta} to estimate δ\delta.

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 pp between two probability measures PP and QQ is given by

where the infimum is over all joint distributions JJ for (X,Y)(X,Y) such that X∼PX\sim P and Y∼QY\sim Q. We say that PP satisfies the (a,b)(a,b)-condition if there exist a,b>0a,b>0 such that, for every xx in the support of PP and every ϵ>0\epsilon>0,

The next theorem summarizes results from Chazal et al. (2011) and Buchet et al. (2013).

If PP satisfies (11) and is supported on a compact set SS, then

In particular, sup⁡x∣δP,m(x)−ΔS(x)∣→0\sup_{x}|\delta_{P,m}(x)-\Delta_{S}(x)|\to 0 as m→0m\to 0.

If PP and QQ are two distributions, then

If QQ satisfies (11) and is supported on a compact set SS and PP is another distribution (not necessarily supported on SS), then

Hence, if m≍W2(P,Q)2b/(2+b)m\asymp W_{2}(P,Q)^{2b/(2+b)}, then sup⁡x∣δQ,m(x)−ΔS(x)∣=O(W2(P,Q)2/(2+b))\sup_{x}|\delta_{Q,m}(x)-\Delta_{S}(x)|=O(W_{2}(P,Q)^{2/(2+b)}).

Let DPD_{P} be the diagram from δP,m\delta_{P,m} and let DQD_{Q} be the diagram from δQ,m\delta_{Q,m}. The bottleneck distance is bounded by

We conclude this section by bounding the distance between the diagrams DδP,mD_{\delta_{P,m}} and DΔSD_{\Delta_{S}}.

We first apply the stability theorem and part 3 in the previous result:

The term W2(P,Q)W_{2}(P,Q) can be upper bounded as follows:

These two terms can be bounded with simple transport plans. Let ZZ be a Bernoulli random variable with parameter π\pi. Let XX and YY be random variables with distributions RR and Q⋆ΦσQ\star\Phi_{\sigma}. We take these three random variables independent. Then, the random variable VV defined by V=ZX+(1−Z)YV=ZX+(1-Z)Y has for distribution the mixture distribution PP. By definition of W2W_{2}, one has

It can be checked in a similar way that W2(Q⋆Φσ,Q)≤σW_{2}\left(Q\star\Phi_{\sigma},Q\right)\leq\sigma (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 δ^\widehat{\delta} and we use this to find confidence bands for δ(x)\delta(x). We start with the pointwise limit.

Let δ(x)≡δP,m(x)\delta(x)\equiv\delta_{P,m}(x) and δ^(x)≡δPn,m(x)\widehat{\delta}(x)\equiv\delta_{P_{n},m}(x), as defined in the previous section.

First suppose that F^x−1(m)>Fx−1(m)\widehat{F}_{x}^{-1}(m)>F_{x}^{-1}(m).

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 F^x−1(m)<Fx−1(m)\widehat{F}_{x}^{-1}(m)<F_{x}^{-1}(m) if we take ∫abf(u)du:=−∫baf(u)du\int_{a}^{b}f(u)du:=-\int_{b}^{a}f(u)du when a>ba>b. Now, since FxF_{x} is differentiable at mm, 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 sup⁡t∣Fx(t)−F^x(t)∣=OP(1/n)\sup_{t}\left|F_{x}(t)-\widehat{F}_{x}(t)\right|=O_{P}(\sqrt{1/n}) and thus

with lim⁡u→0ωX(u)=ωX(0)=0\lim_{u\rightarrow 0}\omega_{\mathcal{X}}(u)=\omega_{\mathcal{X}}(0)=0. When such modulus of continuity ω\omega exists, note that it always can be chosen non decreasing and this allows us to consider its generalized inverse ω−1\omega^{-1}.

One may ask if the existence of the uniform modulus of continuity over a compact domain X\cal X is a strong assumption or not. To answer this issue, let us introduce the following assumption:

Note that Assumption (Hω,X)\left(H_{\omega,\mathcal{X}}\right) is not very strong. For instance it is satisfied for a measure PP supported on a compact and connected manifold, with PxP_{x} absolutely continuous for the Hausdorff measure on PP. 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 (Hω,X)\left(H_{\omega,\mathcal{X}}\right).

Let x∈Xx\in\mathcal{X}. According to Proposition A.17 in Bobkov and Ledoux (2014), Assumption (Hω,X)\left(H_{\omega,\mathcal{X}}\right) is equivalent to the absolute continuity of Fx−1F_{x}^{-1} in [0,1)[0,1). We can then define a modulus of continuity of Fx−1F_{x}^{-1} by

According to Lemma 8, we have that for any (x,x′)∈X2(x,x^{\prime})\in\mathcal{X}^{2}:

where CC only depends on PP and X\cal X. According to (19), for any (m,m′)∈(0,1)2(m,m^{\prime})\in(0,1)^{2}, and for any (x,x′)∈X2(x,x^{\prime})\in\mathcal{X}^{2}:

By taking the supremum over the mm and the m′m^{\prime} such that ∣m′−m∣<u|m^{\prime}-m|<u, it yields:

and x↦ωx(u)x\mapsto\omega_{x}(u) is thus Lipschitz at any uu. For any u∈(0,1)u\in(0,1), let

which gives that ωX(uϕ(n))\omega_{\cal X}(u_{\phi(n)}) and ωX(un)\omega_{\cal X}(u_{n}) both tend to zero because ωxˉ\omega_{\bar{x}} is continuous at zero. Thus ωX\omega_{\cal X} is continuous at zero and the Lemma is proved. ∎

Therefore Fx+a−1(m)≤Fx−1(m)+∥a∥\sqrt{F_{x+a}^{-1}(m)}\leq\sqrt{F_{x}^{-1}(m)}+\|a\|. Similarly,

which implies Fx−1(m)≤Fx+a−1(m)+∥a∥\sqrt{F_{x}^{-1}(m)}\leq\sqrt{F_{x+a}^{-1}(m)}+\|a\|.

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 m∈(0,1)m\in(0,1). A local version of this result could be also proposed by considering the (local) modulii of continuity of the quantile functions at mm. For the sake of clarity, we prefer to give a global version.

In the proof of Theorem 5 we showed that n(δ^2(x)−δ2(x))=An(x)+Rn(x)\sqrt{n}(\widehat{\delta}^{2}(x)-\delta^{2}(x))=A_{n}(x)+R_{n}(x) where

First, we show that sup⁡x∈X∣Rn(x)∣=oP(1)\sup_{x\in\mathcal{X}}|R_{n}(x)|=o_{P}(1). Then we prove that An(x)A_{n}(x) converges to a Gaussian process.

Note that ∣Rn(x)∣≤nm∣Sn(x)∣∣Tn(x)∣|R_{n}(x)|\leq\frac{\sqrt{n}}{m}|S_{n}(x)||T_{n}(x)| where

Let ξi∼\xi_{i}\simUniform (0,1), for i=1,…,ni=1,\dots,n and let HnH_{n} be their empirical distribution function. Define k=mnk=mn. Then F^x−1(m)=dFx−1(ξ(k))=Fx−1(Hn−1(m))\widehat{F}_{x}^{-1}(m)\stackrel{{\scriptstyle d}}{{=}}F_{x}^{-1}(\xi_{(k)})=F_{x}^{-1}\left(H_{n}^{-1}(m)\right), where ξ(k)\xi_{(k)} is the kkth order statistic. Thus, for any m>0m>0 and any x∈Xx\in\mathcal{X}:

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 ωX−1(ϵ)>0\omega_{\mathcal{X}}^{-1}(\epsilon)>0 for any ε>0\varepsilon>0 because ωX\omega_{\mathcal{X}} is assumed to be continuous at zero by definition.

Fix ε>0\varepsilon>0. There exists an absolute constant CXC_{\mathcal{X}} such that there exists an integer N≤CXε−dN\leq C_{\mathcal{X}}\varepsilon^{-d} and NN points (x1,…,xN)(x_{1},\dots,x_{N}) laying in X\mathcal{X} such that ⋃j=1…NBj⊇X\bigcup_{j=1\dots N}B_{j}\supseteq\mathcal{X}, where Bj=B(xj,ε)B_{j}=B(x_{j},\varepsilon). Now, we apply Lemma 8 with PP, and with PnP_{n} and we find that for any x∈Bjx\in B_{j}:

where CC is a positive constant which only depends on X\cal X and PP. Using a union bound together with (20) , we find that

Thus, sup⁡x∈X∣Sn(x)∣=oP(1)\sup_{x\in\mathcal{X}}|S_{n}(x)|=o_{P}(1). Then

Since sup⁡x∈X∣Rn(x)∣=oP(1)\sup_{x\in\mathcal{X}}|R_{n}(x)|=o_{P}(1), it only remains to prove that the process AnA_{n} converges to a Gaussian process.

Now, we consider the process AnA_{n} on X\mathcal{X}. Let us denote νn:=n(Pn−P)\nu_{n}:=\sqrt{n}(P_{n}-P) the empirical process. Note that

Hadamard Differentiability and The Bootstrap

In this section, we use the bootstrap to get a confidence band for δ\delta. Define cαc_{\alpha} by

Let X1∗,…,Xn∗X_{1}^{*},\ldots,X_{n}^{*} be a sample from the empirical measure PnP_{n} and let δ^∗\widehat{\delta}^{*} be the corresponding empirical DTM. The bootstrap estimate c^α\widehat{c}_{\alpha} is defined by

As usual, c^α\widehat{c}_{\alpha} 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 X1,X2,…X_{1},X_{2},\ldots, 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 PP. 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 Fx−1F_{x}^{-1} whereas in Theorem 11 an uniform lower bound on the derivatives is required. These two assumptions are consistent: they both say that Fx−1F^{-1}_{x} is well behaved in a neighborhood of mm for all xx. 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 ϕ\phi from a normed space (D,∥⋅∥D)(\mathcal{D},\|\cdot\|_{\mathcal{D}}) to a normed space (E,∥⋅∥E)(\mathcal{E},\|\cdot\|_{\mathcal{E}}) is Hadamard differentiable at the point x∈Dx\in\mathcal{D} if there exists a continuous linear map ϕx′:D→E\phi_{x}^{\prime}:\mathcal{D}\to\mathcal{E} such that

whenever ∥ht−h∥D→0\|h_{t}-h\|_{\mathcal{D}}\to 0 as t→0t\to 0.

We also recall the functional delta method (see, e.g. van der Vaart and Wellner, 1996, Theorem 3.9.4): suppose that TnT_{n} takes values in D\mathcal{D}, rn→∞r_{n}\to\infty, rn(Tn−θ)⇝Tr_{n}(T_{n}-\theta)\rightsquigarrow T, and suppose that ϕ\phi is Hadamard differentiable at θ\theta. Then rn(ϕ(Tn)−ϕ(θ))⇝ϕθ′(T)r_{n}(\phi(T_{n})-\phi(\theta))\rightsquigarrow\phi_{\theta}^{\prime}(T). Moreover, by Theorem 3.9.11 of van der Vaart and Wellner (1996) the bootstrap has the same limit. More precisely, given X1,X2,…X_{1},X_{2},\ldots, we have that rn(ϕ(Tn∗)−ϕ(Tn))r_{n}(\phi(T_{n}^{*})-\phi(T_{n})) converges conditionally in distribution to ϕθ′(T)\phi_{\theta}^{\prime}(T), in probability. This implies the validity of the bootstrap confidence sets.

The pair (M,∥⋅∥B)(\mathcal{M},\|\cdot\|_{\mathcal{B}}) is a normed space.

where the infimum over the empty set is define to be ∞\infty. If PP is a probability measure and m∈(0,1)m\in(0,1) then FP,x−1(m)F^{-1}_{P,x}(m) is just the mm-th quantile of the random variable ∥X−x∥2\|X-x\|^{2}, X∼PX\sim P.

Fix a m∈(0,1)m\in(0,1) and let Mm=Mm(X)\mathcal{M}_{m}=\mathcal{M}_{m}(\mathcal{X}) denote the subset of M\mathcal{M} consisting of all finite signed measure μ\mu such that, there exists a value of r>0r>0 for which inf⁡x∈Xμ(B(x,r))≥m\inf_{x\in\mathcal{X}}\mu\left(B(x,\sqrt{r})\right)\geq m. Thus, for any μ∈Mm\mu\in\mathcal{M}_{m} and x∈Xx\in\mathcal{X}, Fμ,x−1(m)<∞F^{-1}_{\mu,x}(m)<\infty. Let Dm\mathcal{D}_{m} be the image of Mm\mathcal{M}_{m} by the mapping (26).

Let E\mathcal{E} the set of bounded, real-valued function on X\mathcal{X}, a normed space with respect to the sup norm. Finally, we define ϕ ⁣:Dm→E\phi\colon\mathcal{D}_{m}\rightarrow\mathcal{E} to be the mapping

Notice that if PP is a probability measure, simple algebra shows that ϕ(P)(x)\phi(P)(x) is the square value of the distance to measure of PP at the point xx, i.e. δp2(x)\delta^{2}_{p}(x); see Figure 5.

Below we will show that, for any probability measure PP, the mapping (27) is Hadamard differentiable at PP.

For an arbitrary Q∈QQ\in\mathcal{Q}, let {Qt}t>0⊂D\{Q_{t}\}_{t>0}\subset\mathcal{D} be a sequence of signed measure such that lim⁡t→0∥Qt−Q∥B=0\lim_{t\rightarrow 0}\|Q_{t}-Q\|_{\mathcal{B}}=0 and such that P+tQt∈DmP+tQ_{t}\in\mathcal{D}_{m} for all tt. Sequences of this form exist: since ∥tQt∥B→0\|tQ_{t}\|_{\mathcal{B}}\rightarrow 0 as t→0t\rightarrow 0, for any arbitrary 0<ϵ<1−m0<\epsilon<1-m and all tt small enough,

By the boundedness of X\mathcal{X} and compactness of SS, this implies that there exists a number r>0r>0 such that

so the image of P+tQtP+tQ_{t} by (27) is an element of E\mathcal{E} (i.e. it is a bounded function).

To demonstrate Hadamard differentiability (see 25), we will prove that, as t→0t\to 0, the expression in (28), as a bounded function of x∈Xx\in\mathcal{X}, will converge in E\mathcal{E} to the bounded function

Towards that end, we have, for all tt and any x∈Xx\in\mathcal{X},

where, for a<ba<b, we write ∫ba=−∫ab\int_{b}^{a}=-\int_{a}^{b}.

To handle the three terms appearing in the last display, we first state and prove two useful results.

We first prove (31). Let Ax,t={y ⁣:∥y−x∥2≤Fx,t−1(m)}\mathcal{A}_{x,t}=\{y\colon\|y-x\|^{2}\leq F^{-1}_{x,t}(m)\}. Then,

Since sup⁡x∈XtQt(Ax,t)→0\sup_{x\in\mathcal{X}}tQ_{t}(\mathcal{A}_{x,t})\rightarrow 0 as t→0t\rightarrow 0 we obtain (30). The claim (31) follows from (30) using the facts that FxF_{x} is monotone for each x∈Xx\in\mathcal{X} and that inf⁡x∈XFx′(Fx−1(m))>0\inf_{x\in\mathcal{X}}F_{x}^{\prime}(F^{-1}_{x}(m))>0.

To show (29), the relation (32) combined with the fact that m=Fx(Fx−1(m))m=F_{x}\left(F^{-1}_{x}(m)\right) for all xx yields that

for all x∈Xx\in\mathcal{X}. By (31) and (24),

uniformly in x∈Xx\in\mathcal{X} and for all tt small enough. The relation (29) follows from the fact that ∣Qt(S)∣=∣Q(S)∣+o(1)<∞|Q_{t}(S)|=|Q(S)|+o(1)<\infty. ∎

We now analyze the terms A1(x,t)A_{1}(x,t), A2(x,t)A_{2}(x,t) and A3(x,t)A_{3}(x,t) separately.

Term A1(x,t)A_{1}(x,t). As t→0t\rightarrow 0, Qt→QQ_{t}\rightarrow Q and, uniformly in x∈Xx\in\mathcal{X} and z>0z>0, ∣Qt(Ax,z)∣≤∣Qt(S)∣=∣Q(S)∣+o(1)<∞|Q_{t}(\mathcal{A}_{x,z})|\leq|Q_{t}(S)|=|Q(S)|+o(1)<\infty. Furthermore, sup⁡x∈XFx−1(m)<∞\sup_{x\in\mathcal{X}}F^{-1}_{x}(m)<\infty by compactness of X\mathcal{X} and SS. Therefore, using the dominated convergence theorem,

Term A2(x,t)A_{2}(x,t). Since P(Ax,u)P(\mathcal{A}_{x,u}) is non-decreasing in uu for all xx, we have

Term A3(x,t)A_{3}(x,t). Finally, since ∣Qt(S)∣≤∣Q(S)∣+o(1)|Q_{t}(S)|\leq|Q(S)|+o(1) as t→0t\rightarrow 0 and using (31), we obtain

Therefore, from (28), (33), (34), and (35),

is the Hadamard derivative of δ2\delta^{2} at PP.

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 (u,v)(u,v), we will say that the feature is significant if ∣v−u∣>2cα/n|v-u|>2c_{\alpha}/\sqrt{n} where cαc_{\alpha} is defined by

In particular, cαc_{\alpha} can be estimated from the bootstrap as we showed in the previous section. Specifically, define c^α\widehat{c}_{\alpha} by

Then c^α\widehat{c}_{\alpha} is a consistent estimate of cαc_{\alpha}.

To see why this makes sense, let D{\cal D} be the set of persistence diagrams. Let D≡DδD\equiv D_{\delta} be the true diagram and let D^≡Dδ^\widehat{D}\equiv D_{\widehat{\delta}} be the estimated diagram. Let

as n→∞n\to\infty. Now ∣v−u∣>2c^α/n|v-u|>2\widehat{c}_{\alpha}/\sqrt{n} if and only if the feature cannot be matched to the diagonal for any diagram in C{\cal C}. (Recall that the diagonal corresponds to features with zero lifetime.)

We can visualize the significant features by putting a band of size 2cα/n2c_{\alpha}/\sqrt{n} around the diagonal of D^\widehat{D}. 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 K(x,y)K(x,y), the kernel distance between two probability measures PP and QQ is

It can be shown that DK(P,Q)=∥μP−μQ∥D_{K}(P,Q)=\|\mu_{P}-\mu_{Q}\| for vectors μP\mu_{P} and μQ\mu_{Q} 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 X1,…,Xn∼PX_{1},\ldots,X_{n}\sim P, let PnP_{n} be the probability measure that put mass 1/n1/n on each XiX_{i}. Let ϑx\vartheta_{x} be the Dirac measure that puts mass one on xx. 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 K(x,y)≡Kh(x,y)=exp⁡(−∥x−y∥22h2)K(x,y)\equiv K_{h}(x,y)=\exp\left(-\frac{\|x-y\|^{2}}{2h^{2}}\right), which has one tuning parameter hh. We recall that, in topological inference, we generally do not let hh 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 n−1∑i=1np(Xi)=1+oP(1)n^{-1}\sum_{i=1}^{n}p(X_{i})=1+o_{P}(1) and ∣∣p^h−p∣∣∞=OP(log⁡n/n)||\widehat{p}_{h}-p||_{\infty}=O_{P}(\sqrt{\log n/n}).

We see that up to small order terms, the sublevel sets of DK(x)D_{K}(x) 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, DK2D^{2}_{K} has some nice properties; see Phillips et al. (2014).

The limiting properties of D^K2(x)\widehat{D}_{K}^{2}(x) follow immediately from well-known properties of kernel density estimators. In fact, the conditions needed for D^K2\widehat{D}_{K}^{2} are weaker than for the DTM.

The Bottleneck Bootstrap

More precise inferences can be obtained by directly bootstrapping the persistence diagram. Define t^α\widehat{t}_{\alpha} by

The quantile t^α\widehat{t}_{\alpha} can be estimated by Monte Carlo. We then use a band of size 2t^α2\widehat{t}_{\alpha} on the diagram DD.

In the following, we show that t^α\widehat{t}_{\alpha} consistently estimates the population value tαt_{\alpha} 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 W∞(D^,D)≤∣∣δ^−δ∣∣∞W_{\infty}(\widehat{D},D)\leq||\widehat{\delta}-\delta||_{\infty} and finds an upper bound for ∣∣δ^−δ∣∣∞||\widehat{\delta}-\delta||_{\infty}. 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 pp, let g=∇pg=\nabla p denote its gradient and let H=∇2pH=\nabla^{2}p denotes its Hessian. We say that xx is a critical point if g(x)=(0,…,0)Tg(x)=(0,\ldots,0)^{T}. We then call p(x)p(x) a critical value. A function is Morse if the Hessian is non-degenerate at each critical point. The More index of a critical point xx is the number of negative eigenvalues of H(x)H(x).

qq is a Morse function with exactly kk critical points c1′,…,ck′c_{1}^{\prime},\ldots,c_{k}^{\prime} say, and, after a suitable re-labeling of indices,

Moreover, cjc_{j} and cj′c_{j}^{\prime} have the same Morse index.

Now let ϵ>0\epsilon>0 be small enough such that 2ϵ<min⁡i≠j∥ci−cj∥2\epsilon<\min_{i\not=j}\|c_{i}-c_{j}\|, and for any i≠ji\not=j, p(B(ci,ϵ))∩p(B(cj,ϵ))=∅p(B(c_{i},\epsilon))\cap p(B(c_{j},\epsilon))=\emptyset. Then η1=η1(ϵ)=min⁡i≠jd(p(B(ci,ϵ)),p(B(cj,ϵ)))\eta_{1}=\eta_{1}(\epsilon)=\min_{i\not=j}d(p(B(c_{i},\epsilon)),p(B(c_{j},\epsilon))) where d(A,B)=min⁡a∈A,b∈B∣a−b∣d(A,B)=\min_{a\in A,b\in B}|a-b| and η2=η2(ϵ)=inf⁡{∥∇p(x)∥:x∈S∖∪i=1kB(ci,ϵ)}\eta_{2}=\eta_{2}(\epsilon)=\inf\{\|\nabla p(x)\|:x\in S\setminus\cup_{i=1}^{k}B(c_{i},\epsilon)\} are both positive. If qq satisfies the assumptions of the lemma for any 0<η≤min⁡(η1,η2)0<\eta\leq\min(\eta_{1},\eta_{2}), then the critical values of qq have to be in ∪ip(B(ci,ϵ))\cup_{i}p(B(c_{i},\epsilon)) and the critical points ci′c_{i}^{\prime} have to be in ∪iB(ci,ϵ)\cup_{i}B(c_{i},\epsilon).

More precisely, notice that since pp is a Morse function, for ϵ\epsilon small enough, η2=O(ϵ)\eta_{2}=O(\epsilon), and, for any i∈{1,⋯ ,k}i\in\{1,\cdots,k\}, the Taylor series of ∇p\nabla p about cjc_{j} yields

where r(z)→0r(z)\rightarrow 0 as ∥z∥→0\|z\|\rightarrow 0 and HiH_{i} is the Hessian of pp at cic_{i}. Let λmin⁡\lambda_{\min} be the smallest absolute eigenvalue of the Hessians at all the critical points. Since pp is a Morse function, the matrix HiH_{i} is full rank and λmin⁡\lambda_{\min} is positive. As a consequence, for all x∈S∖∪i=1kB(ci,ϵ)x\in S\setminus\cup_{i=1}^{k}B(c_{i},\epsilon) and ϵ\epsilon small enough, ∥∇p(x)∥≥λmin⁡2ϵ\|\nabla p(x)\|\geq\frac{\lambda_{\min}}{2}\epsilon. Since η1\eta_{1} is a non-incresing function of ϵ\epsilon, we have that, for ϵ\epsilon small enough, η=η2≥λmin⁡2ϵ\eta=\eta_{2}\geq\frac{\lambda_{\min}}{2}\epsilon.

To conclude the proof of the lemma, we need to prove that each ball B(ci,ϵ)B(c_{i},\epsilon) contains exactly one critical point of qq. Indeed, for t∈t\in, the functions qt(x)=p(x)+t(q(x)−p(x))q_{t}(x)=p(x)+t(q(x)-p(x)) are Morse functions satisfying the same properties as qq. Now, since each cic_{i} is a non-degenerate point of pp, it follows from the continuity of the critical points (see, e.g. Prop. 4.6.1 in Demazure (2013)) that, restricting ϵ\epsilon if necessary, there exist smooth functions ci:→Sc_{i}:\to S, ci(0)=ci,ci(1)=ci′c_{i}(0)=c_{i},c_{i}(1)=c_{i}^{\prime} such that ci(t)c_{i}(t) is the unique critical point of qtq_{t} in B(ci,ϵ)B(c_{i},\epsilon). Moreover, since all the qtq_{t} are Morse functions and since the Hessian of qtq_{t} at ci(t)c_{i}(t) is a continuous function of tt, then for any t∈t\in, ci(t)c_{i}(t) is a non-degenerate critical point of qtq_{t} with same index as cic_{i}. ∎

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 pp and qq be two Morse functions as in Lemma 16, with finitely many critical points C={c1,…,ck}C=\{c_{1},\ldots,c_{k}\} and C′={c1′,…,ck′}C^{\prime}=\{c_{1}^{\prime},\ldots,c_{k}^{\prime}\} respectively. Let DpD_{p} and DqD_{q} be the persistence diagrams from the upper level set filtrations of pp and qq respectively and let a=min⁡i≠j∣p(ci)−p(cj)∣a=\min_{i\neq j}|p(c_{i})-p(c_{j})| and b=max⁡j∣p(cj)−q(cj′)∣b=\max_{j}|p(c_{j})-q(c_{j}^{\prime})|. If b≤a/2−∣∣p−q∣∣∞b\leq a/2-||p-q||_{\infty} and a/2>2∣∣p−q∣∣∞a/2>2||p-q||_{\infty}, then W∞(Dp,Dq)=bW_{\infty}(D_{p},D_{q})=b.

The topology of the upper level sets of the Morse functions pp and qq only changes at critical values (Theorem 3.1 in Milnor (1963)). As a consequence the non diagonal points of DpD_{p} (resp. DqD_{q}) have their coordinates among the set {p(c1),…,p(ck)}\{p(c_{1}),\ldots,p(c_{k})\} (resp. {q(c1′),…,p(ck′)}\{q(c_{1}^{\prime}),\ldots,p(c_{k}^{\prime})\}) and each p(ci)p(c_{i}) is the coordinate of exactly one point in DpD_{p}. Moreover, the pairwise distances between the points of DpD_{p} are lower bounded by aa and all non diagonal points of DpD_{p} are at distance at least aa from the diagonal. From the persistence stability theorem Cohen-Steiner et al. (2005); Chazal et al. (2012), W∞(Dp,Dq)≤∣∣p−q∣∣∞W_{\infty}(D_{p},D_{q})\leq||p-q||_{\infty}. Since a>4∣∣p−q∣∣∞a>4||p-q||_{\infty} and a≥2b+2∣∣p−q∣∣∞a\geq 2b+2||p-q||_{\infty}, the (unique) optimal matching realizing the bottleneck distance W∞(Dp,Dq)W_{\infty}(D_{p},D_{q}) is such that if (p(ci),p(cj))∈Dp(p(c_{i}),p(c_{j}))\in D_{p} then it is matched to the point (q(ci′),q(cj′))(q(c_{i}^{\prime}),q(c_{j}^{\prime})) which thus have to be in DqD_{q}. It follows that W∞(Dp,Dq)=bW_{\infty}(D_{p},D_{q})=b. ∎

Now we establish the limiting distribution of nW∞(D^,D)\sqrt{n}W_{\infty}(\widehat{D},D).

where Z=(Z1,…,Zk)∼N(0,Σ)Z=(Z_{1},\ldots,Z_{k})\sim N(0,\Sigma) and

Let c^={c^1,c^2,… }\widehat{c}=\{\widehat{c}_{1},\widehat{c}_{2},\dots\} be the set of critical points of p^h\widehat{p}_{h}. Let gg and HH be the gradient and Hessian of php_{h}. Let g^\widehat{g} and H^\widehat{H} be the gradient and Hessian of p^h\widehat{p}_{h}. By a standard concentration of measure argument (and recalling that the support is compact), for any η>0\eta>0 there is an event An,ηA_{n,\eta} such that, on An,ηA_{n,\eta},

For η\eta smaller than a fixed value η0\eta_{0}, we can apply Lemma 16, we get that on An,ηA_{n,\eta}, c^\widehat{c} and cc have the same number of elements and can be indexed so that

where CC is the same constant is in Lemma 16. We then take ηn:=log⁡nn\eta_{n}:=\sqrt{\frac{\log n}{n}} and we consider the events An:=An,ηnA_{n}:=A_{n,\eta_{n}}. Then, for nn large enough, on AnA_{n} we get

whereas P(Anc)=o(1)P\left(A_{n}^{c}\right)=o(1). In the following, we thus can restrict to AnA_{n}.

The critical values of php_{h} are v=(v1≡ph(c1),…,vk≡ph(ck))v=(v_{1}\equiv p_{h}(c_{1}),\ldots,v_{k}\equiv p_{h}(c_{k})) and the critical values of p^h\widehat{p}_{h} are v^=(v^1≡p^h(c^1),…,v^k≡p^h(c^k))\widehat{v}=(\widehat{v}_{1}\equiv\widehat{p}_{h}(\widehat{c}_{1}),\ldots,\widehat{v}_{k}\equiv\widehat{p}_{h}(\widehat{c}_{k})). Now we use Lemma 17 to conclude that W∞(D^,D)=max⁡j∥v^j−vj∥∞W_{\infty}(\widehat{D},D)=\max_{j}\|\widehat{v}_{j}-v_{j}\|_{\infty} for nn large enough. Hence,

Then, using a Taylor expansion, for each jj,

Since g(cj)=(0,…,0)g(c_{j})=(0,\ldots,0) we can write the last equation as

For the second term, note that n(c^j−cj)=O(log⁡n)\sqrt{n}(\widehat{c}_{j}-c_{j})=O(\log n) and (g^(cj)−g(cj))=OP(1/n)(\widehat{g}(c_{j})-g(c_{j}))=O_{P}(1/\sqrt{n}). So

By the multivariate Berry-Esseen theorem (Bentkus, 2003),

By Lemma 17, W∞(D^,D)=max⁡j∣v^j−vj∣W_{\infty}(\widehat{D},D)=\max_{j}|\widehat{v}_{j}-v_{j}|. The result follows. ∎

Let X1∗,…,Xn∗∼PnX_{1}^{*},\ldots,X_{n}^{*}\sim P_{n} where PnP_{n} is the empirical distribution. Let D^∗\widehat{D}^{*} be the diagram from p^h∗\widehat{p}_{h}^{*} and let

be the bootstrap approximation to FnF_{n}.

Next we show that the bootstrap quantity Fn(t)F_{n}(t) converges to the same limit as Fn(t)F_{n}(t).

Assume the same conditions as the last theorem. Then,

The proof is essentially the same as the proof of Theorem 18 except that p^h\widehat{p}_{h} replaces php_{h} and p^h∗\widehat{p}_{h}^{*} replaces p^h\widehat{p}_{h}. Using the same notations as in the proof of Theorem 18, we note that on the set AnA_{n}, for nn larger than a fixed value n0n_{0}, the function p^h\widehat{p}_{h} is a Morse function with two uniformly bounded continuous derivatives and finitely many critical points c^={c^1,…,c^k}\widehat{c}=\{\widehat{c}_{1},\ldots,\widehat{c}_{k}\}. We can restrict the analysis to sequence of events AnA_{n} since P(An)P(A_{n}) tends to zero. Assuming that AnA_{n} is satisfied, using the same argument as in Theorem 18, we get that:

where Z~∼N(0,Σ^)\widetilde{Z}\sim N(0,\widehat{\Sigma}) with

and C2∗C_{2}^{*} depends on the empirical third moments of h−dK((x−X∗)/h)h^{-d}K((x-X^{*})/h). There exists an upper bound C2C_{2} on C2∗C_{2}^{*}, which only depends on KK and PP. Since max⁡j,k∣Σ^j,k−Σj,k∣=OP(log⁡n/n)\max_{j,k}|\widehat{\Sigma}_{j,k}-\Sigma_{j,k}|=O_{P}(\log n/\sqrt{n}) and max⁡j∥c^j−cj∥=OP(log⁡n/n)\max_{j}\|\widehat{c}_{j}-c_{j}\|=O_{P}(\log n/\sqrt{n}), 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 mm (or hh). 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 mm is small since cα(m)c_{\alpha}(m) is large. On the other hand, they are small when mm is large since then all the features are smoothed out. Thus we have a kind of topological bias-variance trade-off. We choose mm to maximize N(m)N(m) or S(m)S(m). 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 {Xi: p^(Xi)<t}\{X_{i}:\ \widehat{p}(X_{i})<t\} for some threshold tt. 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 XiX_{i} slightly in the direction of the gradient ∇p^(Xi)\nabla\widehat{p}(X_{i}) 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 xx, we move xx to

which is simply the local average centered at xx. For data sharpening, we do one (or a few) iterations of this to each data point XiX_{i}. 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 3^{3}. 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 S(⋅)S(\cdot), 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 P=πR+(1−π)(Q⋆Φσ)P=\pi R+(1-\pi)(Q\star\Phi_{\sigma}) and let SS be the support of QQ. As before, we assume that SS is a “small set” meaning that either it has dimension k<dk<d or that it is full dimensional but has small Lebesgue measure. When π\pi and σ\sigma are small, the persistent homology of the upper level sets of the density pp will be dominated by features corresponding to the homology of SS. In other words, we are using the persistent homology of {p>t}\{p>t\} to learn about the homology of SS. In contrast, the DTM is aimed at estimating the persistent homology of SS. 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 {ph>t}\{p_{h}>t\} for fixed tt but varying hh, we get information very similar to that of the DTM. Conversely, for the DTM, we can vary the tuning parameter mm. 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 {p^h>t}\{\widehat{p}_{h}>t\} to probe the homology of SS. 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 {p>t}\{p>t\} and they form a robust estimate of the homology of this one level set. They have a data-driven method for selecting tt. (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 A<BA<B such that {p>t}\{p>t\} is homotopic to SS for all A<t<BA<t<B. (If two sets are homotopic, then they have the same homology.) This is a very reasonable assumption. In the mixture model P=πR+(1−π)(Q⋆Φσ)P=\pi R+(1-\pi)(Q\star\Phi_{\sigma}) this assumption will be satisfied when SS is a small set and when π\pi and σ\sigma are small. In this case, persistent homology will also work well: the dominant features in the persistence diagram will correspond to the homology of SS.

Bobrowski et al (2104) make an additional assumption. They assume that the dimension kk of SS is known and that the rank of the kthk^{\rm th} homology group is 0 for all t>Bt>B. 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.

References