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.3 Probability of an event

If we are interested in evaluating the probability of some event occurring for a random variable, this can easily be obtained from the pmf.

Lemma 4.10.

Let E𝒮 be an event in the induced sample space. The probability of E is given by

P(RE)=rEpR(r).
Proof.

Write E={r1,,rk}𝒮. Then

P(RE) = P({R=r1}{R=r2}{R=rk})
= P(R=r1)+P(R=r2)++P(R=rk)
= pR(r1)+pR(r2)++pR(rk)
= rEpR(r).

Example 4.11.

The length of stay in hospital after surgery is modelled as a random variable R. The following table gives the pmf for R.

Days stayed r 4 5 6 7 8 9 10+ total
Probability pR(r) 0.038 0.114 0.430 0.300 0.080 0.030 0.008 1

Find the probability of being in hospital for

  1. a.

    at most 6 days,

  2. b.

    between 5 and 7 days,

  3. c.

    at least 7 days.

Solution.
  1. a.

    at most 6 days: P(R6)=P(R=4)+P(R=5)+P(R=6)=0.582

  2. b.

    between 5 and 7: P(5R7)=P(R=5)+P(R=6)+P(R=7)=0.844

  3. c.

    at least 7: P(R7)=1-P(R6)=1-0.582=0.418.


Exercise 4.12.

Find the probability of an odd number of heads in 3 tosses of a fair coin.

Solution.

P(odd number Hs)=P(R{1,3})=r=1,3pR(r)=3/8+1/8=1/2.

A specific family of events in which we are often interested, particularly for continuous random variables, is {r:rm} for different values of m. These events are useful because for any event E𝒮 we can calculate P(E) from the probabilities of events of the type {r:rm}. For example, let E={4,5,6}. Then

{r:r6}={r:r3}E,

a disjoint union. Therefore, by Axiom 3,

P({r:r6})=P({r:r3})+P(E).

The cumulative distribution function or cdf of a random variable R is a function FR: given by FR(m)=P(Rm). For a discrete random variable R the cumulative distribution function is given by FR(m)=P(Rm)=r=0mpR(r).

Exercise 4.13.

What is the cumulative distribution function for a random variable R whose pmf is specified by pR(r)=r/10 for r=1,2,3,4?

Solution.
FR(0) = 0
FR(1) = pR(1)=1/10
FR(2) = pR(1)+pR(2)=3/10
FR(3) = pR(1)+pR(2)+pR(3)=6/10
FR(4) = pR(1)+pR(2)+pR(3)+pR(4)=1
FR(m) = 1 for m>4.