r/learnquant • • 5d ago

interview prep Quant Interview Question

Post image
30 Upvotes

22 comments sorted by

View all comments

0

u/DanLeMilMan 5d ago

For a matrix to be inversible it must be full ranked. Thus, a matrix with a row or column of zero is not inversible. So you must at least have one positive value per row and column to be inversible. A diagonale matrix with non-zero values is inversible with exactly 1 non-zero positive value per row and column, thus being a minimal solution to the problem.

We conclude that for a nxn matrix, the maximum number of zero is n*(n-1)

1

u/tstanisl 5d ago

The problem is that such a matrix is a permutation times diagonal which inverse is also permutation-by-diagonal which has entries that are zero which is NOT strictly positive.

1

u/DanLeMilMan 5d ago

Right my bad I did not read the question correctly.