Sparse matrix in OLS , sparse matrix transpose and multiply
이전 댓글 표시
I need to estimate B in this equation that u = error Y = B * X + u
the estimator of B = (inv (X '* X)) * (X' * Y)
X and Y are sparse matrix, how can I do it?
I use sparseinv instead of inv but I dint know how transpose it and maltiple them, Is there any one to know it?
채택된 답변
추가 답변 (1개)
Bruno Luong
2018년 12월 9일
B = Y/X
댓글 수: 2
Nooshin Mahmoodi
2018년 12월 11일
Bruno Luong
2018년 12월 11일
편집: Bruno Luong
2018년 12월 11일
B*X
must have 6 columns, and there is not B that can makes it becomes 1 column.
Unless if you ask to solve B for y = X*B then in this case
B = X\Y
Matrix multiplication must be expressed with correct order.
카테고리
도움말 센터 및 File Exchange에서 Sparse Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!