ContentsThe library

Vectors, Distance and Similarity

Everything Is Far Away and Nothing Is Nearby

Last timePutting Everything on the Sphere

In a space with hundreds of coordinates, distances between unrelated points stop varying much and almost every pair of directions is close to perpendicular. Both facts have consequences.

Everything so far has been arithmetic that works the same at any number of

coordinates. This lesson is about what changes anyway, and it changes because of

how sums of many small quantities behave rather than because of anything about

vectors.

Distances stop being different from each other

Take two points whose coordinates are unrelated. Their distance is built from one

small contribution per coordinate. With three coordinates a single unusual one can

dominate and distances vary a lot. With three hundred, each contributes a small

share of a large total, and the totals for different pairs come out close

together.

FIG 1How much the nearest and the farthest point differ, as coordinates are added
0.000.200.400.600.802.076.5151.0225.5300.0number of coordinates
roughly how far distances spread, relative to their size
At three coordinates the spread is a large fraction of the typical distance and near means something. At three hundred it is under six hundredths, so the nearest point and a randomly chosen one differ by a few percent. The query still returns an answer; the answer is simply less special than it sounds.

This is the fact behind the phrase that everything is far away in high

dimensions. More precisely: everything is about equally far away, which is worse,

because it is the differences between distances that a search relies on.

The lesson stops here

6 more paragraphs to go

You have read the opening. The rest of the argument, the problems that check whether it landed, and the lines worth keeping at the end all come with a plan.

The first lesson of every course in the library reads the whole way through, free, so you can see exactly what the rest of them are.

See the planThe contents

This is the reading half

Starting the course gives you your own copy of it. Every idea on every page has problems standing under it, marked with a reason rather than a tick, and any sentence you do not believe can be opened and argued with. None of that can happen on a page nobody owns.

The contents

The rest of this course

  1. 01The Same List, Read Two Ways
  2. 02Straight Lines and City Blocksopening only
  3. 03Multiply, Add, and Get an Angleopening only
  4. 04Dividing the Lengths Outopening only
  5. 05When Distance and Angle Become the Same Questionopening only
  6. 06Everything Is Far Away and Nothing Is Nearbyyou are here
  7. 07The Cost of Asking What Is Nearbyopening only
  8. 08Which Question Are You Actually Askingopening only

Read alongside