Introduction

These techniques work well if the given data happens to lie near a lower-dimensional vector subspace or submanifold of the original space.

Foundational algorithms are

  • PCA “principle component analysis” — vector subspaces
    • starts with a finite metric space (point-cloud data)
  • MDS “multidimensional sampling” — manifold subspaces
    • starts with arbitrary metric space

Goal:

Given (small) , find an optimal map which in some sense represents the structure of the data by minimizing the error:

PCA

Let be an matrix with eigenvalues and eigenvectors , so .

Recall that if is symmetric, we know that and

For PCA, we start with . Fix small.

The goal is to find an “optimal” linear map which distorts distances between data points as little as possible. (Minimal mean-square error.)

PCA Algorithm:
(1) Normalization

Consider and let .

(2) Covariance matrix

Define the covariance matrix :

Note that . Then, since each summand of is symmetric, must be symmetric.

(3) Eigenvalues

Compute the top (largest) eigenvalues of .

If these are pairwise distinct, the corresponding eigenvectors are all linearly independent, so they span a -dimensional linear subspace .

Consider the orthogonal projection .

(Note: one must somehow identify with first.)

If some eigenvalue has multiplicity, then consider the corresponding eigenspace .

Theorem:

The outcome of this algorithm is an optimal which minimizes the error .

(In the context of PCA or MDS, in fact.)

Combining techniques

It is often reasonable to combine techniques discussed thus far.

For example, the outcome of PCA/MDS may be fed into Mapper; a coordinate project in the PCA output may be used as the filter function.

MDS

Multi-dimensional scaling starts with an arbitrary finite metric space , and attempts to embed this in in a way that is optimal in the sense of minimizing . This is done as follows:

(1) Metric matrix:

(2) and

Let be the matrix where is the matrix with all entries .

Let be the matrix .

(This step centers the result at the origin.)

(3) Define :

Create a matrix with columns the eigenvectors , normalized so that . Then:

Isomap manifold learning

The given data is aligned along a non-linear subspace of .

This method is used in facial recognition, for example.

We are assuming that the data lies along (very near) a submanifold . This is assumed to have an “intrinsic” metric for .

center

The idea of isomap is that, assuming is smoothly embedded, there is a scale at which

center

Isomap description in detail:

Let us be given , as well as a scale and a target dimension .

Isomap procedure

(1) Build weighted graph :

  • Vertices: the points
  • Edges: join to when
  • Weights: the distances

center

(2) New metric space :

Same points, new distances:

(Use Dijkstra’s Algorithm to compute the minimal path.)

(3) Apply PCA/MDS:

Find an optimal map .

Isomap - single chart

Isomap is most effective when the manifold can be covered by a single chart and the algorithm effectively “flattens” and “unrolls” the space.

It is less effective for manifolds with topology. For example, when applied to , the output of isomap is a flat disk.

center

(Rabadan-Blumberg 2020)

center

Local Linear Embedding (LLE)

LLE is a variation of isomap manifold learning that is “locally linear.” It does not attempt to preserve the metric globally. The algorithm is a little more efficient than isomap as well.

LLE Procedure

Suppose we are given the data set , the target dimension and a “neighborhood size” .

(1) Find minimizer weights:

For each , find weights that minimize the error:

subject to the constraints:

center

The weights determine approximations of a point using the plane that best fits its neighbors. If the manifold is actually linear around a point, the error at that point will be zero.

(2) Use minimizer weights to recover points:

Find points that minimize the error:

The new embedding is .

center

Locality

The Isomap and LLE algorithms are local, meaning that the output is determined by the data around . Data points far from have no effect on .