Simple linear regression:
Known data sets There is only one self-variable x with a variable y. And x and y satisfy a linear relationship.
For these questions,we are trying to fit the following equation:
Simultaneously make in the above equation,It can be seen from this that determining w and b is the most important issue among them.
In the regression task, we use mean squared error as a measure of performance, so we need to determine how much the mean squared error can be minimized when w and b are equal to:
In the regression task, we use mean square error as a measure of performance, so we need to find the minimum mean square error when w and b are equal. This model based on minimizing mean square error is called the "least squares method", where the formula for mean square error corresponds exactly to the Euclidean distance. The purpose of this algorithm is to try to find a line that minimizes the sum of Euclidean distance lines for the sample points.
The process of solving w and b is actually finding a function
The process of minimization is called the least squares Parameter Estimation of minimum linear regression.
Based on the knowledge of advanced mathematics, we can know that for a multivariate function to find its maximum value, it is to take the partial derivative of the parameter and make it 0,then set the partial derivatives to 0 separately, and finally solve for w and b:
This is the result we need to seek.