It is the distance between two points present in the Euclidean space (In geometry, Euclidean space is referred as 2 dimensional Euclidean plane)
Plane and Point Formula:
The Euclidean distance between points p and q is the length of the line segment connecting them.
In the Euclidean plane, if p = (p1, p2) and q = (q1, q2) then the distance is given by
Note: The source of this formula is in Pythagorean Theorem.
Some Applications of Euclidean distance include:
- It is used to calculate nearest data point in machine learning for K-nearest neighbor algorithm
- It is used to determine similarity between two points or vectors
Compilation/Summary Credits: Vishwanath Telsang