2.2 Probability functions for discrete random variables

For discrete random variables, the probability function is called a probability mass function (PMF).

Example 2.4 (Discrete uniform distribution) A rv X has the uniform discrete distribution defined from a to b if the PMF is fX(x)={1ba+1if x=a,a+1,,b;0otherwise. This is usually written, for convenience, as fX(x)=1ba+1for x=a,a+1,,b.

A , say f(x), has two properties:

  1. fX(x)=1; that is, the total probability is one (in other words, x certainly takes some value).
  2. fX(x)0 for all x; that is, probabilities are non-negative.

Probabilities are found by summing over appropriate values.

Example 2.5 (Discrete uniform distribution) A rv X has the uniform discrete distribution defined from 3 to 7 inclusive if the PMF is fX(x)=173+1=15for x=3,4,5,6,7. The probability that the rv X takes a value between 5 and 7 inclusive is Pr

Example 2.6 (Discrete PMF) Consider a rv Z with PMF f_Z(z) = \frac{|z - 3|}{4} \quad\text{for $z=1, 2, 3, 4$}. The probability that Z>2 is \Pr(Z>2) = \Pr(Z=3) + \Pr(Z=4) = \frac{|3-3|}{4} + \frac{|4-3|}{4} = 0.25; see Fig. 2.3.

The discrete distribution for $Z$

FIGURE 2.3: The discrete distribution for Z