Linear Regression with Matrix Decomposition Methods

Add regression line using coefficients in lm() results

Still remember the first time I learned we can perform linear regression using matrix decomposition techniques like QR decomposition. Totally mind blown. Clearly had no clue that was possible. This is a fun post on performing linear regression using QR decomposition, Cholesky decomposition and Singular Value Decomposition (SVD) using #rstats. No theory behind it, just… Continue reading Linear Regression with Matrix Decomposition Methods