In: Statistics and Probability
Draw the scatter diagram. Solve the type of relation that exists occurs between x/y. Figure out what the least squares regression line is.
x y
1 4.8
2 1.0
3 3.2
4 7.6
5 5.9
6 1.7
7 6.2
8 10.4
This is scatter plot obtained.
the relationship between X an Y seems to be positive hence
least squares regression is possible
The following data are passed:
X | Y |
1 | 4.8 |
2 | 1 |
3 | 3.2 |
4 | 7.6 |
5 | 5.9 |
6 | 1.7 |
7 | 6.2 |
8 | 10.4 |
The independent variable is X, and the dependent variable is Y. In order to compute the regression coefficients, the following table needs to be used
X | Y | X*Y | X2 | Y2 | |
1 | 4.8 | 4.8 | 1 | 23.04 | |
2 | 1 | 2 | 4 | 1 | |
3 | 3.2 | 9.6 | 9 | 10.24 | |
4 | 7.6 | 30.4 | 16 | 57.76 | |
5 | 5.9 | 29.5 | 25 | 34.81 | |
6 | 1.7 | 10.2 | 36 | 2.89 | |
7 | 6.2 | 43.4 | 49 | 38.44 | |
8 | 10.4 | 83.2 | 64 | 108.16 | |
Sum = | 36 | 40.8 | 213.1 | 204 | 276.34 |
Based on the above table, the following is calculated:
Therefore, based on the above calculations, the regression coefficients (the slope m, and the y-intercept n) are obtained as follows:
Therefore, we find that the regression equation is: