Euclidean Distance

Euclidean distance is the straight-line distance between two points in a vector space.
Also known as
L2 distance

Intuition

It is the ordinary geometric distance you would measure with a ruler, generalized to many dimensions.

Technical definition

Euclidean distance is the L2 norm of the difference between two vectors.

Example

Clustering algorithms may group points by Euclidean distance in feature space.

Common misunderstandings

  • Euclidean distance can behave poorly in very high-dimensional spaces.
  • It is sensitive to feature scale.

Need this inside a product?

The studio builds the systems these terms describe. Tell us what you are working on.