A bag contains a number of red and blue marbles. If you draw 5 marbles from this bag, with replacement, the probability of getting 3 reds and 2 blues is 32 times the probability of getting 1 red and 4 blues. What percentage of the marbles in the bag are red?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Let p be the probability of drawing a red marble.
In that case, 1 − p is the probability of drawing a blue marble.
The probability of drawing 3 red marbles and 2 blue marbles is ( 3 5 ) × p 3 × ( 1 − p ) 2 . ( 3 5 ) = 1 0 .
The probability of drawing 1 red marble and 4 blue marbles is 5 × p × ( 1 − p ) 4 .
Since the probability of drawing 3 red marbles and 2 blue marbles is 32 times the probability of drawing 1 red marble and 4 blue marbles, we can form the equation 1 0 p 3 ( 1 − p ) 2 = 3 2 × 5 p ( 1 − p ) 4 .
We need to solve for p. To do that, we can first divide both sides by 1 0 p ( 1 − p ) 2 , and get p 2 = 1 6 ( 1 − p ) 2 .
We then distribute the right side of the equation to get p 2 = 1 6 − 3 2 p + 1 6 p 2 .
Next, we subtract p 2 from both sides, to further simplify our equation to 0 = 1 5 p 2 − 3 2 p + 1 6 .
Finally, we can use the quadratic formula to solve for p: p = 2 ( 1 5 ) − ( − 3 2 ) ± ( − 3 2 ) 2 − 4 ( 1 5 ) ( 1 6 ) .
If we add ( − 3 2 ) 2 − 4 ( 1 5 ) ( 1 6 ) , p will be greater than one, so we can only subtract it, to achieve p = 0 . 8 . However, the answer needs to be written as a percentage, so we need to multiply p by 100, to get our final answer of 8 0 .
Edit: Brian Charlesworth mentioned a short-cut for solving for p. View the comments on this solution to see. Note: p cannot equal − 4 ( 1 − p ) as that would make p greater than one.
Nice problem and solution. One short-cut: we can write p 2 = 1 6 ( 1 − p ) 2 as
p 2 = ( 4 ( 1 − p ) ) 2 ⟹ p = 4 ( 1 − p ) ⟹ 5 p = 4 ⟹ p = 4 / 5 or 8 0 %.
Interpreter [ PercentFraction ] [ Select [ p /. Solve [ PDF [ BinomialDistribution [ 5 , p ] ] [ 3 ] = 3 2 PDF [ BinomialDistribution [ 5 , p ] ] [ 1 ] ] , 0 < # < 1 & ] [ [ 1 ] ] ] ⇒ 8 0 %.
The heart of the solution is the Solve function with the Binomial distribution parameterized by p and equating the probability of 3 red marbles to 32 times the probability of 1 red marble. The Select function removes the nonsense solutions for p as p has to be strictly between 0 and 1 and not equal to either 0 or 1 as both red and blue marbles may be drawn. The Interpreter function returns a function that converts the value from the Select function call, 5 4 to a textual 80%.
PDF [ BinomialDistribution [ 5 , 5 4 ] ] ⇒ Function [ x , { 3 1 2 5 4 x ( x 5 ) 0 0 ≤ x ≤ 5 True ]
In other words, the PDF function returns an anonymous function of one argument, the number of red marbles.
The anonymous functions returns 6 2 5 1 2 8 for 3 red marbles and 6 2 5 4 for 1 red marble when p is 5 4 .
The equation that Solve solves is 1 0 ( 1 − p ) 2 p 3 = = 1 6 0 ( 1 − p ) 4 p which simplifies to 1 5 p 4 − 4 7 p 3 + 4 8 p 2 − 1 6 p = 0 .
That solution is { p → 0 , p → 5 4 , p → 1 , p → 3 4 } . Zero and one can be eliminated for reasons given above. The fraction 3 4 can be eliminated as 0 ≤ p ≤ 1 for statistical reasons.The remaining solution is the answer.
Problem Loading...
Note Loading...
Set Loading...
Let x be the probability of drawing a red ball.
P(3R,2B)= (no. of ways to arrange 3R and 2B in order)( x 3 )( 1 − x ) 2
∴ , 3 ! ⋅ 2 ! 5 ! ⋅ x 3 ( 1 − x ) 2 = 3 2 ⋅ 1 ! 4 ! 5 ! ⋅ x ( 1 − x ) 4
Solving this equation will give you x = 0 . 8 .
Therefore, percentage of red balls in the bag = 80%