Broken sticks puzzle, and a seemingly paradoxical ratio
This is a neat little problem that is an extension of a puzzle from the Richard Wiseman’s blog.
The puzzle
A warehouse contains thousands of sticks, each 1 meter long. One day a bored worker breaks each of the sticks in two, with each of the breaks happening at a random position along each stick. (random here means “uniform distribution”)
There are three questions:
(1) What is the average length of the shorter pieces?
(2) What is the average length of the longer pieces?
(3) What is the average ratio of the length of the shorter piece to the longer piece?
I will give a hint that questions (1) and (2) are easier to solve. It is much harder to solve (3) but it is quite an interesting answer.
Can you figure it out? Answer below
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
How to solve them
The first two questions can either be solved by considering symmetry, or they can be solved using calculus.
One might think the third question follows as a simple division from questions 1 and 2. This is not true! The average ratio is NOT the ratio of the averages! I’ll explain why below.
Answer to (1)
By definition, the smaller piece will be less than half the length (0.5 meters).
The smaller sticks, therefore, will range in length from almost 0 m up to a maximum of 0.5 meters, with each length equally possible.
Thus, the average length will be about 0.25 meters, or about a quarter of the stick.
A more rigorous way of solving this, though less intuitive, is to set up an expectation and solve.
Suppose the stick is broken at point x, meaning the two pieces will be of length x and 1 – x.
We can denote the shorter piece by the formula min(x, 1 – x).
Now we can solve for the average value by setting up an integral that ranges from 0 to 1.
I love doing integrals myself, but from time to time I get bored and would rather not make a math error. So this time I’ll just input the equation into Wolfram Alpha which magically churns out a solution:

Fun stuff: the output of 1/4 exactly matches what we got before!
Answer to (2)
If the average of the smaller piece is 0.25, then it would only make sense the average of the larger piece is 0.75. But let’s go through the reasoning to be sure.
By definition, the larger piece will be more than half the length (0.5 meters).
The larger sticks, therefore, will range in length from 0.5 meters to almost the entire stick of 1 meter, with each length equally possible.
Thus, the average length will be about 0.75 meters, or about three-quarters of the stick.
Again, a more rigorous approach can be taken.
Suppose the stick is broken at x, yielding pieces of length x and 1 – x.
The larger piece can be denoted by the formula max(x, 1 – x).
An integral ranging from 0 to 1 will get the average, and Wolfram Alpha is again helpful:

This verifies that 0.75 meters is the correct length.
Answer to (3)
This is the most interesting piece of the puzzle.
If the smaller pieces average 0.25 meters, and the larger pieces average 0.75 meters, then wouldn’t the ratio of the lengths be the division? That is, shouldn’t the answer be 1/3 = 0.25 / 0.75 ?
The surprising result is no! The average ratio is not equal to the ratio of the averages.
This can be demonstrated by direct calculation.
If the stick is broken at point x, then the ratio of the shorter to the longer piece will depend on the value of x. When x is between 0 and 0.5, then the ratio is x / (1 – x). When x is between 0.5 and 1, the ratio will be the reciprocal (1 -x / x.
Again, Wolfram Alpha can compute the integral quickly:

The average ratio is not 1/3, but it is rather a bit higher at 0.386.
You can compute the integral by hand to find the exact answer is 2 ln(2) – 1, where “ln” denote the natural logarithm.
This itself is a rather surprising result: Euler’s constant e comes out of nowhere!
It is seemingly paradoxical that the average ratio (shorter / longer) is not the ratio of the average of shorter to longer pieces.
The answer lies in the distribution of the ratio. Notice the chart for the ratio bows toward the center, or in other words, the peak at 0.5 seems a little “fat.”
The ratio of the shorter to longer piece is slightly skewed toward the value of 0.5, and that is why the average is slightly higher at 0.386 instead of 0.333.
I admit that I missed this puzzle the first time I tried to solve it. Did you figure it out on your first try?
Bonus question: what is the average ratio of the longer piece to the shorter piece?
Share this post:
Previous post: Why repeating a digit may improve security on your iPhone’s 4-digit lockscreen PIN
Next post: The Wallet Paradox





Pingback: Tweets that mention Broken sticks puzzle, and a seemingly paradoxical ratio - Mind Your Decisions -- Topsy.com
Pingback: Information Overload 2011-02-06 « citizen428.blog()
Pingback: Matrix67: My Blog » Blog Archive » è¶£é¢˜ï¼šéšæœºæŠ˜æ–的木棒
Pingback: 16 ways WolframAlpha can help you manage money - Mind Your Decisions