- Aug 10, 2001
- 10,420
- 2
- 0
Actually, I just want someone to check my work:
You have a bucket containing n red balls and m black balls. What's the expected number of red balls selected before a black ball is selected?
I let X1, X2, ..., Xn be equal to 1 if red ball "i" is selected before a black ball; 0 otherwise
then the number of red balls selected before a black ball is X = X1+X2+...+Xn
E(Xi) = P(Xi) = 1/(n+m) + (n-1)/(n+m)*1/(n+m-1) + (n-1)/(n+m)*(n-2)/(n+m-1)*1/(n+m-2) + ... + (n-1)/(n+m)*(n-2)/(n+m-2)*(n-3)/(n+m-2)...1/(m+2)*1/(m+1)
then E(X) = E(X1+X2+...+Xn) = E(X1)+E(X2)+E(X3)+...+E(Xn) = nE(Xi)
= n/(n+m) + n/(n+m)*(n-1)/(n+m-1) + ... + n/(n+m)*(n-1)/(n+m-1)*(n-2)/(n+m-1)...1/(m+1)
= sum of nCj/(n+m)Cj from j = 1 to n
I saw this same problem done elsewhere in a different way, but the answer didn't make any sense because it said that if you had 0 black balls, the expected value would be greater than the number of red balls.
			
			You have a bucket containing n red balls and m black balls. What's the expected number of red balls selected before a black ball is selected?
I let X1, X2, ..., Xn be equal to 1 if red ball "i" is selected before a black ball; 0 otherwise
then the number of red balls selected before a black ball is X = X1+X2+...+Xn
E(Xi) = P(Xi) = 1/(n+m) + (n-1)/(n+m)*1/(n+m-1) + (n-1)/(n+m)*(n-2)/(n+m-1)*1/(n+m-2) + ... + (n-1)/(n+m)*(n-2)/(n+m-2)*(n-3)/(n+m-2)...1/(m+2)*1/(m+1)
then E(X) = E(X1+X2+...+Xn) = E(X1)+E(X2)+E(X3)+...+E(Xn) = nE(Xi)
= n/(n+m) + n/(n+m)*(n-1)/(n+m-1) + ... + n/(n+m)*(n-1)/(n+m-1)*(n-2)/(n+m-1)...1/(m+1)
= sum of nCj/(n+m)Cj from j = 1 to n
I saw this same problem done elsewhere in a different way, but the answer didn't make any sense because it said that if you had 0 black balls, the expected value would be greater than the number of red balls.
 
				
		 
			 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		
 Facebook
Facebook Twitter
Twitter