A stick of length is cut at two random points, which leaves three pieces. Sometimes the pieces can be joined end to end to make a triangle, and sometimes one piece is too long for the other two to reach around. How often does a triangle come out? This page finds the exact chance when the two cut points are chosen independently and uniformly along the stick. The triangle condition becomes a region in a square of possible cut positions, and the area of that region, one quarter, is the probability.
Key terms
Broken stick problem
Definition The broken stick problem asks for the probability that three pieces of a stick can be the sides of a triangle. In the version here, a stick of length is cut at two points and , measured from its left end. The two points are independent, and each has the uniform distribution on the interval from to . The cuts produce three pieces, and a triangle with positive area can be built from them exactly when every piece is shorter than . The probability of this is
The answer belongs to this way of cutting, and a different procedure is a different experiment. For example, if the stick is cut once at a uniform point and the longer of the two pieces is then cut at a uniform point along it, the probability is . If instead a fair coin decides which of the two pieces gets the second cut, the probability is half of that, about , because cutting the shorter piece leaves the longer one whole and too long. So the words “break a stick at random” do not fix an answer until they say how the cuts are chosen.
In plain words Two random cuts often leave one piece that is at least half the stick, and then the other two pieces together are too short to reach around it. That happens three times in four, so over many tries only about one stick in four gives a triangle.
Example Cuts at and give pieces of lengths , and , all shorter than , so they form a triangle. Cuts at and also fall on opposite sides of the midpoint, but they give pieces , and , and the middle piece is too long. The order of the cuts does not matter, so a first cut at and a second at give the same three pieces as cuts at and .
Triangle inequality
Definition The triangle inequality says that in every triangle each side is shorter than the sum of the other two. For side lengths , and ,
Conversely, three positive lengths that satisfy all three strict inequalities are the side lengths of a triangle with positive area. It is enough to check the longest length, because the other two inequalities then hold automatically. If the longest length equals the sum of the other two, the three segments can only lie flat along one line, which is called a degenerate triangle and has area . For any three points , and , the same idea reads , with equality exactly when lies on the segment from to . When three lengths add up to and is the longest, the other two add up to , so the condition becomes .
In plain words Two sides of a triangle must be long enough together to reach around the third. If the longest piece is half the stick or more, the other two together are no longer than it, and they can only lie flat against it.
Example The lengths , and fail, since exactly, and the two short pieces lie flat along the long one. The lengths , and work, since the longest, , is less than . Both sets add up to , and the rule about halves agrees. Every piece of the second set is shorter than , while the longest piece of the first set equals .
Uniform distribution
Definition A random number has the uniform distribution on the interval when, for all numbers and with ,
the length of the interval. Intervals of equal length are equally likely, and a single value such as has probability , so including or leaving out endpoints changes nothing. Two random numbers and are independent when, for any intervals and , the probability that lies in and lies in is the product of the two separate probabilities. For independent and , each uniform on , the probability that the point lands in a rectangle inside the unit square is the area of the rectangle, and the same holds for every region of the square that has an area.
In plain words A uniform cut is equally likely to land in any stretch of the stick of a given length, wherever that stretch is. Independence means that the first cut tells you nothing about where the second one lands.
Example Both cuts land at or below with probability , and then the right piece has length at least , so no triangle forms. The uniform assumption matters. If each cut were instead uniform on the middle half of the stick, from to , the two cuts could never be more than apart. Apart from cases of probability , a triangle would then form exactly when the cuts fall on opposite sides of the midpoint, which has probability , not .
Probability as area
Definition Suppose a random point is uniformly distributed in a region of the plane with finite positive area, which means that regions of equal area inside are equally likely to contain it. Then the probability that it lands in a region inside is
For two independent cuts, each uniform on , the point is uniform in the unit square, which has area , so every probability about the cuts is an area. A line or a single point has area , so events such as or a piece of length exactly have probability .
In plain words Draw every possible pair of cuts as a point in a square. The pairs that give a triangle fill part of the square, and the share of the square they fill is the probability.
Example Take the half of the square where , so the pieces are , and . All three are shorter than exactly when
On the stick these say that the left cut comes before the midpoint, the right cut comes after it, and the two cuts are less than half the stick apart. Together they cut out the right triangle with corners , and . Both of its legs have length , so its area is . Swapping the names of the two cuts gives a matching triangle in the half where , so the whole success region has area , and the probability is . Sorting the cuts first and working only in the half where is the same experiment drawn differently, and then the denominator is the area of that half,
Counting only one of the two triangles while dividing by the area of the whole square gives the wrong answer .
Check yourself
- The cuts land at and . Can the three pieces form a triangle? Would the answer to the puzzle change if cases like this one were counted as successes?
Show the answer
The pieces have lengths , and . The longest piece equals the sum of the other two, since , so the pieces can only lie flat along a line. They give a degenerate triangle with area , not a genuine triangle, because the condition that every piece is shorter than is strict.
Counting such cases as successes would not change the probability. A piece of length exactly happens only on the lines , and in the square, and lines have area . The probability stays exactly either way, but the geometry still says these pieces do not make a triangle.
- Make the rule stricter. What is the probability that all three pieces are shorter than ?
Show the answer
In the half of the square where , the conditions become , and . The lines and meet at , so the region is the right triangle with corners , and . Both legs have length , so its area is . The mirror triangle in the other half doubles this, so
The same steps for any bound with give legs of length and probability . This equals at , as in the puzzle, and at , since three pieces that add up to cannot all be shorter than .
- Change the procedure. Cut the stick once, and suppose the cut lands at . Then cut the longer piece, of length , at a point chosen uniformly along it. What is the chance that the three pieces form a triangle? What is the chance if a fair coin decides which of the two pieces gets the second cut?
Show the answer
Let the second cut split the longer piece into lengths and , where is uniform between and . The piece of length is already shorter than , so a triangle needs and , which means . That interval has length out of , so the chance is
If the coin picks the short piece instead, the piece of length stays whole and no triangle is possible. With a fair coin the chance is .
The value here is a coincidence of this first cut. For a first cut at a point with , the same reasoning gives the chance under the longer piece rule, and averaging over a uniform first cut gives , not .