As you can see in the graphic below the numbers that were picked by the computer when I purchased the ticket did not match the numbers that were selected that evening.
So a question that occurred to me was: “How close did I get?” And one way to think about distances between two numbers is to subtract their values and take the absolute value of the result. So the distance between the number and the number would be . Here is the formula:
This is very easy to extend into higher dimensions. For example, if you go to two dimensions this becomes the pythagorean theorem as applied to two points in the plane. Here is the formula using the example of the points
In the case of the lottery tickets we can think of a lottery ticket as a point in a six dimensional space, since the ticket has six numbers. This means that the distance between the ticket I purchased and the winning ticket is:
This expression simplifies to be which is about , this means that I was pretty close when you consider the maximum distance between two sets of numbers in the lottery is (). The maximum distance is computed by considering the distance between the two points and This type of distance is called the Euclidean Distance between two points..