Five points lie on a unit half-circle at angles 0∘,45∘,90∘,135∘,180∘. Isomap uses a neighbourhood graph in which two points are joined if they are less than 0.8 apart. (a) What is the graph (geodesic) distance between the first and last points, and how does it compare with the straight-line distance and the true arc length? (b) What goes wrong if the radius is too large, for example 1.5?

Unsupervised learning, Isomap and LLE
Level L3 Intermediate. Length Medium. Nature Th+Mat Both.

What's being asked

Whether you understand that Isomap replaces Euclidean distance by shortest-path distance through a neighbourhood graph, and how the neighbourhood size affects it.

Key idea

Isomap approximates geodesic distance on the manifold by shortest paths over a neighbourhood graph (joining the k nearest points, or all points within a radius), then applies classical MDS to those distances.

Steps

  1. Adjacent points on the unit circle at angle gap 45∘ are 2sin⁡(22.5∘)≈0.7654 apart. The next-nearest points are 2≈1.414 apart, which is more than 0.8, so every point connects only to the points next to it and the graph is the chain 1−2−3−4−5.
  2. The shortest path from point 1 to point 5 passes through all four edges: 4×0.7654=3.0615.
  3. The straight-line (Euclidean) distance is the diameter 2, which cuts across the empty middle. The true arc length is π≈3.1416. The graph distance 3.06 is close to the arc (within 3%), and much better than 2.
  4. For the points at 0∘ and 90∘ the Euclidean distance is 2≈1.414, the graph distance is 2×0.7654=1.531, and the arc is π/2≈1.571.
  5. After computing all pairwise graph distances, Isomap squares them, applies double centring and takes the top eigenvectors, exactly as in classical MDS. Here the half-circle would be unrolled into a line of length about 3.06.
  6. If the radius is too big (or k too large), the graph includes edges that connect points far apart along the manifold but close in space (shortcuts). Here a radius of 1.5 adds the 90∘ chords of length 2, so the path 1−3−5 has length 22≈2.83, which underestimates the arc π; a radius of 2 or more gives the straight chord 2 and destroys the unrolling. If the radius (or k) is too small, the graph can become disconnected.

Common mistakes

How long your answer should be

Half a page; 5 minutes.

Last checked on 4 December 2026.

Read this

Previous in Unsupervised learning: In independent component analysis (ICA) we observe x=As with independent sources s. (a) Why must at most one source be Gaussian? (b) Why is whitening the first step? (c) A source s with unit variance is uniform on [−3,3]. Its excess kurtosis is E[s4]−3. What is it, and what is the kurtosis of (s1+s2)/2 for two independent such sources?
Next in Unsupervised learning: An isolation forest uses sub-samples of size ψ=256 and scores a point with s(x,ψ)=2−E[h(x)]/c(ψ), where c(ψ)=2(ln⁡(ψ−1)+0.5772)−2(ψ−1)ψ. (a) Compute c(256). (b) Find s for average path lengths E[h]=4, 10.24 and 12 and say what each means. (c) Why is c(ψ) in the formula?