mljs / matrix

Matrix manipulation and computation library
https://mljs.github.io/matrix/
MIT License
352 stars 54 forks source link

QR Decomposition with column pivoting #125

Open ArniDagur opened 3 years ago

ArniDagur commented 3 years ago

My goal is to implement an equivalent to the LINEST function in excel. The goal is to calculate a mulitple linear regression for matrices that are potentially not full rank. My (limited) understanding is that this requires doing "column pivoting" in the implementation of QR decomposition. Does ml-matrix support this algorithm? Currently it seems that QrDecomposition.solve fails when the matrix is not full rank.

targos commented 3 years ago

It probably doesn't support this algorithm. Do you have a reference on this?

ArniDagur commented 3 years ago