| Line 4: |
Line 4: |
| | | | |
| | ==Description== | | ==Description== |
| − | *This function is calculating the point where the line is intesecting y-axis using dependent and independent variables. | + | *This function is calculating the point where the line is intersecting y-axis using dependent and independent variables. |
| | *Using this function we can find the value of <math> y </math> when <math> x </math> is zero. | | *Using this function we can find the value of <math> y </math> when <math> x </math> is zero. |
| | *The intercept point is finding using simple linear regression. | | *The intercept point is finding using simple linear regression. |
| Line 10: |
Line 10: |
| | *Regression methods nearly to the simple ordinary least squares also exist. | | *Regression methods nearly to the simple ordinary least squares also exist. |
| | *i.e.,The Least Squares method relies on taking partial derivatives with respect to the slope and intercept which provides a solvable pair of equations called normal equations. | | *i.e.,The Least Squares method relies on taking partial derivatives with respect to the slope and intercept which provides a solvable pair of equations called normal equations. |
| − | *Suppose there are <math> n </math> data points <math> {y_{i}, x_{i}}</math>, <math>where i = 1, 2,...n</math> | + | *Suppose there are <math> n </math> data points <math> {y_{i}, x_{i}}</math>, where <math>i = 1, 2,...n</math> |
| | *To find the equation of the regression line:<math> a=\bar{y}-b.\bar{x}</math>. | | *To find the equation of the regression line:<math> a=\bar{y}-b.\bar{x}</math>. |
| | *This equation will give a "best" fit for the data points. | | *This equation will give a "best" fit for the data points. |