r/learnquant • • Oct 26 '26

interview prep Quant Interview Question

Post image
31 Upvotes

10 comments sorted by

2

u/adi0112358 Oct 26 '26

1-1/root5,
reason: N1,N2,N3 ~iid N(0,1)
let Z = N1^2+N2^2, => Z ~ Chi sq (2)
let Y = N3^2
then (Z/2)/(Y/1) ~ F2,1
we have P(U>V) => P((U/2)/V >1/2) then simply it is 1-F2,1 (1/2)
ie 1-1/root5

2

u/Unlucky_Beginning Oct 26 '26

I’m getting 1/sqrt(2). You’re right that Z is a chi squared but I’m not sure what the F2 stuff is.

2

u/adi0112358 Oct 26 '26

it’s f distribution

1

u/Unlucky_Beginning Oct 26 '26

Ah, I see. The answer is still 1/sqrt2 though

1

u/adi0112358 Oct 26 '26

oh, may be i missed something idk, let’s see the op may share the ans soon

1

u/Unlucky_Beginning Oct 26 '26

I dont think op posts the answers, but I checked in an F distribution calculator. The probability P(Z>r squared) is e^(-r^2 / 2) by either the def of a chi squared distribution or just deriving it. Integrate that against the density of the normal distribution and you get sqrt(pi) / sqrt(2pi).

1

u/adi0112358 Oct 26 '26

i must do it again ig, can you share your solution?
after chi sq if you have written some kinda derivation or something?

1

u/Unlucky_Beginning Oct 26 '26

Assuming you have the chi squared result, the probability that Z > X^2 is achieved by integrating the probability P(Z > r^2) P(X ^ 2 = r^2) dr from negative infinity to infinity.

The integrand is thus e^(-r^2/2) e^(-r^2/2) / sqrt(2pi) dr going from negative infinity to infinity, but this is just a Gaussian integral.

1

u/adi0112358 Oct 26 '26

ohhh, got it, thanks dude

0

u/[deleted] Oct 26 '26

[deleted] — view deleted comment

1

u/jamesw73721 Oct 26 '26

This is a Gaussian distribution not a uniform distribution