Euclidean distance is a measure of the straight-line distance between any two points in a Euclidean space. Its quite literally just the Pythagorean theorem but scaled up quite a bit. Similar to cosine similarity, euclidean distance is often used to measure similarity within an embedding domain.

The general formula for Euclidean distance in -dimensional space is

In one-dimensional space:

In two-dimensional space:

In three-dimensional space:

Euclidean distance has the following key properties:

  1. It is non-negative
  2. It is symmetric
  3. It has triangle inequality