Simulator
Definition 
The attached demo allows you to make a least-squares adjustment of a line.
ID:(8081, 0)
Straight
Description 
Variables
Calculations
Calculations
Equations
Examples
To adjust data
you must calculate the values
| $\sum_i (y_i-ax_i-b)^2 = min$ |
be a minimum.
(ID 6890)
If it is derived
| $\sum_i (y_i-ax_i-b)^2 = min$ |
with respect to
where
If the operation is repeated for
with
The solution of the equations leads to the slope being
| $a=\displaystyle\frac{NS_{xy}-S_xS_y}{NS_{xx}-S_x^2}$ |
(ID 6891)
If it is derived
| $\sum_i (y_i-ax_i-b)^2 = min$ |
with respect to
where
that in the case that
If the operation is repeated for
with
The solution of the equations leads to the constant being
| $ b =\displaystyle\frac{ S_{x2} S_y - S_x S_{xy}}{ N S_{x2} - S_x ^2}$ |
(ID 6892)
The regression is calculated based on which
| $\sum_i (y_i-ax_i-b)^2 = min$ |
be a minimum. If the square is developed and the root of this value is divided by the mean value, a measure of the mean deviation of the regression is obtained:
| $ \epsilon =\displaystyle\frac{(( N S_{x2} - S_x ^2) S_{y2} - S_{x2} S_y ^2+2 S_x S_{xy} S_y - N S_{xy} ^2}{ N ( N S_{x2} - S_x ^2)}$ |
(ID 9441)
The attached demo allows you to make a least-squares adjustment of a line.
(ID 8081)
ID:(614, 0)
