Another proof of Fibonacci sequence in classic probability puzzle
Recently Scientific American reported that Fibonacci sequence makes an unexpected appearance in the solution to the following problem:
If I have n sticks with random lengths between 0 and 1, what is the probability that no three of those sticks can form a triangle?
The answer to this puzzle is
P(n)=i=1∏nFi1=11⋅11⋅21⋅31⋯Fn1
where Fi is the i-th Fibonacci number. This is the arxiv link for the paper which contains a proof of it. Someone posted a novel proof of this puzzle which is more linear algebraic in nature. I made a small modification on top of this proof which is what I present here. Most of the credit to this proof goes to the Reddit user.
0. Outline of the proof
Here is the overall idea:
Sort the lengths li from shortest to longest.
The vector of sorted lengths can be shown to be a linear combination of a certain basis.
Once we get this basis, we use it express the longest length ln in terms of it.
Finally we use the condition that longest length≤1 to get a simplex.
These steps are implemented below:
1. Steps 1 and 2 - Expressing sorted stick lengths as a matrix-vector product
We do this for two cases - the case where the lengths can not form a triangle and the general case (the lengths may or may not form a triangle).
1.1 Lengths which cannot form a triangle
Given the shortest length is l1=ε1, we have that l2=l1+ε2. Note that l3 has to be bigger than l1+l2=2l1+ε2. We can assume that l3=2l1+ε2+ε3. Using the same argument, the next three lengths can be written down as:
l4l5l6ln=3l1+2ε2+1ε3+1ε4=5l1+3ε2+2ε3+1ε4+1ε5=8l1+5ε2+3ε3+2ε4+1ε5+1ε6⋮=Fibonacci coefficients on the gapsFnl1+Fn−1ε2+Fn−2ε3+⋯+F1εn
Thus the vector of sorted lengths can be written down as:
Written out for n=6, with one color per Fibonacci number (1, 2, 3, 5, 8), every entry is visible at once:
l1l2l3l4l5l6=each color runs down a diagonal:the same F moves one row downas it moves one column right112358011235001123000112000011000001gaps≥0ε1ε2ε3ε4ε5ε6
The general entry is
Mij=⎩⎨⎧Fi−j+10j≤ij>i
1.2 Any arbitrary vector of lengths
This case is much simpler. As before, start with l1=ε1. Then since l2≥l1, we have that l2=l1+ε2 and so on. For sake of completion, the remaining lengths look something like:
l3l4ln=l1+ε2+ε3=l1+ε2+ε3+ε4⋮=every coefficient is now 1l1+ε2+ε3+⋯+εn
In this case, the vector of sorted lengths can be written down as:
l1l2l3l4l5l6=every Fibonacci coefficientis replaced by 1111111011111001111000111000011000001gaps≥0ε1ε2ε3ε4ε5ε6
The general entry is
Mij=⎩⎨⎧10j≤ij>i
2. Step 3 - largest length in each case
2.1 First case
In this case, the largest length is
ln=i=1∑nFiyi
for positive coefficients yi.
2.2 Second case
In this case, the largest length is
ln=i=1∑nxi
for positive coefficients xi: the same sum with every Fi replaced by 1.
3. Step 4 - obtain simplexes for each case
Since these lengths are sampled from the interval [0,1], they have to be less than or equal to one. Applying this condition to each of the largest lengths above we get:
i) ∑i=1nFiyi≤1: the points that satisfy this condition form a volume V1. This is the volume of the simplex spanned by the origin and the vectors
standard basis vector ei shrunk by FiFi1ei
for i from 1 to n.
ii) ∑i=1nxi≤1: this is the standard simplex and has a volume V2 of 1/n!. The exact volume is not needed for the proof though.
4. Final step
The probability is given by V2V1. How do we find V1 in terms of V2? By defining a map yi=xi/Fi. It is easy to see that the determinant of the Jacobian of this map is
∣J∣=detF11F21⋱Fn1=i=1∏nFi1
since the map only rescales each axis. Thus the volume V1=∣J∣V2, and this gives us the probability to be: