Docsity

2 Solved Problems on Probability Distribution Functions - Homework 7 | STAT 341, Assignments of Probability and Statistics

Toggle sidebar
bg1
Statistics 341
Fall 2008 - Homework Assignment #7
Due Friday, December 5
This assignment is worth a total of 95 points.
1. (49 pts) Roll two dice. Let Y1be the sum of the two dice and Y2be the number on the second
dice rolled.
(a) (10 pts) Find the joint probability distribution function for Y1and Y2.
The sample space for this experiment is below.
11 12 13 14 15 16
21 22 23 24 25 26
31 32 33 34 35 36
41 42 43 44 45 46
51 52 53 54 55 56
61 62 63 64 65 66
For each of the 36 outcomes we can determine the value of the random variables Y1and
Y2. They are
2 1 3 2 4 3 5 4 6 5 7 6
3 1 4 2 5 3 6 4 7 5 8 6
4 1 5 2 6 3 7 4 8 5 9 6
5 1 6 2 7 3 8 4 9 5 10 6
6 1 7 2 8 3 9 4 10 5 11 6
7 1 8 2 9 3 10 4 11 5 12 6
Each of the 36 outcomes has the same probability. The joint probability distribution
function can be expressed by the table below. Each value in the table should be divided
by 36.
Y2
Y11 2 3 4 5 6 Totals
2 1 0 0 0 0 0 1
31 1 0 0 0 0 2
41 1 1 0 0 0 3
51 1 1 1 0 0 4
61 1 1 1 1 1 5
71 1 1 1 1 1 6
80 1 1 1 1 1 5
90 0 1 1 1 1 4
10 0 0 0 1 1 1 3
11 0 0 0 0 1 1 2
12 0 0 0 0 0 1 1
Totals 6 6 6 6 6 6 36
1
pf3
pf4
pf5

Partial preview of the text

Download 2 Solved Problems on Probability Distribution Functions - Homework 7 | STAT 341 and more Assignments Probability and Statistics in PDF only on Docsity!

Statistics 341

Fall 2008 - Homework Assignment

Due Friday, December 5

This assignment is worth a total of 95 points.

  1. (49 pts) Roll two dice. Let Y 1 be the sum of the two dice and Y 2 be the number on the second dice rolled.

(a) (10 pts) Find the joint probability distribution function for Y 1 and Y 2. The sample space for this experiment is below. 11 12 13 14 15 16 21 22 23 24 25 26 31 32 33 34 35 36 41 42 43 44 45 46 51 52 53 54 55 56 61 62 63 64 65 66 For each of the 36 outcomes we can determine the value of the random variables Y 1 and Y 2. They are 2 1 3 2 4 3 5 4 6 5 7 6 3 1 4 2 5 3 6 4 7 5 8 6 4 1 5 2 6 3 7 4 8 5 9 6 5 1 6 2 7 3 8 4 9 5 10 6 6 1 7 2 8 3 9 4 10 5 11 6 7 1 8 2 9 3 10 4 11 5 12 6 Each of the 36 outcomes has the same probability. The joint probability distribution function can be expressed by the table below. Each value in the table should be divided by 36. Y 2 Y 1 1 2 3 4 5 6 Totals 2 1 0 0 0 0 0 1 3 1 1 0 0 0 0 2 4 1 1 1 0 0 0 3 5 1 1 1 1 0 0 4 6 1 1 1 1 1 1 5 7 1 1 1 1 1 1 6 8 0 1 1 1 1 1 5 9 0 0 1 1 1 1 4 10 0 0 0 1 1 1 3 11 0 0 0 0 1 1 2 12 0 0 0 0 0 1 1 Totals 6 6 6 6 6 6 36

(b) (6 pts; 3 pts each) Find the marginal probability distribution functions for Y 1 and Y 2. The rows and columns in the table above are already summed. The marginal distribu- tions of Y 1 and Y 2 are exactly what we would expect them to be. For Y 1 , we get y 1 2 3 4 5 6 7 8 9 10 11 12 p 1 (y 1 ) 1/36 2/36 3/36 4/36 5/36 6/36 5/36 4/36 3/36 2/36 1/ And for Y 2 , we get y 2 1 2 3 4 5 6 p 2 (y 2 ) 1/6 1/6 1/6 1/6 1/6 1/ (c) (4 pts) Are Y 1 and Y 2 independent? Explain your answer. No. Look at the event Y 1 = 2 and Y 2 = 2. The value of p(2, 2) = 0, but p 1 (2) = 1/ 36 and p 2 (y 2 ) = 1/6. (d) (3 pts) Find the conditional probability distribution function for Y 2 when Y 1 = 7. When the sum of the two dice is 7, the distribution of Y 2 is y 2 1 2 3 4 5 6 p(y 2 |Y 1 = 7) 1/6 1/6 1/6 1/6 1/6 1/ (e) (3 pts) Find the conditional probability distribution function for Y 1 when Y 2 = 3. When the second dice is 3, the distribution of Y 1 is y 1 4 5 6 7 8 9 p(y 1 |Y 2 = 3) 1/6 1/6 1/6 1/6 1/6 1/ (f) (12 pts; 3 pts for each of the 4 calculations) Find the covariance between Y 1 and Y 2. For the covariance, we need the expected values of Y 1 , Y 2 , and Y 1 Y 2. These values are

E(Y 1 ) =

∑ y 1

y 1 ∗ p 1 (y 1 )

= (1(2) + 2(3) + 3(4) + 4(5) + 5(6) + 6(7) +5(8) + 4(9) + 3(10) + 2(11) + 1(12))/ 36 = 7

E(Y 2 ) =

∑ y 2

y 2 ∗ p 2 (y 2 )

= (1(1) + 2(1) + 3(1) + 4(1) + 5(1) + 6(1))/ 6 = 3. 5

E(Y 1 Y 2 ) =

∑ y 1

∑ y 2

y 1 y 2 p(y 1 , y 2 )

= (1(2 + 3 + 4 + 5 + 6 + 7) +2(3 + 4 + 5 + 6 + 7 + 8) +3(4 + 5 + 6 + 7 + 8 + 9) +4(5 + 6 + 7 + 8 + 9 + 10)

(a) (12 pts) Find the joint probability distribution function for Y 1 and Y 2. To find the number of outcomes in each combination of Y 1 and Y 2 , we will need to calculate ( 5 y 1

)( 5 y 2

)( 5 6 − y 1 − y 2

)

The table below contains these values. To get the probabilities, each number should be divided by 5005. Y 2 Y 1 0 1 2 3 4 5 Totals 0 0 5 50 100 50 5 210 1 5 125 500 500 125 5 1260 2 50 500 1000 500 50 0 2100 3 100 500 500 100 0 0 1200 4 50 125 50 0 0 0 225 5 5 5 0 0 0 0 10 Totals 210 1260 2100 1200 225 10 5005

(b) (8 pts; 3 pts each and 2 pts for hypergeometric) Find the marginal probability distribu- tion functions for Y 1 and Y 2. Both distributions are the same as one we have studied in the past. What is the distribution and parameters? The marginal distributions of Y 1 and Y 2 are the same. Here is the table.

y 1 or y 2 0 1 2 3 4 5 p 1 (y 1 ) or p 2 (y 2 ) 210/5005 1260/5005 2100/5005 1200/5005 225/5005 10/ This distribution is a hypergeometric distribution with n = 6, N = 15, r = 5. (c) (4 pts) Are Y 1 and Y 2 independent? Explain your answer. No, look at the outcome y 1 = 0, y 2 = 0. The joint probability distribution function is p(0,0) = 0, while the values of p 1 (0) = p 2 (0) = 210/5005. (d) (3 pts) Find the conditional probability distribution function for Y 2 when Y 1 = 3.

y 2 0 1 2 3 p(y 2 |Y 1 = 3) 100/1200 500/1200 500/1200 100/ (e) (3 pts) Find the conditional probability distribution function for Y 1 when Y 2 = 2. y 1 0 1 2 3 4 p(y 1 |Y 2 = 2) 50/2100 500/1200 1000/1200 500/1200 50/ (f) (9 pts; 3 pts for each calculation) Find the covariance between Y 1 and Y 2. For the covariance, we need the expected values of Y 1 , Y 2 , and Y 1 Y 2. The expected value of Y 1 and Y 2 will be the same. These values are

E(Y 1 ) =

∑ y 1

y 1 ∗ p 1 (y 1 )

E(Y 1 Y 2 ) =

∑ y 1

∑ y 2

y 1 y 2 p(y 1 , y 2 )

= (1(1(125) + 2(500) + 3(500) + 4(125)5(5)) +2(1(500) + 2(1000) + 3(500) + 4(50)) +3(1(500) + 2(500) + 3(100)) +4(1(125) + 2(50)) +5(5(1)))/ 5005 = 3. 574129 Cov(Y 1 , Y 2 ) = E(Y 1 Y 2 ) − E(Y 1 )E(Y 2 ) = 3. 574129 − 2(2) = − 0. 4285714

Note: You can get the expected value of Y 1 and Y 2 by using the fact that these are hypergeometric random variables with r = 5, n = 5 and N = 15. (g) (7 pts; 4 pts for variance and 3 pts for correlation) Find the correlation between Y 1 and Y 2. For the correlation, we need the values of the variance of Y 1 and Y 2. These two values will be the same.

E(Y 12 ) =

∑ y 1

y^21 ∗ p 1 (y 1 )

= (0^2 (210) + 1^2 (1260) + 2^2 (2100) + 3^2 (1200) + 4^2 (225) + 5^2 (10))/ 5005 = 24310 /5005 = 4. 857143

V (Y 1 ) = E(Y 12 ) − (E(Y 1 ))^2

Corr(Y 1 , Y 2 ) = √Cov(Y^1 , Y^2 ) (V (Y 1 )V (Y 2 ) =

√ −^0.^4285714

Note: You could also find the variance of Y 1 and Y 2 by using the fact these are hyper- geometric random variables with r = 5, n = 5 and N = 15.