Linear Algebra, Matrix, Mathematics, Math, Machine Learning.
X and Y: X-Y The Role of the Angle Given two vectors X = (x1, x2) and Y = (y1, y2), you can express the squared distance D between these two vectors as follows: So there comes the dot product of the x and y in the distance formula. Lets explore the three cases for the value of this dot product.