Practice set 5.1

1.

Three balanced coins are tossed independently. Let \(X\) represent the number of heads, and \(Y\) the amount of money won on a side bet in the following manner. If the first head occurs on the first toss, you win $1. If the first head occurs on tosses 2 or 3, you respectively win $2 or $3. If no head appears, you lose $1 (that is, you win -$1).

A.

Define the joint pmf table of \(X\) and \(Y\).

B.

What is the joint support (i.e., the values of \(x\) and \(y\) for which \(p(x,y)>0\))?

C.

Find and interpret \(F(2,1)\).

D.

Find the marginal CDFs.

E.

Find the marginal pmfs.

F.

Find the conditional pmf \(p_{X|Y}(x|1) = P(X=x|Y=1)\).

G.

What is the probability you obtained 2 or more heads, given that you won $1 on the side bet?

2.

Of nine executives in a business firm, four are married, three have never married, and two are divorced. Three of the executives are to be selected for promotion. Let \(X\) denote the number of married executives and \(Y\) denote the number of never-married executives among the three selected for promotion. Assuming that the three are randomly selected from the nine available:

A.

Define the joint pmf, both as a formula and using a two-way table. Make sure your formula accounts for the support!

B.

Find and interpret \(F(1,3)\).

C.

Find the marginal pmf of \(X\), and identify it as having a well-known form.

D.

Find \(p_{X|Y}(x|2)\).

E.

What is \(P(X=1|Y=2)\)?

3.

\(X\) and \(Y\) are discrete random variables indicating loss. They have a joint pmf given by:

\[p(x,y)=\frac{y}{24x};x=1,2,4;y=2,4,8;x \leq y\]

A.

Verify that this is a valid joint pmf.

B.

An insurance policy pays the full amount of loss \(X\) and half of loss \(Y\). Find the probability that the total paid by the insurer is 5 or less.

4.

Suppose \(X\) and \(Y\) are jointly discrete random variables with joint pmf given by:

\[P(X=x, Y=y) = \frac{1}{nx}, x = 1,...,n,\ y = 1,...,x\]

A.

If \(n=3\), write out the joint pmf table.

B.

Find the marginal distribution of \(X\), and describe it qualitatively.

5.

Suppose \(X\) and \(Y\) are jointly discrete random variables with joint pmf given by:

\[P(X=x,Y=y) = \frac{x+1}{12}, \quad x = 0, 1, \quad y=0,1,2,3\]

Find the marginal distributions of \(X\) and \(Y\). Do either of them have well-known forms?

6.

\(X\) and \(Y\) are jointly discrete random variables with joint pmf given by:

\[P(X=x,Y=x)=\frac{1}{e^2 y!(x-y)!}, x=0,1,..., y=0,1,...,x\]

A.

Show that marginally, \(X\sim POI(2)\).

B.

Show that \(Y|X=x \sim BIN(x, 0.5)\).

C.

Find \(F(3,4)\) and \(F(4,2)\) (hint: write R code for both; you may want to define a parameter grid involving x and y for finding the latter by summing joint probabilities.)

For questions 7 and 8, render your work using R Quarto and publish your rendered html on R Pubs. Submit a link to your published html.

7.

Consider Question 1. Use purrrfect::replicate() to simulate 10,000 realizations of \((X,Y)\) pairs. Use this to answer the following.

A.

Use summarizing and pivoting to create the simulated joint pmf table.

B.

Create a plot of the jittered \((X,Y)\) pairs to visually approximate the simulated joint pmf.

C.

Use filtering and summarizing to find the simulated \(p_{X|Y}(x|1)\).

8.

Consider Question 2. Use purrrfect::replicate() to simulate 10,000 realizations of \((X,Y)\) pairs. Use this to answer the following.

A.

Use summarizing and pivoting to create the simulated joint pmf table.

B.

create a plot of the jittered \((X,Y)\) pairs to visually approximate the simulated joint pmf.

C.

Use filtering and summarizing to find the simulated \(p_{X|Y}(x|2)\).