You break a chocolate bar of length 1 into 3 pieces, by independently and randomly choosing two points on the bar. Then you calculate the product of the lengths of these 3 pieces.
If the expected value of this product can be expressed as q p , where p and q are coprime positive integers, what is p + q ?
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 be X and Y the two random variables representing the points on the unit bar. If we choose X first and than Y , we'll have that
0 ≤ X ≤ 1
0 ≤ Y ≤ x .
It's easy to see that the P D F function is 2 , since
P ( Ω ) = ∫ 0 1 ∫ 0 x 2 d y d x = 1
Let's define Z = Y ( X − Y ) ( 1 − X ) to be the random variable expressing the product of the three bar pieces. Hence,
E ( Z ) = ∫ 0 1 ∫ 0 x 2 y ( x − y ) ( 1 − x ) d y d x = 6 0 1
Eventually
p + q = 6 1
First, suppose that the chocolate can be cut at N distinct points and that the two points that the chocolate is cut are N a and N a + b where 0 ≤ a ≤ a + b ≤ N .
Then, the chocolate is cut into three lengths: N a , N b , and N N − a − b = 1 − N a − N b . Their product is N a N b ( 1 − N a − N b ) .
We know that 0 ≤ a ≤ N and 0 ≤ b ≤ N − a . Using this, we can sum the products of lengths for all possible pairs a , b : a = 0 ∑ N b = 0 ∑ N − a N a N b ( 1 − N a − N b ) . To get the expected value, this must be divided by the total number of values summed: 2 N ( N + 1 ) .
Find the value as N approaches infinity: N → ∞ lim N ( N + 1 ) 2 a = 0 ∑ N b = 0 ∑ N − a N a N b ( 1 − N a − N b ) .
Using the rules for limits to infinity, the denominator can be replaced by N 2 .
So, we have N → ∞ lim N 2 2 a = 0 ∑ N b = 0 ∑ N − a N a N b ( 1 − N a − N b ) .
Substitute x = N a and y = N b . Each of the increments are by one, so d x = d y = N 1 . Then, switch to integral notation.
Thus, we have ∫ 0 1 ∫ 0 1 − x 2 x y ( 1 − x − y ) d y d x .
Evaluating this integral gives us 6 0 1 .
The final answer is 1 + 6 0 = 6 1 .
Why the total number of value summed is not N(N-1)/2?
Problem Loading...
Note Loading...
Set Loading...
What'd the answer be for two pieces? Well, let the cut occur at point x . Clearly every x ϵ ( 0 , 1 ) is equally likely, and for each x the desired product will be x ( 1 − x ) . Then the expected value of the product is just the average value of the function x ( 1 − x ) over ( 0 , 1 ) , which is
∫ 0 1 x ( 1 − x ) d x = 6 1
So, onto the problem. Let the first cut be at point x . The second cut has probability x to be within the first interval, ( 0 , x ) . In this case the expected product of the three pieces will be:
6 1 x 2 ( 1 − x )
because the two pieces within ( 0 , x ) have, by the case with the two pieces, an expected product of 6 1 scaled by x each = 6 1 x 2 , and the third piece has length ( 1 − x ) .
If the second cut is in ( x , 1 ) , which occurs with probability 1 − x , analogically the product is expected to be:
6 1 x ( 1 − x ) 2
Combining these results, the expected value of the product of the 3 pieces is:
6 1 ∫ 0 1 x 3 ( 1 − x ) + x ( 1 − x ) 3 d x = 6 0 1
Making the answer 1 + 6 0 = 6 1 .