Constructing a probability distribution