Given a set of integer pairs, DQM calculates two measures:  (1) the probability that the first elements in the pairs are similar to a given distribution  and (2) the probability the ratio of the first and  second elements of the pairs are similar,  given that a success in the first element is greater than a success in the second.