Chapter #6 – Jointly Distributed Random Variables Question #1: Two fair dice are rolled. Find the joint probability mass function of π and π when (a) π is the largest value obtained on any die and π is the sum of the values; (b) π is the value on the first die and π is the larger of the two values; (c) π is the smallest and π is the largest value obtained on the dice. (The answers are based on the following table. Also note that only the solution to part (a) is presented as parts (b) and (c) are solved similarly.) Second Die Sum of two dice First Die 1 2 3 4 5 6 1 2 3 4 5 6 7 2 3 4 5 6 7 8 3 4 5 6 4 5 6 7 5 6 7 8 6 7 8 9 7 8 9 10 8 9 10 11 9 10 11 12 a) If π is the max on either die and π is the sum of the dice, then the joint probability mass function πππ (π₯, π¦) = π(π = π₯, π = π¦) is given in the following table. X Y 1 2 3 4 5 6 7 8 9 10 11 12 ππ (π = π) 1 2 3 4 5 6 0 0 0 0 0 0 1/36 0 0 0 0 0 0 2/36 0 0 0 0 0 1/36 2/36 0 0 0 0 0 2/36 2/36 0 0 0 0 1/36 2/36 2/36 0 0 0 0 2/36 2/36 2/36 0 0 0 1/36 2/36 2/36 0 0 0 0 2/36 2/36 0 0 0 0 1/36 2/36 0 0 0 0 0 2/36 0 0 0 0 0 1/36 1/36 3/36 5/36 7/36 9/36 11/36 ππ (π = π) 0 1/36 2/36 3/36 4/36 5/36 6/36 5/36 4/36 3/36 2/36 1/36 Note that the marginal probability mass function for π is given by summing the columns while the marginal mass function for π is given by summing the rows. Question #2: Suppose that 3 balls are chosen without replacement from an urn consisting of 5 white and 8 red balls (13 total). Let ππ equal 1 if the ith ball selected is white, and let it equal 0 otherwise. Give the joint probability mass function of (a) π1, π2; (b) π1, π2, π3. 8∗7∗11 a) We have that π1 = {1,0} and π2 = {1,0}. We then calculate π(0,0) = 13∗12∗11 = 14/39, 5∗8∗11 10 8∗5∗11 10 5∗4∗11 5 π(1,0) = 13∗12∗11 = 39, π(0,1) = 13∗12∗11 = 39 and π(1,1) = 13∗12∗11 = 39. b) We have that π1 = {1,0}, π2 = {1,0} and π3 = {1,0}. We can therefore calculate 8∗7∗6 5∗8∗7 π(0,0,0) = 13∗12∗11, 8∗5∗7 π(1,0,0) = 13∗12∗11, 5∗4∗8 8∗7∗5 π(0,1,0) = 13∗12∗11, 5∗8∗4 π(0,0,1) = 13∗12∗11, 8∗5∗4 5∗4∗3 π(1,1,0) = 13∗12∗11, π(1,0,1) = 13∗12∗11, π(0,1,1) = 13∗12∗11, π(1,1,1) = 13∗12∗11. Question #9: The joint probability density function of X and Y is given by the following 6 π(π₯, π¦) = 7 (π₯ 2 + π₯π¦ 2 ) where π₯ ∈ (0,1) and π¦ ∈ (0,2). (a) Verify that this is indeed a joint density function. (b) Compute the probability density function of π and π. (c) Compute the π(π > π). (d) Find the probability π(π > ½|π < ½). (e) Find πΈ(π). (f) Find πΈ(π). ∞ ∞ 1 26 a) We must verify that the sum is 1 = ∫−∞ ∫−∞ π(π₯, π¦) ππ¦ππ₯ = ∫0 ∫0 7 (π₯ 2 + 6 1 π₯ 6 1 6 2 1 6 2 π₯π¦ 2 6 7 1 ) ππ¦ππ₯ = ∫ [π₯ 2 π¦ + 4 π¦ 2 ]20 ππ₯ = 7 ∫0 (2π₯ 2 + π₯) ππ₯ = 7 [3 π₯ 3 + 2 π₯ 2 ]10 = 7 (3 + 2) = 7 (6) = 1. 7 0 ∞ 26 b) We must find the following integral ππ (π₯) = ∫−∞ π(π₯, π¦) ππ¦ = ∫0 7 (π₯ 2 + 6 7 π₯ 6 π₯π¦ 2 ) ππ¦ = 6 [π₯ 2 π¦ + 4 π¦ 2 ]20 = 7 (2π₯ 2 + π₯). Thus, ππ (π₯) = 7 (2π₯ 2 + π₯) where π₯ ∈ (0,1). Similarly, ∞ 16 ππ (π¦) = ∫−∞ π(π₯, π¦) ππ₯ = ∫0 7 (π₯ 2 + π₯π¦ 2 6 1 π¦ 6 1 π¦ ) ππ₯ = 7 [3 π₯ 3 + 4 π₯ 2 ]10 = 7 (3 + 4), π¦ ∈ (0,2). 1 π₯6 c) We calculate that π(π > π) = β¬(π₯,π¦):π₯>π¦ π(π₯, π¦) ππ¦ππ₯ = ∫0 ∫0 7 (π₯ 2 + 1 ∫ [π₯ 2 π¦ 7 0 6 π₯ 6 1 + 4 π¦ 2 ]0π₯ ππ₯ = 7 ∫0 (π₯ 3 + 1 1 d) We have π (π > 2 |π < 2) = 1 2 π₯3 4 6 15 6 5 30 π₯π¦ 2 ) ππ¦ππ₯ = 15 ) ππ₯ = 7 ∫0 4 π₯ 3 ππ₯ = 7 [16 π₯ 4 ]10 = 112 = 56. 1/2 6 2 π₯π¦ ∫1/2 ∫0 (π₯ 2 + 2 )ππ₯ππ¦ 6 1/2 ∫ (2π₯ 2 +π₯)ππ₯ 7 0 1 2 π(π¦> ∩ π< ) 1 2 =7 π(π< ) 2 = 1/2 ∫1/2 ∫0 1/2 ∫0 (π₯ 2 + π₯π¦ )ππ₯ππ¦ 2 (2π₯ 2 +π₯)ππ₯ . ∞ 6 e) Since ππ (π₯) = 7 (2π₯ 2 + π₯) where π₯ ∈ (0,1), we have πΈ(π) = ∫−∞ π₯ ∗ π(π₯) ππ₯ = 6 1 6 1 1 6 1 1 6 5 5 ∫ 2π₯ 3 + π₯ 2 ππ₯ = 7 [2 π₯ 4 + 3 π₯ 3 ]10 = 7 (2 + 3) = 7 (6) = 7. 7 0 6 1 ∞ π¦ f) Since ππ (π₯) = 7 (3 + 4) where π¦ ∈ (0,2), we have that πΈ(π) = ∫−∞ π¦ ∗ π(π¦) ππ¦ = 6 2 1 π¦ 6 1 1 6 2 1 6 7 ∫ ( + 4) ππ¦ = 7 [3 π¦ + 8 π¦ 2 ]20 = 7 (3 + 2) = 7 (6) = 1. 7 0 3 Question #13: A man and a woman agree to meet at a certain location at about 12:30 PM. (a) If the man arrives at a time uniformly distributed between 12:15 and 12:45, and if the woman independently arrives at a time uniformly distributed between 12:00 and 1 PM, find the probability that the first to arrive waits no longer than 5 minutes. (b) What is the probability that the man arrives first? a) If we let π denote the arrival time of the man, then π~πππΌπΉ(15,45) while the density 1 is ππ (π₯) = 30 when π₯ ∈ (15,45) and zero otherwise. Similarly, if we let π denote the 1 arrival time of the women, then π~πππΌπΉ(0,60) and is ππ (π¦) = 60 when π₯ ∈ (0,60) and zero otherwise. Since π and π are independent, we have that the joint density function 1 1 1 πππ (π₯, π¦) = ππ (π₯) ∗ ππ (π¦), which implies that πππ (π₯, π¦) = 30 ∗ 60 = 1800 whenever we have that (π₯, π¦) ∈ [15,45] × [0,60] and zero otherwise. Therefore, the probability that the first to arrive waits no longer than 5 minutes is given by π(|π − π| ≤ 5) = π(−5 ≤ π − π ≤ 5) = π(−π − 5 ≤ −π ≤ −π + 5) = π(π + 5 ≥ π ≥ π − 5) = 45 π₯+5 ∫15 ∫π₯−5 1 45 1 1800 45 1 300 1 π₯+5 ππ¦ππ₯ = 1800 ∫15 [π¦]π₯−5 ππ₯ = 1800 ∫15 10 ππ₯ = 1800 = 6. 45 60 b) The probability that the man arrives first is π(π < π) = ∫15 ∫π₯ 45 1 ∫ (60 1800 15 1 1 1 1800 ππ¦ππ₯ = 1 45 − π₯) ππ₯ = 1800 [60π₯ − 2 π₯ 2 ]15 = 2. Question #17: Three points π1, π2 and π3 are selected at random on a line L. What is the probability that π2 lies between π1 and π3? ο· 1 The probability is 3 since each of the points is equally likely to be the middle one. Question #21: Let the joint density function π(π₯, π¦) = 24π₯π¦ where (π₯, π¦) ∈ [0,1] × [0,1] and 0 ≤ π₯ + π¦ ≤ 1 while we let π(π₯, π¦) = 0 otherwise. (a) Show that π(π₯, π¦) is a joint probability density function. (b) Find the πΈ(π). (c) Find the πΈ(π). ∞ ∞ 1 1−π₯ a) We must verify that the sum 1 = ∫−∞ ∫−∞ π(π₯, π¦) ππ¦ππ₯ = ∫0 ∫0 1 1 24π₯π¦ ππ¦ππ₯ = 1 ππ₯ = ∫0 12π₯(1 − 2π₯ + π₯ 2 ) ππ₯ = ∫0 (12π₯ − 24π₯ 2 + 12π₯ 3 ) ππ₯ = ∫0 [12π₯π¦ 2 ]1−π₯ 0 [6π₯ 2 − 8π₯ 3 + 3π₯ 4 ]10 = 6 − 8 + 3 = 1. ∞ b) We first find the marginal density for π. We thus have ππ (π₯) = ∫−∞ π(π₯, π¦) ππ¦ = 1−π₯ ∫0 24π₯π¦ ππ¦ = [12π₯π¦ 2 ]1−π₯ = 12π₯(1 − π₯)2 = 12π₯ − 24π₯ 2 + 12π₯ 3 . Then we have 0 ∞ 1 πΈ(π) = ∫−∞ π₯ ∗ π(π₯) ππ₯ = ∫0 (12π₯ 2 − 24π₯ 3 + 12π₯ 4 ) ππ₯ = [4π₯ 3 − 6π₯ 4 + 2 c) By the same reasoning as above, we find that πΈ(π) = 5. 12 5 2 π₯ 5 ]10 = 5. Question #29: The gross weekly sales at a certain restaurant is a normal random variable with mean $2200 and standard deviation $230. What is the probability that (a) the total gross sales over the next 2 weeks exceeds $5000; (b) weekly sales exceed $2000 in at least 2 of the next 3 weeks? What independence assumptions have you made (independence)? a) If we let ππ be the random variable equal to the restaurant’s sales in week π, then we see that ππ ~π(2200,230). We can then define the random variable π = π1 + π2 and by proposition 3.2, we have that π~π(2200 + 2200,230 + 230) or that π−4400 π~π(4400,460). We therefore have that π(π > 5000) = π ( 460 > 5000−4400 460 )= π(π > 1.85) = 1 − Φ(1.85) = 0.0326, where π~π(0,1). ππ −2200 b) In any given week, we calculate that π(ππ > 2000) = π ( 230 > 2000−2200 230 )= π(π > −0.87) = 1 − Φ(−0.87) = 0.808. The probability that weekly sales will exceed this amount in at least 2 of the next 3 weeks can be calculated with the binomial distribution where π is the random variable equal to the number of weeks that sales exceed $2,000. We therefore have π(π ≥ 2) = π(π = 2) + π(π = 3) = (32)(0.808)2 (0.192)1 + (33)(0.808)3 (0.192)0 = ∑3π=2(3π)(0.808)π (0.192)3−π = 0.9036. Question #34: Jay has two jobs to do, one after the other. Each attempt at job π takes one hour and is successful with probability ππ . If π1 = 0.3 and π2 = 0.4, what is the probability that it will take Jay more than 12 hours to be successful on both jobs? ο· Assume that Jay’s strategy is to attempt job 1 until he succeeds, and then move on to job 2 after. The probability that Jay never gets job 1 done in 12 attempts is given by 0.712 . The probability that Jay fails job 1 in his first π attempts, succeeding in the π + 1 attempts and then never getting job 2 done is given by (0.7)π (0.3)(0.6)11−π . Thus, the π 11−π total probability is given by 0.712 + ∑11 . π=0(0.7) (0.3)(0.6) Question #38: Choose a number π at random from the set of numbers {1, 2, 3, 4, 5}. Now choose a number at random from the subset no larger than π, that is, from {1, . . . ,X}. Call this second number Y. (a) Find the joint mass function of π and π. (b) Find the conditional mass function of π given that π = π. Do it for i = 1, 2, 3, 4, 5. (c) Are π and π independent? Why? a) We can represent the joint probability mass function of π and π either with a table or with an analytic formula. For the formula, we may write the joint PMF of these two 1 1 random variables as πππ (π = π, π = π) = (5) (π ). The table below presents this joint PMF of π and π also, where the row sums give ππ (π¦), the probability mass function of π, while the column sums give ππ (π₯), the probability mass function of π. 1 2 3 4 5 Y ππ (π = π) X 1 2 3 1/5 1/10 1/15 0 1/10 1/15 0 0 1/15 0 0 0 0 0 0 1/5 1/5 1/5 4 1/20 1/20 1/20 1/20 0 1/5 πππ (π=π,π=π) b) We have that ππ|π (π = π|π = π) = ππ (π=π) 5 1/25 1/25 1/25 1/25 1/25 1/5 = 1 5π 1 ∑5π=π 5π ππ (π = π) 0.46 0.26 0.16 0.09 0.04 = 1 π 1 ∑5π=π π = π∗∑5 1 π=π π −1 . The construction of this PMF follows from the definition of conditional distributions. c) No, because the distribution of π depends on the value of π. Question #41: The joint density function of X and Y is given by πππ (π₯, π¦) = π₯π −π₯(π¦+1) whenever (π₯, π¦) ∈ (0, ∞) × (0, ∞) and πππ (π₯, π¦) = 0 otherwise. (a) Find the conditional density of π, given π = π¦, and that of π, given π = π₯. (b) Find the density function of π = ππ. a) We have that ππ|π (π₯|π¦) = that ππ|π (π¦|π₯) = πππ (π₯,π¦) ππ (π₯) = πππ (π₯,π¦) = π₯π −π₯(π¦+1) ∞ ππ (π¦) ∫0 π₯π −π₯(π¦+1) ππ₯ π₯π −π₯(π¦+1) ∞ ∫0 π₯π −π₯(π¦+1) ππ¦ = (π¦ + 1)2 π₯π −π₯(π¦+1) for π₯ > 0 and = π₯π −π₯π¦ for π¦ > 0. ∞ π b) We calculate the CDF of π as πΉπ (π) = πΉππ (π) = π(ππ ≤ π) = ∫0 ∫0π₯ π₯π −π₯(π¦+1) ππ¦ππ₯ = π π 1 − π −π , and then differentiate to obtain ππ πΉπ (π) = ππ (1 − π −π ), which implies that the density is given by ππ (π) = π −π for π > 0. (Or use the CDF technique.) Question #52: Let π and π denote the coordinates of a point uniformly chosen in the circle 1 of radius 1 centered at the origin. That is, their joint density is πππ (π₯, π¦) = π whenever we have π₯ 2 + π¦ 2 ≤ 1 and πππ (π₯, π¦) = 0 otherwise. Find the joint density function of the polar 1 π coordinates π = (π 2 + π 2 )2 and Θ = π‘ππ−1 (π). ο· We have πππ (π₯, π¦) and wish to find ππ Θ (π, π), where the random variables π and π have been transformed into π and Θ by the function π1 (π₯, π¦) = √π₯ 2 + π¦ 2 and the π¦ function π2 (π₯, π¦) = π‘ππ−1 (π₯ ). From the change of variables formula, we know that π₯ = ππππ (π) and π¦ = ππ ππ(π) so we are able to uniquely solve for π₯ and π¦ in terms of π and π. The next step is to compute the Jacobian for this transformation, which is ππ1 ππ₯ π½(π₯, π¦) = πππ‘ [ππ 2 ππ₯ π₯ π¦ √π₯ 2 +π¦2 √π₯ 2 +π¦ 2 −π¦ π₯ ππ1 ππ¦ ] ππ2 = πππ‘ [ π₯ 2 +π¦ 2 ππ¦ formula ππ1 π2 (π¦1 , π¦2 ) = ππ1 π2 (π₯1 , π₯2 ) ∗ 1 to find that ππ Θ (π, π) = π ∗ 1 1 π 1 ]=β―= 1 √π₯ 2 +π¦ 2 = π . We then use the π₯ 2 +π¦ 2 1 = ππ1 π2 (β1 (π¦1 , π¦2 ), β2 (π¦1 , π¦2 )) |π½(π₯1 ,π¦1 )| ∗ |π½(π₯ 1 1 ,π¦1 )| π = π whenever 0 ≤ π ≤ 1, 0 < π < 2π. Note that we πβ1 could also compute the Jacobian as π½(π, π) = ππ πππ‘ [πβ 2 ππ πβ1 ππ ] and ππ2 just add |π½(π, π)|. ππ 1 Question #55: X and Y have joint density function π(π₯, π¦) = π₯ 2 π¦ 2 when π₯ ≥ 1 and π¦ ≥ 1 (i.e. whenever (π₯, π¦) ∈ [1, ∞) × [1, ∞)) and π(π₯, π¦) = 0 otherwise. (a) Compute the joint density π function of π = ππ and π = π . (b) What are the marginal densities? a) We have πππ (π₯, π¦) and wish to find ππV (π’, π£), where the random variables π and π have been transformed into π and π by the function π1 (π₯, π¦) = π₯π¦ and the function π₯ π2 (π₯, π¦) = π¦. We can solve for π₯ and π¦ uniquely in terms of π’ and π£ and find that we ππ1 √π’ . √π£ ππ1 ππ₯ πππ‘ [ππ 2 ππ¦ ] ππ2 have π₯ = √π’√π£ and π¦ = by π½(π₯, π¦) = ππ₯ The next step is to compute the Jacobian, which is given π¦ = πππ‘ [ 1 π¦ ππ¦ π₯ − π¦2] = − π₯ find that joint density is ππV (π’, π£) = 2π₯ =− π¦ 1 2√π’√π£ √π’ √π£ 1 2 2 √π’ (√π’√π£) ( ) √π£ √π’ 1 = −2π£. We can then 1 1 ∗ |−2π£| = π’2 ∗ 2π£ = 2π£π’2 whenever 1 √π’√π¦ ≥ 1 and √π£ ≥ 1 which reduces to π’ ≥ 1 and π’ < π£ < π’. ∞ π’ b) We have that ππ (π’) = ∫−∞ ππV (π’, π£) ππ£ = ∫1 ∞ ∞ ππ (π£) = ∫−∞ ππV (π’, π£) ππ’ = ∫π£ ∞ 1 2 π’ 2π£π’ 1 1 ππ£ = ln(π’) π’2 whenever π’ ≥ 1 and that ππ’ = 2π£ 2 for π£ > 1 and similarly for π£ < 1 we 2π£π’2 ∞ have ππ (π£) = ∫−∞ ππV (π’, π£) ππ’ = ∫1 1 2 2 2π£π’ 1 ππ’ = 2. Question #56: If π and π are independent and identically distributed uniform random variables on (0, 1), compute the joint density functions of each of the following random π π π variables (a) π = π + π and π = π ; (b) π = π and π = π ; (c) π = π + π and π = π+π. a) We have ππ (π₯) = 1 and ππ (π¦) = 1 if π₯, π¦ ∈ (0,1) and zero otherwise. The independence of π and π implies that their joint probability density function is πππ (π₯, π¦) = ππ (π₯)ππ (π¦) = 1 if 0 < π₯ < 1 and 0 < π¦ < 1. The transformations are then π₯ π’ π’ = π₯ + π¦ and π£ = π¦, so π¦ = π’ − π₯ = π’ − π£π¦ implying that π¦ = 1+π£ and that π₯ = π£π¦ = ππ₯ π’π£ 1+π£ . This allows to find π½ = πππ‘ [ππ’ ππ¦ ππ’ π’(1+π£) − (1+π£)3 = π’ − (1+π£)2, π£ ππ₯ ππ£ ] ππ¦ = 1+π£ πππ‘ [ 1 1+π£ ππ£ π’ (1+π£)2 −π’ ] (1+π£)2 π’π£ π’π£ π’ = − (1+π£)3 − (1+π£)3 = π’ π’ so we can calculate πππ (π’, π£) = πππ (1+π£ , 1+π£) |π½| = (1+π£)2. To find π’π£ the bounds, we have 0 < π₯ < 1 so 0 < 1+π£ < 1 → 0 < π’π£ < 1 + π£ → 0 < π£ < π’ 1+π£ π£ and 0 < π¦ < 1 so 0 < 1+π£ < 1 → 0 < π’ < 1 + π£. π₯ π₯ π’ b) We have π’ = π₯ so π₯ = π’ and π£ = π¦ so π¦ = π£ = π£ , which allows us to calculate the ππ₯ Jacobian as π½ = πππ‘ [ππ’ ππ¦ ππ’ π’ ππ₯ ππ£ ] ππ¦ 1 = πππ‘ [ 1 π£ ππ£ 0 −π’] π£2 π’ = − π£2 . We then have that πππ (π’, π£) = π’ πππ (π’, π£ ) |π½| = π£2 if 0 < π₯ < 1 → 0 < π’ < 1 and 0 < π¦ < 1 → 0 < π’ π£ < 1 → 0 < π’ < π£. π’ Combining the bounds gives us that πππ (π’, π£) = π£2 whenever 0 < π’ < π£ < 1. π₯ c) We have π’ = π₯ + π¦ and π£ = π₯+π¦ so π₯ = π£(π₯ + π¦) = π’π£ and π¦ = π’ − π₯ = π’ − π’π£ = ππ₯ π’(1 − π£), which implies that the Jacobian is π½ = πππ‘ [ππ’ ππ¦ ππ’ ππ₯ ππ£ ] ππ¦ = πππ‘ [ π£ 1−π£ π’ ]= −π’ ππ£ −π’π£ − π’(1 − π£) = −π’π£ − π’ + π’π£ = −π’. Thus, πππ (π’, π£) = πππ (π’π£, π’(1 − π£))|π½| = π’ 1 whenever we have that the bounds are 0 < π₯ < 1 → 0 < π’π£ < 1 → 0 < π£ < π’ and 1 0 < π¦ < 1 → 0 < π’(1 − π£) < 1 → 0 < π’ < 1−π£.