15
spectral graph theory and clustering

spectral graph theory and clustering - University of Washington · 2018-04-06 · spectral graph theory and clustering. linear algebra reminder Real symmetric matrices have real eigenvalues

  • Upload
    others

  • View
    8

  • Download
    0

Embed Size (px)

Citation preview

Page 1: spectral graph theory and clustering - University of Washington · 2018-04-06 · spectral graph theory and clustering. linear algebra reminder Real symmetric matrices have real eigenvalues

spectral graph theory and clustering

Page 2: spectral graph theory and clustering - University of Washington · 2018-04-06 · spectral graph theory and clustering. linear algebra reminder Real symmetric matrices have real eigenvalues

linear algebra reminder

Real symmetric matrices have real eigenvalues and eigenvectors.

𝐴 =2 −1 3−1 −2 −13 −1 2

eigenvalues:

eigenvectors:17.27491

𝐴𝑖𝑗 = 𝐴𝑗𝑖

−2.2749 −1

−101

5.2749

1−0.27491

−101=

10−1

= (−1)−101

Page 3: spectral graph theory and clustering - University of Washington · 2018-04-06 · spectral graph theory and clustering. linear algebra reminder Real symmetric matrices have real eigenvalues

heat flow

Page 4: spectral graph theory and clustering - University of Washington · 2018-04-06 · spectral graph theory and clustering. linear algebra reminder Real symmetric matrices have real eigenvalues

heat flow

Page 5: spectral graph theory and clustering - University of Washington · 2018-04-06 · spectral graph theory and clustering. linear algebra reminder Real symmetric matrices have real eigenvalues

a version in discrete time and space

An undirected graph 𝐺 = (𝑉, 𝐸)

For now, assume that 𝐺 is 𝒅-regular for some number 𝑑.

Page 6: spectral graph theory and clustering - University of Washington · 2018-04-06 · spectral graph theory and clustering. linear algebra reminder Real symmetric matrices have real eigenvalues

a version in discrete time and space

An undirected graph 𝐺 = (𝑉, 𝐸)

𝑉 = 1, 2,… , 𝑛

𝑢 = 𝑢1, 𝑢2, … , 𝑢𝑛 ∈ ℝ𝑛

Random walk matrix:

𝑊 is an 𝑛 × 𝑛real symmetric matrix.

𝑊𝑖𝑖 =1

2

𝑊𝑖𝑗 =1

2𝑑 {𝑖, 𝑗} an edge

𝑊𝑖𝑗 = 0 {𝑖, 𝑗} not an edge

𝑊𝑢 𝑖 =1

2𝑢𝑖 +1

2

1

𝑑

𝑗∶ 𝑖,𝑗 ∈𝐸

𝑢𝑗

Page 7: spectral graph theory and clustering - University of Washington · 2018-04-06 · spectral graph theory and clustering. linear algebra reminder Real symmetric matrices have real eigenvalues

heat dispersion on a graph

Page 8: spectral graph theory and clustering - University of Washington · 2018-04-06 · spectral graph theory and clustering. linear algebra reminder Real symmetric matrices have real eigenvalues

evolution of the random walk / heat flow

𝑢 = 𝑢1, 𝑢2, … , 𝑢𝑛

𝑊𝑢 =

𝑖=1

𝑛

𝑊1,𝑖𝑢𝑖 ,

𝑖=1

𝑛

𝑊2,𝑖 𝑢𝑖 , … ,

𝑖=1

𝑛

𝑊𝑛,𝑖 𝑢𝑖

𝑊2𝑢 =

𝑖,𝑗=1

𝑛

𝑊1,𝑗𝑊𝑗,𝑖𝑢𝑖 , … ,

𝑖,𝑗=1

𝑛

𝑊𝑛,𝑗𝑊𝑗,𝑖 𝑢𝑖

𝜇1 𝑣1

𝜇2 𝑣2

𝜇𝑛 𝑣𝑛

eigenvalues/eigenvectors of 𝑊

𝑢 = 𝛼1𝑣1 + 𝛼2𝑣2 +⋯+ 𝛼𝑛𝑣𝑛

𝑊𝑢 = 𝜇1𝛼1𝑣1 + 𝜇2𝛼2𝑣2 +⋯+ 𝜇𝑛𝛼𝑛𝑣𝑛

𝑊2𝑢 = 𝜇12𝛼1𝑣1 + 𝜇2

2𝛼2𝑣2 +⋯+ 𝜇𝑛2𝛼𝑛𝑣𝑛

𝑊𝑘𝑢 = 𝜇1𝑘𝛼1𝑣1 + 𝜇2

𝑘𝛼2𝑣2 +⋯+ 𝜇𝑛𝑘𝛼𝑛𝑣𝑛

𝜇1 = 1

𝑣1 =1

𝑛,… ,1

𝑛

Page 9: spectral graph theory and clustering - University of Washington · 2018-04-06 · spectral graph theory and clustering. linear algebra reminder Real symmetric matrices have real eigenvalues

𝑊𝑘𝑢 = 𝛼1 𝑣1 + 𝜇2𝑘𝛼2𝑣2 +⋯+ 𝜇𝑛

𝑘𝛼𝑛𝑣𝑛

evolution of the random walk / heat flow

𝑢 = 𝑢1, 𝑢2, … , 𝑢𝑛

𝑊𝑢 =

𝑖=1

𝑛

𝑊1,𝑖𝑢𝑖 ,

𝑖=1

𝑛

𝑊2,𝑖 𝑢𝑖 , … ,

𝑖=1

𝑛

𝑊𝑛,𝑖 𝑢𝑖

𝑊2𝑢 =

𝑖,𝑗=1

𝑛

𝑊1,𝑗𝑊𝑗,𝑖𝑢𝑖 , … ,

𝑖,𝑗=1

𝑛

𝑊𝑛,𝑗𝑊𝑗,𝑖 𝑢𝑖

𝜇1 𝑣1

𝜇2 𝑣2

𝜇𝑛 𝑣𝑛

eigenvalues/eigenvectors of 𝑊

𝑢 = 𝛼1𝑣1 + 𝛼2𝑣2 +⋯+ 𝛼𝑛𝑣𝑛

𝑊𝑢 = 𝜇1𝛼1𝑣1 + 𝜇2𝛼2𝑣2 +⋯+ 𝜇𝑛𝛼𝑛𝑣𝑛

𝑊2𝑢 = 𝜇12𝛼1𝑣1 + 𝜇2

2𝛼2𝑣2 +⋯+ 𝜇𝑛2𝛼𝑛𝑣𝑛

𝜇1 = 1

𝑣1 =1

𝑛,… ,1

𝑛

Page 10: spectral graph theory and clustering - University of Washington · 2018-04-06 · spectral graph theory and clustering. linear algebra reminder Real symmetric matrices have real eigenvalues

𝜇2 𝑣2

𝑊𝑘𝑢 = 𝛼1 𝑣1 + 𝜇2𝑘𝛼2𝑣2 +⋯+ 𝜇𝑛

𝑘𝛼𝑛𝑣𝑛

evolution of the random walk / heat flow

𝑢 = 𝑢1, 𝑢2, … , 𝑢𝑛

𝑊𝑢 =

𝑖=1

𝑛

𝑊1,𝑖𝑢𝑖 ,

𝑖=1

𝑛

𝑊2,𝑖 𝑢𝑖 , … ,

𝑖=1

𝑛

𝑊𝑛,𝑖 𝑢𝑖

𝑊2𝑢 =

𝑖,𝑗=1

𝑛

𝑊1,𝑗𝑊𝑗,𝑖𝑢𝑖 , … ,

𝑖,𝑗=1

𝑛

𝑊𝑛,𝑗𝑊𝑗,𝑖 𝑢𝑖

𝜇1 𝑣1

𝜇𝑛 𝑣𝑛

eigenvalues/eigenvectors of 𝑊

𝑢 = 𝛼1𝑣1 + 𝛼2𝑣2 +⋯+ 𝛼𝑛𝑣𝑛

𝑊𝑢 = 𝜇1𝛼1𝑣1 + 𝜇2𝛼2𝑣2 +⋯+ 𝜇𝑛𝛼𝑛𝑣𝑛

𝑊2𝑢 = 𝜇12𝛼1𝑣1 + 𝜇2

2𝛼2𝑣2 +⋯+ 𝜇𝑛2𝛼𝑛𝑣𝑛

𝜇1 = 1

𝑣1 =1

𝑛,… ,1

𝑛

Page 11: spectral graph theory and clustering - University of Washington · 2018-04-06 · spectral graph theory and clustering. linear algebra reminder Real symmetric matrices have real eigenvalues

spectral embedding

𝑣2

Page 12: spectral graph theory and clustering - University of Washington · 2018-04-06 · spectral graph theory and clustering. linear algebra reminder Real symmetric matrices have real eigenvalues

bottlenecks

𝐺 = (𝑉, 𝐸)

𝑆

Φ 𝑆 =𝐸 𝑆

𝑆

Φ∗ 𝐺 = min𝑆 ≤𝑛2

Φ 𝑆

Page 13: spectral graph theory and clustering - University of Washington · 2018-04-06 · spectral graph theory and clustering. linear algebra reminder Real symmetric matrices have real eigenvalues

PCA cannot find non-linear structure

Page 14: spectral graph theory and clustering - University of Washington · 2018-04-06 · spectral graph theory and clustering. linear algebra reminder Real symmetric matrices have real eigenvalues

spectral partitioning can...

[photo credit: Ma-Wu-Luo-Feng 2011]

Page 15: spectral graph theory and clustering - University of Washington · 2018-04-06 · spectral graph theory and clustering. linear algebra reminder Real symmetric matrices have real eigenvalues

spectral partitioning can...

[photo credit: Sidi, et. al. 2011]