St · Statistics & Probability

What Is the Probability Three Random Segments Form a Triangle?

Published By the 9to5Science editorial team

At a glance

  1. 1. Choose two cuts

    Take two independent points uniformly at random from the unit interval and sort them.

  2. 2. Find the lengths

    The three segment lengths are the first cut, the gap between cuts, and the distance from the second cut to one.

  3. 3. Apply the triangle test

    Three positive lengths form a triangle exactly when each length is less than one-half.

  4. 4. Compute the probability

    The probability that any one length is at least one-half is three-quarters in total, leaving one-quarter.

Advertisement

Suppose you choose two points independently and uniformly from the unit interval, then cut at those points. The three resulting lengths add to 1. They form the sides of a nondegenerate triangle with probability 1/4.

The key is that a triangle can be formed exactly when its longest side is shorter than half the total length. The calculation then reduces to finding the chance that none of the three pieces is at least 1/21/2.

The triangle condition

Three positive lengths xx, yy, and zz form a triangle if and only if each is shorter than the sum of the other two. Since x+y+z=1x+y+z=1, the condition for xx is

x<y+z=1−x,x<y+z=1-x,

which is equivalent to x<1/2x<1/2. Applying the same argument to the other lengths gives the full condition:

max⁡(x,y,z)<12.\max(x,y,z)<\frac12.

If one piece is exactly half the stick, the three lengths make a degenerate, flat triangle rather than a proper triangle. This equality has probability zero for random continuous cut points, so using “less than” or “less than or equal to” does not change the probability.

Calculate the probability

Let the two cut points, after sorting, be U(1)U_{(1)} and U(2)U_{(2)}. The lengths are

X=U(1),Y=U(2)−U(1),Z=1−U(2).X=U_{(1)},\qquad Y=U_{(2)}-U_{(1)},\qquad Z=1-U_{(2)}.

These lengths are exchangeable: each has the same marginal distribution. For example, the chance that the first piece is at least half is

Pr⁡(X≥1/2)=Pr⁡(U(1)≥1/2)=Pr⁡(both cut points are in [1/2,1])=(12)2=14.\begin{aligned} \Pr(X\geq 1/2) &=\Pr(U_{(1)}\geq 1/2)\\ &=\Pr(\text{both cut points are in }[1/2,1])\\ &=\left(\frac12\right)^2\\ &=\frac14. \end{aligned}

The same probability, 1/41/4, applies to each of the other two pieces. These three events cannot overlap, except at boundary cases of probability zero: two pieces cannot both be at least half while the third has positive length. Therefore,

Pr⁡(some piece is at least 1/2)=3(14)=34.\Pr(\text{some piece is at least }1/2) =3\left(\frac14\right)=\frac34.

The pieces form a triangle when none is at least half, so

Pr⁡(triangle)=1−34=14.\boxed{\Pr(\text{triangle})=1-\frac34=\frac14.}

A geometric way to see the result

The length triples (X,Y,Z)(X,Y,Z) satisfy X+Y+Z=1X+Y+Z=1 and have nonnegative coordinates. They are uniformly distributed over a triangular region in the plane. The full region has area 1/21/2 when described using coordinates (X,Y)(X,Y), with Z=1−X−YZ=1-X-Y.

The outcomes that fail the triangle condition fall into three corner regions: X≥1/2X\geq 1/2, Y≥1/2Y\geq 1/2, or Z≥1/2Z\geq 1/2. Each has area 1/81/8, so their combined area is 3/83/8. The remaining area is 1/2−3/8=1/81/2-3/8=1/8. Dividing by the full area gives

1/81/2=14.\frac{1/8}{1/2}=\frac14.

This area argument is another expression of the same probability calculation: uniform cut points produce a uniform distribution over the possible length triples.

Worked example

Imagine the two cut points land at 0.180.18 and 0.630.63. The pieces have lengths

0.18,0.63−0.18=0.45,1−0.63=0.37.0.18,\qquad 0.63-0.18=0.45,\qquad 1-0.63=0.37.

The longest piece is 0.450.45, which is less than 0.500.50, so these pieces can form a triangle. For instance, the longest-side test is 0.45<0.18+0.37=0.550.45<0.18+0.37=0.55.

If instead the cuts land at 0.200.20 and 0.720.72, the pieces are 0.200.20, 0.520.52, and 0.280.28. The piece of length 0.520.52 is longer than the other two combined, so no triangle is possible.

Common mistakes

  • Checking only whether the cuts are distinct. Distinct cut points create three positive pieces, but some may still be too long to form a triangle.
  • Using the condition that every piece is less than one-third. Equal thirds are not required. A piece can be larger than one-third and still form a triangle, provided it is shorter than one-half.
  • Treating the three failure events as overlapping. Two pieces cannot both be at least half when all three lengths are positive, so their probabilities can be added directly.
  • Ignoring how the cuts are chosen. The answer assumes two independent uniform points on the original interval. A different cutting procedure—for example, choosing a location in one piece after the first cut—can produce a different distribution and probability.

The result is a classic example of geometric probability: a simple triangle condition becomes a region of possible segment lengths, and the desired probability is the fraction of that region that satisfies the condition.

References

  1. A First Course in Probability — Sheldon Ross

Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.