Regression: Finding the equation of the line of best fit

Least square method: The least square method is to find the estimate of minimizing the sum of square of residual, since . Expanding yields . Note: For two matrices A and B, and . Similar to the procedure in finding the minimum of a function in calculus, the least square estimate b can be found by solving the equation based on the first ... ................
................