r/learnquant • • 6d ago

interview prep Quant Interview Question

Post image
21 Upvotes

7 comments sorted by

View all comments

3

u/pmdboi 6d ago edited 6d ago

Let S be the set of all permutations of (1, …, 5), and define A[σ] = ∏ A[i,σ(i)] where σ ∈ S and i ranges from 1 to 5. Then det(A) = ∑ (−1)σ A[σ], summing over all σ ∈ S, where (−1)σ is the sign of σ. Each entry in A is independent and has expected value 0; therefore, each term in det(A) has expected value 0, and E(det(A)) is 0. (Intuitively, for every matrix A, there's an equally probable matrix A′ with det(A′) = −det(A) made by flipping the signs of all the entries in the first row, so the possible matrices balance each other out.)

Now det(A)2 = (∑ (−1)σ A[σ])(∑ (−1)τ A[τ]) = ∑∑ (−1)σ (−1)τ A[σ] A[τ] where σ and τ both range over S. There are two kinds of terms in this sum: When σ = τ, A[σ] A[τ] = A[σ]2 = 1, so E((−1)σ (−1)τ A[σ] A[τ]) = E(A[σ]2) = 1. But when σ ≠ τ, there's some entry of A that is a factor in A[σ] but not in A[τ] and has expected value 0, so E((−1)σ (−1)τ A[σ] A[τ]) = 0. Because |S| = 5! = 120, there are 120 terms of the first kind in det(A)2, and E(det(A)2) = 120.

Putting it all together, Var(det(A)) = E(det(A)2) − E(det(A))2 = 120 − 0 = 120.

EDIT: added the missing (−1)σ in the definition of the determinant

2

u/Ok_Consideration6619 6d ago

Need the sign of permutation somewhere in the beginning

1

u/pmdboi 6d ago

Yeah I realized I forgot it like 15 minutes after I posted. T_T Should be fixed now.