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
Statistics & Math
Data Scientist
Meta
November 29, 2026
Data Scientist
Technical Screen
Statistics & Math
Medium

0

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
Geometric probability
Triangle inequality
Uniform distribution
Monte Carlo simulation
How to Approach This
  1. Define your hypotheses (H0 and H1) clearly before performing any test.
  2. Calculate required sample size BEFORE running an experiment, using power analysis.
  3. Remember the Central Limit Theorem: sample means become approximately normal with large n.
  4. Watch for Simpson's paradox. Always segment data by key dimensions.
  5. 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 Questions
Sample Answer
Clarify

Break points U,VU, V are iid Uniform(0,1). The pieces are min⁡(U,V)\min(U,V), ∣U−V∣|U - V| and 1−max⁡(U,V)1 - \max(U,V). 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 ≥1/2\ge 1/2 is at least the sum of the other two. So compute the area of the region in the unit squ...


Submit Your Answer
Markdown supported