ContentsChapter 10 · Dimensionality reduction2 of 2

10.2

Manifold learning

In this chapter
  1. 10.1PCA
  2. 10.2Manifold learning
Before you readIf two points are close across the gap in a horseshoe, are they still close if you have to stay on the horseshoe?
Watch: t-SNE, Clearly Explained · StatQuest with Josh Starmer

A horseshoe needs two coordinates to draw but only one number to say how far along it you are. It has intrinsic dimension one. A manifold is a shape that looks like a straight line, a plane or a higher-dimensional flat space if you zoom in far enough, even if it bends at a larger scale.

PCA uses one flat projection for the whole dataset. On a curved shape, there may be no line to project onto without bringing distant parts of the curve together. Manifold learning looks for low-dimensional coordinates without requiring that they be a linear projection.

StartTarget
Straight line: 3.21Along the graph: 12.16
Move the target. The dashed line cuts across the gap; the solid path follows the neighbour links. When do the two distances disagree most?

Isomap connects each point to its nearest neighbours, weighting each link by its straight-line length. It estimates the distance along the shape (a geodesic distance) by finding the shortest path through those links. Then it places the points in fewer dimensions so the new straight-line distances approximate those graph distances. Too many neighbours can give paths that jump across a gap; too few can leave parts of the graph disconnected.

t-SNE has a different goal: put points that are neighbours in the original data near one another on a low-dimensional map. It is mainly used for visualisation. Unlike Isomap, it does not try to preserve long-range distances. Don’t read a large gap between two t-SNE groups as a measurement of how different they are.

Recall
Why does a curve in the plane have intrinsic dimension one?
Recall
What distance does Isomap approximate with the shortest path through a neighbour graph?
Recall
Which distances should you not try to read from a t-SNE map?
Exercise
The neighbour links have lengths AA–BB 3, BB–CC 4, CC–DD 2 and AA–CC 5. What distance does Isomap use from AA to DD
Exercise
Isomap adds a link directly across the horseshoe gap when you increase the number of neighbours. What happens to the graph distance across the gap?