Chapter #4 – Discrete Random Variables Question #1: Two balls are chosen randomly from an urn with 8 white, 4 black and 2 orange balls. Suppose that we win $2 for each black ball selected and we lose $1 for each white ball selected (nothing happens with the orange balls). Let X denote our winnings. What are the possible values of X, and what are the probabilities associated with each value? ο· There are 14 total balls in the urn. The possible values are π = {−2, −1,0,1,2,4}, which are computed from the six unique combinations of balls that can be drawn. For example, two white balls will yield –$2 while one black and one white ball will yield winnings of $1. The following are the desired probabilities. o π(π = −2) = o π(π = −1) = πΆ(8,2) πΆ(14,2) πΆ(2,1)∗πΆ(8,1) πΆ(14,2) πΆ(2,2) o π(π = 0) = πΆ(14,2) o π(π = 1) = o π(π = 2) = πΆ(8,1)∗πΆ(4,1) πΆ(14,2) πΆ(2,1)∗πΆ(4,1) πΆ(14,2) πΆ(4,2) o π(π = 4) = πΆ(14,2) (white + white) (orange + white) (orange + orange) (white + black) (orange + black) (black + black) Question #5: Let X represent the difference between the number of heads and the number of tails obtained when a coin is tossed n times. What are the possible values of X? ο· Let π denotes the number of heads and π denotes the number of tails when a coin is tossed π times. Since π + π = π, we have π = π − π or π = π − π. Therefore, we can see that π = π − π = π − (π − π) = 2π − π for π = 0,1, … , π. In other words, the possible values for the random variable are π = {−π, 2 − π, 4 − π, … , π}. Question #6: In Problem 5, for π = 3, if the coin is assumed fair, what are the probabilities associated with the values that X can take on? ο· We see that π = {−3, −1,1,3}. After listing the outcomes, the following are the desired probabilities for the four values of the random variables. o π(π = −3) = 1/8 o π(π = −1) = 3/8 o π(π = 1) = 3/8 o π(π = 3) = 1/8 Question #13: A salesman has scheduled two appointments to sell encyclopedias. His first appointment will lead to a sale with probability .3, and his second will lead independently to a sale with probability .6. Any sale made is equally likely to be either for the deluxe model, which costs $1000, or the standard model, which costs $500. Determine the probability mass function of X, the total dollar value of all sales. ο· If we let ∅ denote the event of no sale, π denote a standard sale and π· denote a deluxe sale, then the sample space π = {∅∅, ∅π, ∅π·, ππ, π∅, ππ·, π·π·, π·∅, π·π} while the random variable π assigns the following real numbers to these outcomes: o π(∅∅) = 0 o π(∅π) = π(π∅) = 500 o π(∅π·) = π(π·∅) = π(ππ) = 1000 o π(ππ·) = π(π·π) = 1500 o π(π·π·) = 2000 ο· If we recall that π(π πππ 1) = 0.3, π(π πππ 2) = 0.6 and π(π π πππ) = π(π· π πππ) = 0.5, the probabilities to include in the probability mass function are calculated as follows. o π(π = 0) = (1 − 0.3)(1 − 0.6) = (0.7)(0.4) o π(π = 500) = (0.7)(0.6)(0.5) + (0.3)(0.5)(0.4) o π(π = 1000) = (0.7)(0.6)(0.5) + (0.3)(0.5)(0.4) + (0.3)(0.5)(0.6)(0.5) o π(π = 1500) = (0.3)(0.5)(0.6)(0.5) + (0.3)(0.5)(0.6)(0.5) o π(π = 2000) = (0.3)(0.5)(0.6)(0.5) Question #21: Four buses carrying 148 students from the same school arrive at a football stadium. The buses carry, respectively, 40, 33, 25, and 50 students. One of the students is randomly selected. Let π denote the number of students that were on the bus carrying the randomly selected student. One of the 4 bus drivers is also randomly selected. Let π denote the number of students on her bus. (a) Which of πΈ[π] or πΈ[π] do you think is larger? Why? (b) Compute πΈ[π] and πΈ[π] in this experiment. a) In the first sampling method, we draw one of 148 students at random. Naturally, the probability of choosing a student from the fullest bus is higher than the probability of drawing a student from the other buses. Thus, the fuller buses are weighted higher than the other buses, so we would expect πΈ(π) to be larger. In the second method, one of the four bus drivers is randomly selected. Each bus driver is equally likely to be chosen! Each bus is weighted the same in this came, therefore, πΈ(π) < πΈ(π). Equality holds when each bus contains the same number of students. 40 33 25 50 b) πΈ[π] = 40 ∗ 148 + 33 ∗ 148 + 25 ∗ 148 + 50 ∗ 148 = 39.28 1 1 1 1 πΈ[π] = 40 ∗ + 33 ∗ + 25 ∗ + 50 ∗ = 37 4 4 4 4 Question #22: Suppose that two teams play a series of games that ends when one of them has won π games. Suppose that each game played is, independently, won by team A with probability π. Find the expected number of games that are played when we have (a) π = 2 and (b) π = 3. Also, show in both cases that this number is maximized when π = 1/2. a) Let π denote the number of games played. When π = 2, the random variable π can be either 2 (one teams wins both) or 3 (the teams split the first two games and winner of the third wins the game). Therefore, we can compute the expected value of π as follows: πΈ[π] = 2[(2−1 )π2 + (2−1 )(1 − π)2 ] + 3[(3−1 )π2 (1 − π) + (3−1 )π(1 − π)2 ] = 2−1 2−1 2−1 2−1 −2π2 + 2π + 2. To find where the expected value is maximized, we differentiate and π 1 set equal to zero to solve for the probability π: ππ πΈ[π] = −4π + 2 = 0 → π = 2 (this π2 is a maximum since the second derivative is negative, ππ2 πΈ[π] = −4 < 0). b) When π = 3, the random variable π can be either 3, 4 or 5. We thus calculate as follows πΈ[π] = 3[(3−1 )π3 + (3−1 )(1 − π)3 ] + 4[(4−1 )π3 (1 − π) + (4−1 )π(1 − π)3 ] + 3−1 3−1 3−1 3−1 5[(5−1 )π3 (1 − π)2 + (5−1 )π2 (1 − π)3 ] = 6π4 − 12π3 + 3π2 + 3π + 3. Then we see 3−1 3−1 that π ππ 1 πΈ[π] = 24π3 − 36π2 + 6π + 3 = 0 → π = 2. Question #36: Consider Problem 22 above with π = 2. Find the variance of the number of games played, and show that this number is maximized when π = 1/2. ο· πππ(π) = πΈ[π 2 ] − [πΈ(π)]2 = {22 [π2 + (1 − π)2 ] + 32 [2π2 (1 − π) + 2π(1 − π)2 ]} − {−2π2 + 2π + 2}2 = −4π4 + 8π3 − 6π2 + 2π. We then calculate the derivative to optimize: π ππ 1 πππ(π) = −16π3 + 24π2 − 12π + 2 = 0 → π = . 2 Question #26: One of the numbers 1 through 10 is randomly chosen. You are to try to guess the number chosen by asking questions with “yes–no” answers. Compute the expected number of questions you will need to ask in each of the following two cases: (a) Your ith question is to be “is it i?” for π = 1, 2, 3, 4, 5, 6, 7, 8, 9, 10. (b) With each question you try to eliminate one half of the remaining numbers, as nearly as possible. 1 a) Let π be the number of questions asked. It then follows that π(π = π) = 10 for all π. 1 1 1 This, we have that πΈ(π) = 1 ∗ 10 + 2 ∗ 10 + β― + 10 ∗ 10 = 5.5. b) Consider the following strategy: divide what you have in halves and ask, “is it greater than or equal to π₯?” where π₯ is the middle of the numbers. For instance, your first question is, “is it greater than or equal to 5.5?”. (All other strategies of this type are similar. But you need to be consistent.) Let π denote the random number, so that 1 π(π = π) = 10 for all π. If π = {1,2,3,6,7,8}, then π = 3 and if π = {4,5,9,10}, then we see that π = 4. Therefore, we have the following results: ο· π(π = 3) = π(π = 1) + π(π = 2) + β― + π(π = 8) = 0.6 ο· π(π = 4) = π(π = 4) + π(π = 5) + β― + π(π = 10) = 0.4 ο· πΈ[π] = 3(0.6) + 4(0.4) = 3.4. Question #41: A man claims to have extrasensory perception. As a test, a fair coin is flipped 10 times and the man is asked to predict the outcome in advance. He gets 7 out of 10 correct. What is the probability that he would have done at least this well if he had no ESP? ο· 1 If we let π be the number of correct guesses, then we see π~π΅πΌπ(10, 2). The probability that he would have done at least as well as seven correct guess is thus 1 7 1 3 1 10 1 0 given by π(π ≥ 7) = (10 ) (2) (2) + β― + (10 ) (2) 7 10 1 π 1 10−π 10 (2) = ∑10 π=7( π ) (2) (2) . Question #46: Suppose that it takes at least 9 votes from a 12-member jury to convict a defendant. Suppose also that the probability that a juror votes a guilty person innocent is 0.2, whereas the probability that the juror votes an innocent person guilty is 0.1. If each juror acts independently and if 65% of the defendants are guilty, find the probability that the jury renders a correct decision. What percentage of defendants is convicted? ο· Let the events be ππΌ (vote innocent), ππΊ (vote guilty), πΊ (guilty) and πΌ (innocent), so we are given π(ππΌ |πΊ) = 0.2, π(ππΊ |πΌ) = 0.1, π(πΊ) = 0.65 and π(πΌ) = 0.35. Thus, if πΆ is conviction, what we want to calculate is π(πΆ) = π(πΆ|πΊ)π(πΊ) + π(πΆ|πΌ)π(πΌ), where 12 π 12−π o π(πΆ|πΊ) = ∑12 ≈ 0.79 π=9( π )(0.8) (0.2) o π(πΊ) = 0.65 o π(πΌ) = 0.35 12 π 12−π o π(πΆ|πΌ) = ∑12 ≈ 0.00000017 π=9( π )(0.1) (0.9) ο· This, the answer is π(πΆ) = (0.79)(0.65) + (0.00000017)(0.35) ≈ 0.5165. Question #56: How many people are needed so that the probability that at least one of them has the same birthday as you is greater than 1/2? ο· The number of people in a random collection of size π that have the same birthday as π yourself is approximately Poisson distributed with mean π = 365. Hence, the probability that at least one person has the same birthday as you is approximately equal to 1 − π(ππππ) = 1 − π −π π0 0! π π 1 = 1 − π −π = 1 − π −365 . Since π −π₯ = 2 when we 1 π have π₯ = ππ(2), we have 1 − π −365 ≥ 2 when 365 ≥ ππ(2) so π ≥ 365 ∗ ππ(2) = 253. Question #71: Consider a roulette wheel consisting of 38 numbers 1 through 36, 0 and double 0. If Smith always bets that the outcome will be one of the numbers 1 through 12, what is the probability that (a) Smith will lose his first 5 bets, (b) his first win will occur on his fourth bet? 26 5 a) (38) = 0.15 26 3 12 b) (38) (38) = 0.10 Question #82: A purchaser of transistors buys them in lots of 20. It is his policy to randomly inspect 4 components from a lot and to accept the lot only if all 4 are nondefective. If each component in a lot is, independently, defective with probability 0.1, what proportion of lots is rejected by the purchaser? ο· π(ππππππ‘) = π(ππ‘ ππππ π‘ πππ ππππππ‘ππ£π) = 1 − π(ππ ππππππ‘ππ£π) = 1 − (0.9)4 ≈ 0.3.