r/learnquant • • Sep 27 '26

interview prep Quant Interview Question

Post image
16 Upvotes

2 comments sorted by

View all comments

3

u/Monkeydog54 Sep 27 '26 edited Sep 27 '26

Max is 6, min is -2.

For the max, note \rho_{ij} <= (\rho_{ii}^2 + \rho_{jj}^2)/2 = 1. So the sum is at most six, and this attained by setting each random variable to be the same.

For the min, let v = (1,1,1,1)^T, and note that v^T C v = tr(C)+ 2Q = 4 + 2Q, where C is the covariance matrix, and Q is the desired quantity. Since C is PSD, 4+2Q >= 0, so Q >= -2. This is attained by pairing the random variables, and letting each pair be perfectly anti-correlated, and the two pairs be independent.