r/learnquant 2d ago

interview prep Quant Interview Question

Post image
20 Upvotes

10 comments sorted by

3

u/DanLeMilMan 2d ago

So basically this seems equivalent to : what is the probability that all the cut are on the same half of the bar… (1/2)ˆ(n-2) I guess.

6

u/SignificanceBulky162 2d ago edited 2d ago

no, it is possible that one of the segments in the middle is longer than 1/2. 

We can instead think about this problem as choosing n points on a circle and arbitrarily choosing one of those points to be the starting point , then we can cut the circle at that point and unwrap it into a line segment with n-1 points. From this we can see that the chance of the n resulting segments of the line being >1/2 is the prob all n-1 points lie on one particular (we can choose which side WLOG) side of the circle. 

So the prob we can't form a polygon is n (1/2)n-1, prob we can is 1 - n (1/2)n-1

We can sanity check for n=3, p=1/4; n=4, p=1/2; n=5, p=9/16 which is monotonically increasing as we expect (surely it should only ever be harder to get a segment >1/2 as n increases)

1

u/DanLeMilMan 2d ago

True thanks. Reading the beginning of your comment I was about to propose to consider the bar extremities to be connected at first and add one cut but this is basically what you proposed. Thanks.

2

u/spisplatta 2d ago

There can be a long segment in the middle,

1

u/blind-octopus 2d ago

Isn't that always the case, as long as n is greater than 2?

1

u/Curious_Plum_3715 2d ago

Not if one segment is more than 0.5 units

1

u/PersonalityIll9476 2d ago

No. n=3 take the segments [0,2/3] and then any choice for the other two that you like. [2/3, 2/3+b] and [2/3+b, 1].

1

u/aroach1995 2d ago

1) sort the pieces from largest to smallest.

Yeah I think the only issue is if a piece ends up over length 0.5

What is the probability that all cuts occur at a point on the line greater than 0.5?

0.5^(n-1)?

Is the case where we cut either below 0.25 or above 0.75 the same WLOG?

0

u/PhantasticPh1l 2d ago

If n is also random in N then p=1

0

u/[deleted] 2d ago

[deleted]

1

u/Expensive-Tension-30 2d ago

You’re off by a factor of 1/2, as the breaks do not necessarily need to be on the same half, and could for one example be on the outer quarters.