不懂矩阵代数(Matrix algebra)到底能不能做统计? 附R代码!
A <- matrix(c(5, 10), ncol = 1)
A

B <- diag(c(5, 10))
B

I <- diag(c(1, 1, 1))
I

t(A)

A + A + A

A - A

A * 10

B %*% A

det(B)

solve(B)


2024-06-30 10:55
A <- matrix(c(5, 10), ncol = 1)
A
B <- diag(c(5, 10))
B
I <- diag(c(1, 1, 1))
I
t(A)
A + A + A
A - A
A * 10
B %*% A
det(B)
solve(B)