19
CS 6170: Computational Topology, Spring 2019 Lecture 08 Topological Data Analysis for Data Scientists Dr. Bei Wang School of Computing Scientific Computing and Imaging Institute (SCI) University of Utah www.sci.utah.edu/ ~ beiwang [email protected] Jan 31, 2019

CS 6170: Computational Topology, Spring 2019 Lecture 08beiwang/teaching/cs6170-spring-2019/... · 2019-01-31 · CS 6170: Computational Topology, Spring 2019 Lecture 08 Topological

  • Upload
    others

  • View
    7

  • Download
    1

Embed Size (px)

Citation preview

Page 1: CS 6170: Computational Topology, Spring 2019 Lecture 08beiwang/teaching/cs6170-spring-2019/... · 2019-01-31 · CS 6170: Computational Topology, Spring 2019 Lecture 08 Topological

CS 6170: Computational Topology, Spring 2019Lecture 08

Topological Data Analysis for Data Scientists

Dr. Bei Wang

School of ComputingScientific Computing and Imaging Institute (SCI)

University of Utahwww.sci.utah.edu/~beiwang

[email protected]

Jan 31, 2019

Page 2: CS 6170: Computational Topology, Spring 2019 Lecture 08beiwang/teaching/cs6170-spring-2019/... · 2019-01-31 · CS 6170: Computational Topology, Spring 2019 Lecture 08 Topological

A TDA Pipeline

Page 3: CS 6170: Computational Topology, Spring 2019 Lecture 08beiwang/teaching/cs6170-spring-2019/... · 2019-01-31 · CS 6170: Computational Topology, Spring 2019 Lecture 08 Topological

A TDA pipeline with variations

Data:Point clouds

GraphsImages

Construct a filtration of simplicial complexes

Persistent homologycomputation

Barcode for downstream analysis:

Machine learningVisualization

Page 4: CS 6170: Computational Topology, Spring 2019 Lecture 08beiwang/teaching/cs6170-spring-2019/... · 2019-01-31 · CS 6170: Computational Topology, Spring 2019 Lecture 08 Topological

Beyond Rips Complex: Clique Complex of a graph

Page 5: CS 6170: Computational Topology, Spring 2019 Lecture 08beiwang/teaching/cs6170-spring-2019/... · 2019-01-31 · CS 6170: Computational Topology, Spring 2019 Lecture 08 Topological

Persistent homology of a graph

Page 6: CS 6170: Computational Topology, Spring 2019 Lecture 08beiwang/teaching/cs6170-spring-2019/... · 2019-01-31 · CS 6170: Computational Topology, Spring 2019 Lecture 08 Topological

Persistent homology of a graph

Page 7: CS 6170: Computational Topology, Spring 2019 Lecture 08beiwang/teaching/cs6170-spring-2019/... · 2019-01-31 · CS 6170: Computational Topology, Spring 2019 Lecture 08 Topological

Persistent Homology: Mathematical Formulations

Book Chapter C.VII, C.VIII

Page 8: CS 6170: Computational Topology, Spring 2019 Lecture 08beiwang/teaching/cs6170-spring-2019/... · 2019-01-31 · CS 6170: Computational Topology, Spring 2019 Lecture 08 Topological

Filtration

Consider a function f : K → R defined on a s.c. K

Require f to be monotonic: whenever σ < τ , f(σ) ≤ f(τ).Sublevel set: K(a) = f−1(−∞, a], for a ∈ RLet < a1 < a2 < · · · < an be the function values of simplicies in K.

Set a0 =∞, Ki = K(ai).

A filtration of K is a sequence of complexes such that

∅ = K0 ⊆ K1 ⊆ · · · ⊆ Kn = K.

Compute homology for each Ki gives rise to a sequence of homologygroups connected by homomorphisms,

0 = Hp(K0)→ Hp(K1)→ · · · → Hp(Kn) = H(K).

Page 9: CS 6170: Computational Topology, Spring 2019 Lecture 08beiwang/teaching/cs6170-spring-2019/... · 2019-01-31 · CS 6170: Computational Topology, Spring 2019 Lecture 08 Topological

Filtration: an example

Horak et al. (2009)

Page 10: CS 6170: Computational Topology, Spring 2019 Lecture 08beiwang/teaching/cs6170-spring-2019/... · 2019-01-31 · CS 6170: Computational Topology, Spring 2019 Lecture 08 Topological

Persistence module

Recall a homomorphism is a map between groups that commutes withthe group operation.

Compute homology for each Ki gives rise to a sequence of homologygroups connected by homomorphisms,

0 = Hp(K0)→ Hp(K1)→ · · · → Hp(Kn) = H(K).

f i,jp : Hp(Ki)→ Hp(Kj) is a homomorphism (and a linear map) inducedby inclusion.

f i,kp = f j,kp ◦ f i,jp

The p-th persistent homology groups are the images of thehomomorphisms induced by inclusions, Hi,j

p = im f i,jp , for 0 ≤ i ≤ n.

The corresponding p-th persistent Betti numbers are the ranks of thesegroups, βi,jp = rank Hi,j

p .

Page 11: CS 6170: Computational Topology, Spring 2019 Lecture 08beiwang/teaching/cs6170-spring-2019/... · 2019-01-31 · CS 6170: Computational Topology, Spring 2019 Lecture 08 Topological

Birth and death of a homology class γ

(Edelsbrunner and Harer, 2010, page 151)

Page 12: CS 6170: Computational Topology, Spring 2019 Lecture 08beiwang/teaching/cs6170-spring-2019/... · 2019-01-31 · CS 6170: Computational Topology, Spring 2019 Lecture 08 Topological

Birth and death of a homology class: an example

Page 13: CS 6170: Computational Topology, Spring 2019 Lecture 08beiwang/teaching/cs6170-spring-2019/... · 2019-01-31 · CS 6170: Computational Topology, Spring 2019 Lecture 08 Topological

Homology and Computation

Book Chapter B.IV

Page 14: CS 6170: Computational Topology, Spring 2019 Lecture 08beiwang/teaching/cs6170-spring-2019/... · 2019-01-31 · CS 6170: Computational Topology, Spring 2019 Lecture 08 Topological

Review

K: a simplicial complex. p: dimension.

A p-chain is a sum of p-simplices in K. c ∈ Cp iff c =∑aiσi,

ai ∈ {0, 1}.A p-circle is a p-chain with empty boundary. c ∈ Zp iff ∂c = 0.

A p-boundary is a p-chain that is the boundary of a (p+ 1)-chain.c ∈ Bp iff c = ∂d for d ∈ Cp+1.

1 2

34

Give examples of a 1-chain, 1-cycle and 1-boundary.

Page 15: CS 6170: Computational Topology, Spring 2019 Lecture 08beiwang/teaching/cs6170-spring-2019/... · 2019-01-31 · CS 6170: Computational Topology, Spring 2019 Lecture 08 Topological

Review

A 1-boundary is a 1-chain that is the boundary of a 2-chain.1 2

34

Page 16: CS 6170: Computational Topology, Spring 2019 Lecture 08beiwang/teaching/cs6170-spring-2019/... · 2019-01-31 · CS 6170: Computational Topology, Spring 2019 Lecture 08 Topological

Review

K: a simplicial complex. p: dimension.

The p-th homology group is the p-th cycle group modulo the p-thboundary group,

Hp = Zp/Bp.

The element in Hp is obtained by adding all p-boundaries to a givenp-cycle: c+ Bp for c ∈ Zp.

For example, take c ∈ Zp, c′′ ∈ Bp, then c′ + Bp = c+ Bp sincec′′ + Bp = Bp.

“Cycles that are not boundaries”.1 2

34

What are the elements in H1?

Page 17: CS 6170: Computational Topology, Spring 2019 Lecture 08beiwang/teaching/cs6170-spring-2019/... · 2019-01-31 · CS 6170: Computational Topology, Spring 2019 Lecture 08 Topological

Review

The p-th Betti number is the rank of Hp,

βp = rank Hp.

βp = rank Zp − rank Bp.

1 2

34

Page 18: CS 6170: Computational Topology, Spring 2019 Lecture 08beiwang/teaching/cs6170-spring-2019/... · 2019-01-31 · CS 6170: Computational Topology, Spring 2019 Lecture 08 Topological

Computing Homology

See whiteboard examples.

Page 19: CS 6170: Computational Topology, Spring 2019 Lecture 08beiwang/teaching/cs6170-spring-2019/... · 2019-01-31 · CS 6170: Computational Topology, Spring 2019 Lecture 08 Topological

References I

Edelsbrunner, H. and Harer, J. (2010). Computational Topology: AnIntroduction. American Mathematical Society, Providence, RI, USA.

Horak, D., Maletic, S., and Rajkovic, M. (2009). Persistent homology ofcomplex networks. JSTAT, page P03034.