Triangle From a Stick Broken at Two Random Points
Last updated: November 29, 2026
Quick Overview
A stick of length 1 is broken at two points chosen independently and uniformly along its length. What is the probability that the three pieces can form a triangle?
Meta
November 29, 20260
0
0 solved
A stick of length 1 is broken at two points chosen independently and uniformly along its length. What is the probability that the three pieces can form a triangle?
A geometric probability classic used in Meta technical screens for data science and quant-leaning roles. The interviewer wants you to translate the triangle inequality into a region of the unit square and compute its area, then ideally sanity check by simulation.
What the Interviewer Expects
- Translate the triangle inequality into 'every piece shorter than 1/2'
- Map the two break points to the unit square
- Compute the favorable area as 1/4
- Verify with a simulation
- Contrast with breaking one piece again sequentially
Key Topics to Cover
How to Approach This
- Define your hypotheses (H0 and H1) clearly before performing any test.
- Calculate required sample size BEFORE running an experiment, using power analysis.
- Remember the Central Limit Theorem: sample means become approximately normal with large n.
- Watch for Simpson's paradox. Always segment data by key dimensions.
- Distinguish between statistical significance and practical significance.
Possible Follow-up Questions
- What if you break the stick once, then break the longer piece at a random point?
- What is the expected length of the longest piece?
- What is the probability with n pieces forming a polygon?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Browse Statistics QuestionsSample Answer
Clarify
Break points are iid Uniform(0,1). The pieces are , and . We want the probability that they satisfy the triangle inequality....
Approach
Three lengths summing to 1 form a triangle exactly when each is less than 1/2, since a piece of length is at least the sum of the other two. So compute the area of the region in the unit squ...