LinearModelFit

WMA link


LinearModelFit[m, f, x]

fits a linear model f in the variables x to the dataset m.

LeastSquares
LinearSolve