I'm preparing to calculate a data set's Mean Difference (equation given in the image below), but am having trouble understanding what I'm supposed to do when duplicate values are involved.
My data consists of a large collection of integers which all have values in the set [0,5]. With such a small value set, ties are inevitable. However, I can't seem to find any resources that take this in to consideration. They all assume the probability of ties is 0 and continue with the material.
Let's create a small example data set (bounded within the set of values that my actual data is):
[0, 3, 2, 5, 4, 4, 5, 1, 3, 5]
How would one go about dealing with duplicates when calculating Order Statistic and Rank-Order Statistics?