PDF and CDF: Roll 2 dice

Roll two dice colored red and green. Let XR record the number of dots showing on the red die, XG the number on the green die, and let S be a random variable giving the total number of dots showing after the roll, namely S=XR+XG.

  • Find the PMFs of XR and of XG and of S.
  • Find the CDF of S.
  • Find P[S=8].

Solution

(1) Construct sample space:

Denote outcomes with ordered pairs of numbers (i,j), where i is the number showing on the red die and j is the number on the green one.

Therefore i,j are integers satisfying 1i,j6.


(2) Create chart of outcomes:

center


(3) Define random variables:

We have XR(i,j)=i and XG(i,j)=j.

Therefore S(i,j)=i+j.


(4) Find PMF of XR:

Use variable k for each possible value of XR, so k=1,2,,6. Find PXR(k):

PXR(k)=P[XR=k]|outcomes with k on red||all outcomes|636=16

Therefore PXR(k)=1/6 for every k.


(5) Find PMF of XG similarly:

PXG(k)=16for allk

(6) Find PMF of S:

PS(k)=P[S=k]|outcomes with sum k||all outcomes|

Count outcomes along diagonal lines in the chart.

k23456789101112
PS(k)136236336436536636536436336236136

center

Evaluate: P[S=8]=5/36.


(7) Find CDF of S:

CDF definition: FS(x)=P[Sx]

Apply definition: add new PMF value at each increment:

FS(x)={01x<21/362x<33/363x<46/364x<510/365x<615/366x<721/367x<826/368x<930/369x<1033/3610x<1135/3611x<1236/3612x

PMF for total heads count; binomial expansion of 1

A fair coin is flipped n times.

Let X be the random variable that counts the total number of heads in each sequence.

The PMF of X is given by:

PX(k)=(nk)(12)n

Since the total probability must add to 1, we know this formula must hold:

1=possible kPX(k)1=k=0n(nk)(12)n

Is this equation really true?

There is another way to view this equation: it is the binomial expansion (x+y)n where x=12 and y=12:

(12+12)n=k=0n(nk)(12)n

Life insurance payouts

A life insurance company has two clients, A and B, each with a policy that pays $100,000 upon death. Consider events D1 that the older client dies next year, and D2 that the younger dies next year. Suppose P[D1]=0.10 and P[D2]=0.05.

Define a random variable X measuring the total money paid out next year in units of $1,000. The possible values for X are 0, 100, 200. Now calculate:

P[X=0]P[D1c]P[D2c]0.950.900.86P[X=100]0.050.90+0.950.100.14P[X=200]0.050.100.005