Question 91
Two 2D data points are x1 = (1, 2) and x2 = (4, 6). What is the Euclidean distance between x1 and x2?
Original solution basis:
Distance = sqrt((4 - 1)^2 + (6 - 2)^2) = sqrt(3^2 + 4^2) = sqrt(9 + 16) = sqrt(25) = 5.
Deep Dive
The coordinate differences are 4-1=3 and 6-2=4. Euclidean distance is √(3²+4²)=√25=5. This is the ordinary straight-line distance in the two-dimensional plane.
Key Points to Remember:
• Euclidean distance is the L2 norm of the difference vector.
• d=√$\Sigma (xᵢ-yᵢ)²$.
• The 3-4-5 right-triangle identity gives distance 5.
Exam tip:
Keep full precision during intermediate calculations and round only at the final step, as requested.