Probability Mass Function (PMF)
A Probability Mass Function (PMF) is the function that gives the probability that a discrete random variable X equals each of its possible values x. The PMF of X is
f(x) = P(X = x)
A fair die is rolled and
Xis the number showing. What is the PMF ofX, and what isP(X \le 2)?
- Each of the six faces is equally likely, so
f(x) = \frac{1}{6}forx = 1, 2, \ldots, 6.- The six probabilities sum to
6 \times \frac{1}{6} = 1.- The probability of at most 2 is
f(1) + f(2) = \frac{2}{6} = \frac{1}{3}.
Requirements of a probability mass function
A function f is a PMF only if every value is non-negative,
f(x) \ge 0
and the probabilities of all possible values of X sum to 1:
\sum_{\text{all } x} f(x) = 1
The second requirement is what solves for an unknown constant in a PMF, or for the probability of the one value a question leaves out. It also checks a marginal distribution worked out from a joint table: its probabilities must total 1.
A random variable
Xhas PMFf(x) = cxforx = 1, 2, 3, 4. What arecandP(X \ge 3)?
- The probabilities must sum to 1, so
c(1 + 2 + 3 + 4) = 10c = 1.- The constant is
c = \frac{1}{10}.- The probability of at least 3 is
f(3) + f(4) = \frac{3}{10} + \frac{4}{10} = 0.7.