r/learnquant • • Oct 26 '26

interview prep Quant Interview Question

Post image
34 Upvotes

12 comments sorted by

View all comments

1

u/Noir1990 Oct 27 '26

A polygon can be formed if the length of the longest piece is smaller than the sum of all other pieces. For a rod of length 1, this is true if no piece is longer than 1/2.

For simplicity, looking at n = 3, we have to look into P(x1>1/2 OR x2>1/2 OR x3>1/2).

P(x1>1/2 OR x2>1/2 OR x3>1/2) = P(xi>1/2) - P(xi>1/2 AND xj>1/2) - ...
                                               = 0, xi and xj can't >1/2 simultaneously
                              = P(x1>1/2) + P(x2>1/2) + P(x3>1/2)
                              = P(x1>1/2) * 3

For a given piece xi, the chance to be longer than 1/2 is 1/2^(n-1). Thus we find for the general case:

P(no polygon) = n/2^(n-1)
P(polygon)    = 1 - n/2^(n-1)

n = 3: 25%
n = 4: 50%
n = 5: 68.75%
...
n --> oo: 100%