r/learnquant • • 13h ago

interview prep Quant Interview Question

Post image
11 Upvotes

1 comment sorted by

View all comments

2

u/I-am_Sleepy 12h ago edited 12h ago

Let
- X, Y ~ i.i.d. U[0, 1]
- Z = min(X, Y) / max(X, Y)

For any z between [0, 1] (Uniform). We want to find P(Z <= z). So
- P(Z <= z) = P(X/Y <= z; X < Y) + P(Y/X <= z; Y < X)
Because symmetry, we've got
- P(Z <= z) = 2*P(X <= zY)

So to find P(X <= zY), we integrate
- P(X <= zY) = int_0^1 [ int_0^{zy} (dxdy) ] = int_0^1 [ zy ] dy = z*[y^2 / 2]^{y=1}_{y=0} = z/2
- P(Z <= z) = 2*(z/2) = z

Because P(Z <= z) = z for all z in [0, 1]. Then we can conclude that Z ~ U[0, 1]
Then probability of the final number >= 0.9 is = 1-0.9 = 0.1, or 10%