Similar Items: Foundations of the theory of probability