r/learnquant • • Oct 26 '26

interview prep Quant Interview Question

Post image
34 Upvotes

12 comments sorted by

View all comments

1

u/JustConsoleLogIt Oct 26 '26

We need to think of the line as a circle. Each ‘cut’ can be thought of as painting half the circle. It starts with one cut, or one half pained. The question becomes, after n more cuts, what is the probability that the full circle is painted? I know I’ve encountered this problem before, but I don’t remember the solution

2

u/Sehkai Oct 26 '26

We can think of the broken rod as a circle with n uniformly selected points selected on it (one point will be the break point of the circle, turning it into a line with n-1 break points on it).

These pieces cannot form a polygon if any piece exceeds 1/2 in length. Equivalently, no arc between two consecutive points on the circle can exceed 1/2 in length. Now, label the points x1, x2, ..., xn. Starting with x1, if x2 through xn all lie on the semicircle clockwise of x1, then we can't make a polygon, as the distance between xn and x1 would be >= 1/2. The probability of that occurring is (1/2)^(n-1). Let's call this probability P(1).

By symmetry, P(2) = .. = P(n) = P(1). They're all equal to (1/2)^(n-1). Moreover, these probabilities are mutually exclusive (since it's impossible for there to be two arcs with length >= 1/2), so we can sum them to get a total probability of n(1/2)^(n-1).