∥x∥2=i∑xi2 Interestingly, for a given set of points xi, the points that minimizes the sum of euclidean distances to xi is their mean d=(xi′−xi)2 Distance between two points Assuming Einstein notation xi refers to summing over all coordinate differences