The least-squares regression method estimates the regression coefficients of the model that minimize the sum of the square error between the predicted and actual observations from a given set of data. In a matrix form, the estimated regression coefficients can be obtained using the transpose ð Þ0 and inverse ð 1Þ matrix functions as follows: