Assignment #5: Matrix Algebra in R






 1.) det(A) works because "A" which is 10x10 is a square so when det(A) is returned it is 0 meaning it is singular. That is why solve(A) does not work, it cannot invert a singular matrix. A zero determinant means the matrix is singular, so it does not have an inverse. 

2.) Operations on B fail because "B" is 10x100, which is not a square, and determinants and inverses are defined by square matrices, hence why it did not work. A matrix has an inverse if two things are true its a square where it has the same rows and columns and its determinant is ≠ 0

3.) Since A has no inverse and B is not a square, both can still be used in a matrix multiplication with "%%". In numeric stability, if a determinant is close to 0 which is an example of A from solve() it can be unreliable due to rounding error.

Comments

Popular posts from this blog

Module #3 Assignment #3 Analyzing 2016 data "Poll" Data in R

Module #2 Assignment Importing Dara Function Evaluation in R