Skip to content

Business Mathematics and Statistics · Ch 6 — Random Variable and Mathematical Expectation

Probability Mass Function of a Discrete Random Variable

2

Probability Mass Function of a Discrete Random Variable

When a random variable XX is discrete, the way its probabilities are distributed over its possible values x1,x2,…,xnx_1, x_2, \ldots, x_n is described by its probability mass function, written p(xi)=P(X=xi)p(x_i) = P(X = x_i), or simply pip_i.

Conditions for a valid p.m.f.

For p(xi)p(x_i) to be a genuine probability mass function, it must satisfy two conditions:

pi≥0for every ip_i \geq 0 \quad \text{for every } i

∑ipi=1\sum_{i} p_i = 1

In words: no probability can be negative, and the probabilities of all the possible values together must add up exactly to 11, because the random variable is certain to take some value from its list.

Constructing a probability distribution table

To build the probability distribution of a discrete random variable from an experiment, three steps are followed:

  1. List every possible value the random variable can take.
  2. Find the probability of each value from the underlying sample space or given information.
  3. Arrange the values and their probabilities in a table, and verify that the probabilities sum to 11.

Illustration. Suppose two fair coins are tossed and XX denotes the number of heads obtained. The sample space is {HH,HT,TH,TT}\{HH, HT, TH, TT\}, each outcome equally likely with probability 14\tfrac{1}{4}. Here XX can be 00 (from TTTT), 11 (from HTHT or THTH), or 22 (from HHHH), giving the distribution:

xix_i012
pip_i14\tfrac{1}{4}12\tfrac{1}{2}14\tfrac{1}{4}

Here every pi≥0p_i \geq 0 and 14+12+14=1\tfrac{1}{4} + \tfrac{1}{2} + \tfrac{1}{4} = 1, so this is a valid probability distribution. A bar chart of this distribution, with xix_i on the horizontal axis and pip_i on the vertical axis, gives an immediate visual sense of which values are more likely — here the middle value X=1X=1 is the most probable outcome. …

Definition 1Probability Mass Function (p.m.f.)

A function p(xi)=P(X=xi)p(x_i) = P(X=x_i) giving the probability that a discrete random variable equals each of its possible values, satisfying $p_i \g …