Question

In: Statistics and Probability

Use R to tackle the following problem . A box initially contains 8 blue balls and...

Use R to tackle the following problem

. A box initially contains 8 blue balls and 4 red balls. Terry closes his eyes and randomly picks a ball and then follows the following procedure: if it is a blue ball, he puts the blue ball back in, and also adds another blue ball; if it is a red ball, then he removes the red ball from the bin and in addition, removes another red ball. Suppose you did not see what Terry did and close your eyes and pick a ball at random and it is red; then what is the probability that Terry picked a blue ball?

Solutions

Expert Solution

Prob (Blue) = 8/12 = 0.667

Prob (red) = 4/12 =0.333

Prob (red | blue) = 4/(12+1) = 0.307692 (As another blue ball will be added by Terry)

Prob (red | red) = 2/ (12-2) = 0.2 (As Terry will remove two red balls if red is picked)

Prob (red picked by you) = P(red | blue) * Prob (Blue) + Prob (red | red) * Prob (red)

= 0.307692*0.6667 + 0.2*0.3333

= 0.20513 + 0.06667 = 0.2718

So using Baye's formula

Probability (blue | red) = (Prob (Blue) * Prob (Red | Blue))/ Prob (Red)

= (0.6667 * 0.307692) / 0.2718 = 0.7547

So the updated probability that Terry picked a blue ball if you pick a red ball at random is 75.47%.

Hope this is clear.


Related Solutions

A box contains 8 red balls, 4 green balls, and 3 blue balls. You pull 2...
A box contains 8 red balls, 4 green balls, and 3 blue balls. You pull 2 balls from the box (one at a time) WITHOUT replacement. **LEAVE ALL ANSWERS AS FRACTIONS** Find the probability of the following: a.) P(Red on 1st ball AND Red on 2nd ball) = b.) P(Green on 1st ball AND Red on 2nd ball) = c.) P(Blue on 1st ball AND Green on 2nd ball) = d.) What is the probability of drawing 2 green balls...
3. A box contains 5 red balls, 3 blue balls and 1 black balls. Take two...
3. A box contains 5 red balls, 3 blue balls and 1 black balls. Take two balls out randomly. Let X be number of red balls and Y be the number of black balls. (1) Find the joint distribution of (X, Y ). (2) Find P(X = 1|Y = 1).
An urn contains 6 red balls, 7 white balls, and 8 blue balls. a) If three...
An urn contains 6 red balls, 7 white balls, and 8 blue balls. a) If three balls are sampled without replacement, find probability that all are different colors b) If three balls are sampled with replacement, find the probability that are different colors. c) i n balls sampled with replacement, find probability that all are red. d) If nballs sampled with replacement, find the probability that all are the same color.
Assume that a bag initially contains 6 balls: 2 red, 2 green and 2 blue balls....
Assume that a bag initially contains 6 balls: 2 red, 2 green and 2 blue balls. At each step, you choose a ball from the bag at random, note its color, but do not put it back into the bag. Instead, you add to the bag two balls, which are of of two different colors, and different in color from the color of the removed ball. (For example, if you choose a red ball in the first step, then after...
An urn contains colored balls;5 red balls, 8 green balls, and 10 blue balls. Suppose ...
An urn contains colored balls;5 red balls, 8 green balls, and 10 blue balls. Suppose  If the 3 balls are drawn one after another without replacement, what is the probability that the colors observed will be Red, Green, Blue in this order?  If the three balls are drawn simultaneously from the urn (without replacement), what is the probability that the selected balls will be all different?
Problem 1 A box A contains 5 white and 4 black balls; another box B contains...
Problem 1 A box A contains 5 white and 4 black balls; another box B contains 3 white balls and 5 black ones. 3 balls are transferred from box A to box B and one ball is taken from box B. What is the probability that it is white?
Box I contains 4 red and 8 blue marbles while box II contains 5 red and...
Box I contains 4 red and 8 blue marbles while box II contains 5 red and 3 blue marbles. An unfair coin is tossed – whose probability of turning up heads is 40%. If the coin comes up heads box I is chosen and a random marble is chosen, otherwise if it is tails the marble is chosen from box II. Suppose after the first marble is chosen – the experiment is repeated. Assume the first marble is NOT put...
Box 1 contains 3 red balls, 5 green balls and 2 white balls. Box 2 contains...
Box 1 contains 3 red balls, 5 green balls and 2 white balls. Box 2 contains 5 red balls, 3 green balls and 1 white ball. One ball of unknown color is transferred from Box 1 to Box 2. (a) What is the probability that a ball drawn at random from Box 2 is green? (b) What is the probability that a ball drawn from Box 1 is not white?
1).A box contains 20 balls. Five are blue, seven are red, and eight are black. Four...
1).A box contains 20 balls. Five are blue, seven are red, and eight are black. Four balls are selected at random and with replacement. Calculate the probability that fewer than two red balls are chosen. ANSWER: .5630 2. A company recently hired 50 employees. You are given: (a) Thirty employees are from Iowa; the remaining came from New York. (b) Of the employees who are from Iowa, 30% are males and the remaining are females. (c) Of the employees who...
a box contains two red balls , one white ball and one blue ball. A sample...
a box contains two red balls , one white ball and one blue ball. A sample of two balls was drawn randomly, respectively (without return), If the variable X express the number of white balls and the variable Y express the number of blue balls in the sample, find : A- Fxy(0,1) B- Coefficient of correlation between the two variables and then commented on it
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT