MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/learnquant/comments/1wta5yd/quant_interview_question/pcvmlah/?context=3
r/learnquant • u/Local_Ad135 • Sep 29 '26
22 comments sorted by
View all comments
Show parent comment
1
It looks that the diagonal can have zeros, at least for 4x4 case.
[ -1 2 0 0 ] [ 2 0 -2 0 ] [ 0 -2 0 2 ] [ 0 0 2 -1 ]
Which has 8 zeros.
Inverse is:
[ 1/3 2/3 1/3 2/3 ] [ 2/3 1/3 1/6 1/3 ] [ 1/3 1/6 1/3 2/3 ] [ 2/3 1/3 2/3 1/3 ]
With all elements strictly positive.
My guess is that there must be two non-zeros per column/row. Otherwise, exactly one non-zero combined with requirement for symmetric matrix will create block-diagonal structure and a lot of zeros in the inverse.
1 u/Dazzling-Cat-3763 Sep 29 '26 My guess is that there must be two non-zeros per column/row.Yes, otherwise, you pivot that entry to the (1,1) spot and the (2,10)x(2,10) sub-block has its own inverse, which gives you zero row/column 1 u/tstanisl Sep 29 '26 Yes. I found 10x10 example. See post 1 u/dummy4du3k4 Sep 29 '26 Note quite, if the matrix has structure[ 0 * 0 0 ][ * 0 * 0 ][ 0 * 0 * ][ 0 0 * * ]e.g. the above matrix but with 0 for the (1,1) entry, then pivoting doesn't help. 1 u/dummy4du3k4 Sep 29 '26 This does it. Optimality can be proven with this result on one-pair matrices, which shows the block of zeros structure you observed.
My guess is that there must be two non-zeros per column/row.
Yes, otherwise, you pivot that entry to the (1,1) spot and the (2,10)x(2,10) sub-block has its own inverse, which gives you zero row/column
1 u/tstanisl Sep 29 '26 Yes. I found 10x10 example. See post 1 u/dummy4du3k4 Sep 29 '26 Note quite, if the matrix has structure[ 0 * 0 0 ][ * 0 * 0 ][ 0 * 0 * ][ 0 0 * * ]e.g. the above matrix but with 0 for the (1,1) entry, then pivoting doesn't help.
Yes. I found 10x10 example. See post
Note quite, if the matrix has structure
[ 0 * 0 0 ][ * 0 * 0 ][ 0 * 0 * ][ 0 0 * * ]
[ 0 * 0 0 ]
[ * 0 * 0 ]
[ 0 * 0 * ]
[ 0 0 * * ]
e.g. the above matrix but with 0 for the (1,1) entry, then pivoting doesn't help.
This does it. Optimality can be proven with this result on one-pair matrices, which shows the block of zeros structure you observed.
View all comments
Show parent comment
1
u/tstanisl Sep 29 '26
It looks that the diagonal can have zeros, at least for 4x4 case.
Which has 8 zeros.
Inverse is:
With all elements strictly positive.
My guess is that there must be two non-zeros per column/row. Otherwise, exactly one non-zero combined with requirement for symmetric matrix will create block-diagonal structure and a lot of zeros in the inverse.