Lesson 6 of 13 8 min · 100 words From lecture slides
Euclidean distance (L2)
The straight-line distance between two points, ignoring paths and turns.
The Euclidean distance is the straight-line distance between two points — the direct distance, ignoring paths and turns.
In 3D space, with A = (x₁, y₁, z₁) and B = (x₂, y₂, z₂):
For the same points , : , shorter than the Manhattan distance of 7.
Applications: k-means, k-NN and anomaly detection in ML; image and template matching in computer vision; word-embedding and document similarity in NLP; navigation and motion planning in robotics.
Formula to remember
Expectation
Probability-weighted average.
Quick check · +5 XP