Skip to content

about changing order of Choleski factorization and inverse operation of a matrix

2 messages · Jie, Nordlund, Dan (DSHS/RDA)

#
This is not an R question, it is a question about your understanding of matrix algebra.  Just because

   L'L == B'B

does not mean that L must equal B.  You have your own counter-example. Just take your calculated L and B matrices and compute

   t(L) %*% L

and

  t(B) %*% B

or

all.equal((t(L) %*% L ) , (t(B) %*% B))


Hope this is helpful,

Dan

Daniel J. Nordlund
Washington State Department of Social and Health Services
Planning, Performance, and Accountability
Research and Data Analysis Division
Olympia, WA 98504-5204