Given two orderings of some set of things, what's an effective way to quantify how similar the orderings are?
For instance, say I have the orderings
1 2 3 4 5
2 3 4 5 1
If I just use the number of elements in the right positions, I get that the two orderings are not similar at all, which I don't think is true. There must be a better way to quantify their similarity.
My intuition is that this ordering should take into account how many elements are displaced as well as how far the displacements are.