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(R∈E)=∑r∈EpR(r).
Proof.

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

P(R∈E) = P({R=r1}∪{R=r2}∪…∪{R=rk})
= P(R=r1)+P(R=r2)+…+P(R=rk)
= pR⁢(r1)+pR⁢(r2)+…+pR⁢(rk)
= ∑r∈EpR⁢(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(R≤6)=P(R=4)+P(R=5)+P(R=6)=0.582

  2. b.

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

  3. c.

    at least 7: P(R≥7)=1-P(R≤6)=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:r≤m} 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:r≤m}. For example, let E={4,5,6}. Then

{r:r≤6}={r:r≤3}∪E,

a disjoint union. Therefore, by Axiom 3,

P⁢({r:r≤6})=P⁢({r:r≤3})+P⁢(E).

The cumulative distribution function or cdf of a random variable R is a function FR:ℝ→ℝ given by FR(m)=P(R≤m). For a discrete random variable R the cumulative distribution function is given by FR(m)=P(R≤m)=∑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.