# Monthly Archives: April 2014

## On the Trick for Computing the Squared Euclidean Distances Between Two Sets of Vectors

Many times one wants to compute the squared pairwise Euclidean distances between two sets of observations. As always it is enlightening to look at the computation being done in the single case, between a vector, $x$, and a vector, $y$, $||x-y||^2$. The computation for the distance can be rewritten into a simpler form, ||x-y||^2 = […]