What is the probability mass function (PMF)?
A) A function that assigns probabilities to each value of a continuous random variable.
B) A function that assigns probabilities to each value of a discrete random variable.
C) A function that calculates the cumulative probability of a random variable.
D) A function that calculates the expected value of a random variable.