Home page for accesible maths 4 Discrete random variables

Style control - access keys in brackets

Font (2 3) - + Letter spacing (4 5) - + Word spacing (6 7) - + Line spacing (8 9) - +

4.2 Probability mass functions

Here R is a discrete random variable that takes values in the non-negative integers, or a subset of them.

We cannot predict the value of R exactly since probability experiments are subject to chance. We can state the values R may take and attach probabilities to these values.

The probability mass function (pmf) of a discrete random variable, R, is defined by pR(r)=P(R=r) for r=0,1,2,.

Note that as pR(r)=P(R=r) is a probability, by axiom 1,

pR(r)0r.

As Ω={R=0,1,2,}

1 = P(Ω)  by Axiom 2
= P((R=0)(R=1)(R=2))
= P(R=0)+P(R=1)+  by Axiom 3
= pR(0)+pR(1)+pR(2)+.

We have shown that if pR is a probability mass function then it satisfies the conditions

pR(r)0  r
r=0pR(r)=1.

In theory, any function p:, which satisfies p(r)0 for r=0,1, and r=0p(r)=1 is a pmf of some random variable. The next few exercises give some arbitrary examples of pmfs. In the next chapter we extend these to ones which correspond to random variables of interest.

Example 4.5.

A random variable R which has the outcome k every time the experiment is undertaken is a constant. The pmf for this random variable is

pR(k)=1,
pR(r)=0 for rk,

which clearly satisfies the two conditions.

Exercise 4.6.

Find the pmf of the number of heads in 3 tosses of a fair coin. Coin tossing sample space is Ω={HHH,HHT,HTH,THH,HTT,THT,TTH,TTT}

Solution.

The event equivalence gives

{R=0} = {TTT}
{R=1} = {HTT,THT,TTH}
{R=2} = {HHT,HTH,THH}
{R=3} = {HHH}

So, by equi-probability,

pR(0) = P(R=0)=1/8
pR(1) = P(R=1)=3/8
pR(2) = P(R=2)=3/8
pR(3) = P(R=3)=1/8,
pR(r) = 0forr{0,1,2,3}.

Note: pR(r)0 for all r and r=0pR(r)=1.

Exercise 4.7.

Suppose Ω={a,b,c,d} and each outcome occurs with equal probability. The random variable R is defined by R(a)=2,R(b)=4,R(c)=3,R(d)=2. Write down the pmf of R.

Solution.

The induced sample space is 𝒮={2,3,4}. By equi-probability,

pR(2) = P({a,d})=12,
pR(3) = P({c})=14,
pR(4) = P({b})=14.
Example 4.8.

If a pmf is specified by pR(r)=c for r=0,1,,m and pR(r)=0 otherwise, where c is constant, then determine the value of c.

Solution.
1=r=0mpR(r)=(m+1)c.

Therefore c=1/(m+1). Note that the condition pR(r)0 is also satisfied.

Exercise 4.9.

If a pmf is specified by pR(r)=cr for r=1,2,3,4 and pR(r)=0 otherwise, where c is constant, then determine the value of c.

Solution.
1=pR(1)+pR(2)+pR(3)+pR(4)=10c.

Therefore c=1/10.