Inverse of a symmetric positive definite matrix | R Documentation |
Inverse of a symmetric positive definite matrix.
spdinv(A)
A |
A square positive definite matrix. |
After calculating the Cholesky decomposition of the matrix we use this upper triangular matrix to invert the original matrix.
The inverse of the input matrix.
Michail Tsagris
R implementation and documentation: Michail Tsagris <mtsagris@uoc.gr> and Manos Papadakis <papadakm95@gmail.com>.
http://econ.nsysu.edu.tw/ezfiles/124/1124/img/Chapter17_MaximumLikelihoodEstimation.pdf
cholesky, cova
s <- cova( as.matrix(iris[, 1:4]) )
res<-spdinv(s)
res<-solve(s)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.