aNet.ai
Machine Learning/Learning path
0day streak0XP · Lv 1
← 2. Mathematical Foundations
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

The dot product of (1, 2, 3) and (4, 0, −1) is…

Practice this topic
Saved in this browser as you type.
aNet.ai · Introduction to Machine Learning · NewUU course outlineProgress saved in this browser