Sparse matrix in OLS , sparse matrix transpose and multiply
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Nooshin Mahmoodi
am 9 Dez. 2018
Bearbeitet: Bruno Luong
am 11 Dez. 2018
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?
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
Bruno Luong
am 9 Dez. 2018
B = Y/X
2 Kommentare
Bruno Luong
am 11 Dez. 2018
Bearbeitet: Bruno Luong
am 11 Dez. 2018
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.
Siehe auch
Kategorien
Mehr zu Sparse Matrices finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!