Skip to content

Statistics · Ch 6 — Random Variable and Discrete Probability Distribution

Probability Mass Function

2

Probability Mass Function

For a discrete random variable XX taking values x1,x2,x3,…x_1, x_2, x_3, \ldots, the probability mass function (pmf), written p(x)p(x) or P(X=x)P(X = x), gives the probability with which XX takes each of its possible values. The complete list of values together with their probabilities is called the probability distribution of XX, and is usually displayed as a table:

X=xiX = x_ix1x_1x2x_2⋯\cdotsxnx_n
P(X=xi)P(X = x_i)p1p_1p2p_2⋯\cdotspnp_n

A function p(x)p(x) qualifies as a valid pmf of a discrete random variable if and only if it satisfies two conditions:

  1. Non-negativity: p(xi)≥0p(x_i) \ge 0 for every value xix_i that XX can take (a probability can never be negative).
  2. Total probability: ∑ip(xi)=1\displaystyle\sum_{i} p(x_i) = 1 (the random variable must take some value from its list with certainty).

If either condition fails, the table given is not a valid probability distribution.

Example. Two fair coins are tossed and XX = number of heads obtained. The sample space is {HH,HT,TH,TT}\{HH, HT, TH, TT\}, each outcome equally likely with probability 14\tfrac14. Here XX can be 0,1,20, 1, 2, and:

XX012
P(X)P(X)14\tfrac1412\tfrac1214\tfrac14

Check: each probability is ≥0\ge 0, and 14+12+14=1\tfrac14 + \tfrac12 + \tfrac14 = 1 — so this is a valid pmf. …

Definition 1Probability Mass Function (pmf)

The function p(x)=P(X=x)p(x) = P(X = x) that gives the probability of each value of a discrete random variable XX; must satisfy $p(x_i) \ge 0 …