Toward a probabilistic theory of measurement