BootstrapBand

org.appliedtopology.tda4j.BootstrapBand
object BootstrapBand

A resampling confidence band for the bars of one degree, after Fasy, Lecci, Rinaldo, Wasserman, Balakrishnan and Singh, "Confidence sets for persistence diagrams" (Annals of Statistics 42, 2014).

Compute the diagram of the points, then of many resamples of them, and measure how far (in bottleneck distance) each resample's diagram is from the original. The 1 - alpha quantile of those distances is the band's width: a resample moves the diagram by at most width in 1 - alpha of the draws. A bar that persists longer than 2 * width cannot be matched to the diagonal by a perturbation of that size, so it is a feature that survives the resampling; a bar shorter than that could be one of the noise. Band.threshold is 2 * width, and diagram.longerThan(band.threshold) keeps the bars beyond it.

This is a resampling heuristic with a statistical reading, not a proof: the guarantee of the paper is for specific estimators and sampling models. Resampling with replacement (Resampling.Bootstrap) follows the paper's recipe. Resampling.Subsample draws fewer points without replacement and is cheaper; its distances are not rescaled to the full sample, so its band is wider than the bootstrap's (the conservative direction). Essential bars are left out of the comparison, so the band says nothing about them.

Attributes

Experimental
true
Source
BootstrapBand.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

final case class Band(width: Double, distances: IndexedSeq[Double], alpha: Double)

The band of one degree: distances are the bottleneck distances of the resamples to the original, in the order drawn; width is their 1 - alpha quantile.

The band of one degree: distances are the bottleneck distances of the resamples to the original, in the order drawn; width is their 1 - alpha quantile.

Attributes

Source
BootstrapBand.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
enum Resampling

How the points are resampled.

How the points are resampled.

Attributes

Source
BootstrapBand.scala
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def apply(points: PointCloud, dimension: Int = ..., rounds: Int = ..., alpha: Double = ..., resampling: Resampling = ..., seed: Long = ..., complex: PointCloudComplex = ..., maxFiltrationValue: Optional[Double] = ..., characteristic: Int = ...): Band

The band for degree dimension of points, from rounds resamples drawn with seed. The diagrams are those of Persistence(sample, maxDimension = dimension, complex = complex, ...); the points of a bootstrap sample can repeat, which the Vietoris-Rips and Cech complexes allow and an alpha complex does not.

The band for degree dimension of points, from rounds resamples drawn with seed. The diagrams are those of Persistence(sample, maxDimension = dimension, complex = complex, ...); the points of a bootstrap sample can repeat, which the Vietoris-Rips and Cech complexes allow and an alpha complex does not.

Attributes

Source
BootstrapBand.scala