least square method While investigating the correlation between variables
Figure
1
where a0, and a1 indicate any
real numbers. To establish the fitted equation, the values of a0, a1 and k
need to be determined via subtracting the calculated value Then calculate the quadratic sum of m
把(式1)代入(式2)中,如式 3:
Find the partial derivatives for a0
and a1 respectively through function
Derivation:
Derivation:
Obtain the solutions for a0 and a1 as well as the correlation coefficient. It is observed that the closer the correlation coefficient R is to 1, the better the model fits.
In (Equation 10), m is the
sample size, that is, the number of experiments; xi and yi are the values of any set
of experiments x and y, respectively. |