Regression using Linear Algebra (for univariate inputs)
Regression aims to find the best fit of a function from a set of given data points. Suppose we want to fit data points to , where is a function of .
We have data points
Vandermonde Matrix
A Vandermonde Matrix is defined as such. It describes a polynomial function of degree . #Vandermonde_Matrix
can be re-expressed as
where
To solve for , typically does not have an inverse as . However, we can multiply the Vandermonde matrix by its transpose, thus "squaring" it, which allows us to solve for its inverse.