r/learnquant • • 2d ago

interview prep Quant Interview Question

Post image
24 Upvotes

7 comments sorted by

1

u/Charm-___-Quark 1d ago

I think it's 5!. If you let A(n) be a random square matrix of order n with these properties then you can derive a recurrence relation of variance: var(det(A(n+1))) = (n+1) var(det(A(n)))

1

u/Sweet_Culture_8034 1d ago

var(det(A(n+1))) = (n+1) var(det(A(n)))

Can you give a little details about how you find this relation ?

1

u/Charm-___-Quark 1d ago

I basically calculated the variance of A(1) A(2) and A(3) by hand, and found a pattern. Then I used induction to prove it for all n. Essentially var(det(A(n))) = E(det(A(n))2) because E(det(A(n)) = 0. You can then expand the determinant along any row or column and then square it, now in the squared expression when you expand it and use linearity of sum and multiplication of expectations, you'll see the cross terms will vanish. And the like terms multiplied will survive.

1

u/Sweet_Culture_8034 1d ago

Thanks !

I didn't realise E(det(A(n)) = 0 right away so I thought the computation would be a lot harder. But it makes sense given the symmetry of the problem !

1

u/RohitG4869 2h ago

This is true, but you need to show that the determinants of submatrices upon deleting the first row and different columns are uncorrelated.

1

u/Cold-Knowledge-4295 1d ago

det(A) = Sum of 5 identical elements There is 5! of such elements (permutations), so Var(det(A)) = 5! Var(a1 a2 a3 a4 a5) where ai are iid.

Now my claim is that k = a1 a2 a3 a4 a5 is also +-1 with 0.5 probability, as for every +1 ocurrence there is a -1 ocurrence.

The variance of k is thus Var(k) = <k2> - <k>2 = <k2>. Since k2=1 and <k>=0, Var(k) = 1 and the answer is 5!

1

u/bartekltg 1d ago

Ai are iid, but i would explicitly mention that covariance (a1a2a3a4a5 b1b2b3b4b5) is 0 even when we have repetitions. 

BTW. Yep, the answer is 120, by the power of calculating 216 matrices (there was a small trick to not calculate all 225)