construct a probability distribution for the random variable x