Measurement and Probability: A Probabilistic Theory of Measurement with Applications