For example, let the vector be <3. 2. 1>. x1= 3 and subtracting each of the entries gives the 3- 3= 0, 3- 2= 1. 3- 1= 2. Similarly, x2 minus each of the entries is 2- 3= -1, 2- 2= -0, 2- 1= 1, and x3 minus each of the others is 1- 3= -2, 1- 2= -1. 1- 1= 0. The 9 entries in the matrix referred to are 0, 1, 2, -1, 0, 1, -2, -1, and, 0 . Of course, for each xi- xj there is a corresponding xj- xi this is an anti-symmetric matrix. The sum of all its values is 0. To avoid that we square and get 0^2+ 1^2+ 2^2+ (-1)^2+ 0^2+ 1^2+ (-2)^2+ 1^2+ 0^2= 1+ 4+ 1+ 1+ 4+ 1= 12. Dividing by n^2= 3^2= 9. the MSD is 12/9= 4/3.