Question

In: Statistics and Probability

There are 2 white balls, 9 black balls and 29 green balls in a box. We...

There are 2 white balls, 9 black balls and 29 green balls in a box. We draw a ball twice, without replacement. Let X and Y denote the number of white and black balls, respectively, among the drawn. Calculate Cov(X,Y).

Solutions

Expert Solution

Total number of balls = 2 + 9 + 29 = 40

First we determine the joint pmf of X,Y.

If X = 0, Y = 0 it implies both balls are green balls and the probability of this can be derived if we divide the number of ways of choosing 2 green balls out of 29 of them = 29C2 = 29! / (2!27!) = 406 by the total number of ways of choosing two balls out of 40 = 40C2 = 40! / (2!38!) = 780

So p(X = 0,Y = 0) = 406/780

If X = 1, Y = 0 it implies one ball is white and other is green and the probability of this can be derived if we divide the number of ways of choosing one ball white and other green = 2C1 x 29C1 = 2 x 29 = 58 by the total number of ways of choosing two balls out of 40 = 40C2 = 40! / (2!38!) = 780

So p(X = 1,Y = 0) = 58/780

If X = 0, Y = 1 it implies one ball is black and other is green and the probability of this can be derived if we divide the number of ways of choosing one ball black and other green = 9C1 x 29C1 = 9 x 29 = 261 by the total number of ways of choosing two balls out of 40 = 40C2 = 40! / (2!38!) = 780

So p(X = 0,Y = 1) = 261/780

If X = 1, Y = 1 it implies one ball is black and other is white and the probability of this can be derived if we divide the number of ways of choosing one ball black and other white = 9C1 x 2C1 = 9 x 2 = 18 by the total number of ways of choosing two balls out of 40 = 40C2 = 40! / (2!38!) = 780

So p(X = 1,Y = 1) = 18/780

If X = 2, Y = 0 it implies both balls are white and the probability of this can be derived if we divide the number of ways of choosing two balls white = 2C2 = 1 by the total number of ways of choosing two balls out of 40 = 40C2 = 40! / (2!38!) = 780

So p(X = 2,Y = 0) = 1/780

If X = 0, Y = 2 it implies both balls are black and the probability of this can be derived if we divide the number of ways of choosing two balls black = 9C2 = 36 by the total number of ways of choosing two balls out of 40 = 40C2 = 40! / (2!38!) = 780

So p(X = 0,Y = 2) = 36/780

Rest all cases have zero probability as X + Y <=2 always by the given conditions as it represents the number of white + black balls amongst 2 balls.

So,

E(XY) = (0*0)*p(X = 0,Y = 0) + (1*0)*p(X = 1,Y = 0) + (0*1)*p(X = 0,Y = 1) + (1*1)*p(X = 1,Y = 1) + (2*0)*p(X = 2,Y = 0) + (0*2)*p(X = 0,Y = 2) = (1*1)*p(X = 1,Y = 1) = 18/780

Now by law of total probabilities:

p(X = 0) = p(X = 0,Y = 0) + p(X = 0,Y = 1) + p(X = 0,Y = 2) = 406/780 + 261/780 + 36/780 = 703/780

p(X = 1) = p(X = 1,Y = 0) + p(X = 1,Y = 1) = 58/780 + 18/780 = /780

p(X = 2) = p(X = 2,Y = 0) = 1/780

So,

E(X) = 0*p(X = 0) +  1*p(X = 1) +  2*p(X = 2) = 76/780 + 2/780 = 78/780

p(Y = 0) = p(X = 0,Y = 0) + p(X = 1,Y = 0) + p(X = 2,Y = 0) = 406/780 + 58/780 + 1/780 = 465/780

p(Y = 1) = p(X = 0,Y = 1) + p(X = 1,Y = 1) = 261/780 + 18/780 = 279/780

p(Y = 2) = p(X = 0,Y = 2) = 36/780

So,

E(Y) = 0*p(Y = 0) +  1*p(Y = 1) +  2*p(Y = 2) = 279/780 + 72/780 = 351/780

So Cov(X,Y) = E(XY) - E(X)E(Y) = 18/780 - ((78/780)*(351/780)) = -0.02192307692

Thank you! Please rate positively if satisfied!


Related Solutions

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?
Suppose 2 boxes: - Box #1 contains: + 5 Black balls. + 6 White balls. -...
Suppose 2 boxes: - Box #1 contains: + 5 Black balls. + 6 White balls. - Box #2 contains: + 8 Black balls. + 4 White balls. - Two balls are drawn from Box #2 and placed into Box #1. - A ball is drawn from Box #1. 1- What is the probability that the ball drawn from Box #1 is White? 2- Suppose that the ball drawn from Box #1 is White, then what is the probability that at...
Suppose 2 boxes: - Box #1 contains: + 5 Black balls. + 6 White balls. -...
Suppose 2 boxes: - Box #1 contains: + 5 Black balls. + 6 White balls. - Box #2 contains: + 8 Black balls. + 4 White balls. - Two balls are drawn from Box #2 and placed into Box #1. - A ball is drawn from Box #1. 1- What is the probability that the ball drawn from Box #1 is White? 2- Suppose that the ball drawn from Box #1 is White, then what is the probability that at...
There are 2 boxes. The first box contains 2 white and 5 black balls. The second...
There are 2 boxes. The first box contains 2 white and 5 black balls. The second box contains 4 white and 7 black balls. A random box is chosen and from it a random ball is drawn. a) What is the probability that the ball is white? b) If the ball is known to be white, what is the probability that it came from the 1st box?
A box contains 2 ?red, 3 white and 3 green balls. Two balls are drawn out...
A box contains 2 ?red, 3 white and 3 green balls. Two balls are drawn out of the box in succession without replacement. What is the probability that both balls are the same? color?
Following are three boxes containing balls. Box #1 contains 2 black balls and 1 white ball....
Following are three boxes containing balls. Box #1 contains 2 black balls and 1 white ball. Box #2 contains 2 black balls and 2 white balls. Box #3 contains 1 black ball and 2 white ball. Draw a ball from Box 1 and place it in Box 2. Then draw a ball from Box 2 and place it in Box 3. Finally draw a ball from Box 3 . What is the possibility that the last ball drawn, from Box...
1). Given a container with 6 white balls and 9 black balls, if 4 balls are...
1). Given a container with 6 white balls and 9 black balls, if 4 balls are chosen randomly, what is the probability that exactly two are white? 2). Given a container with 6 white balls and 9 black balls, if 4 balls are chosen randomly, and one of the chosen balls is black, what is the probability that exactly two are white?
A box contains three white balls, two black balls, and one red ball. Three balls are...
A box contains three white balls, two black balls, and one red ball. Three balls are drawn at random without replacement. Let Y1 be the number of white balls drawn, and Y2 the number of black balls drawn. Find the distribution of Z = Y1 × Y2
Two balls are chosen randomly from a box containing 8 white, 4 red, and 2 green...
Two balls are chosen randomly from a box containing 8 white, 4 red, and 2 green balls to see if you will win any money. Suppose that you win $2 for each red ball selected, you lose $1 for each blue ball selected, and you get nothing for each green ball selected. What is the probability that you will not lose any money?
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?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT