(1) Get the data for the dependent and independent variable in column format.
(2) Type in the data, either in comma separated or space separated format.
x data (comma or space separated)
y data (comma or space separated)
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:
Based on the above table, the following is calculated:
"SS_{xx}=\\displaystyle\\sum_{i=1}^nx_i^2-{1\\over n}\\bigg(\\displaystyle\\sum_{i=1}^nx_i\\bigg)^2"
"SS_{yy}=\\displaystyle\\sum_{i=1}^ny_i^2-{1\\over n}\\bigg(\\displaystyle\\sum_{i=1}^ny_i\\bigg)^2"
"SS_{xy}=\\displaystyle\\sum_{i=1}^nx_iy_i-{1\\over n}\\bigg(\\displaystyle\\sum_{i=1}^nx_i\\bigg)\\bigg(\\displaystyle\\sum_{i=1}^ny_i\\bigg)"
Therefore, based on the above calculations, the regression coefficients (the slope "m," and the y-intercept "n") are obtained as follows:
"n=\\bar{y}-m\\cdot\\bar{x}"
Therefore, we find that the regression equation is:
The linear relationship between two variables is negative when one increases as the other decreases. For example, as values of x get larger values of y get smaller. This is also known as an indirect relationship.
How regression line touches to Y-axis?
Point "(0, n)"
Comments
Leave a comment