官术网_书友最值得收藏!

Linear regression

With linear regression, we model the relationship between the dependent variable, y, and an explanatory variable or independent variable, x. When there is one independent variable, it is called simple linear regression, and in the case of multiple independent variables, the regression is called multiple linear regression. The predictor function in the case of linear regression is a straight line (refer to figure 4 for an illustration). The regression line defines the relationship between x and y. When the value of y increases when x increases, there is a positive relationship between x and y. Similarly, when x and y are inversely proportional, there is a negative relationship between x and y. The line should be plotted on x and y dimensions to minimize the difference between the predicted value and the actual value, called prediction error.

In its simplest form, the linear regression equation is:

This is the equation of a straight line, where y is the value of dependent variable, a is the y intercept (the value of y where the regression line meets the y axis), and b is the slope of the line. Let's consider the least square method in which we can derive the regression line with minimum prediction error.

主站蜘蛛池模板: 任丘市| 金坛市| 黄陵县| 玉树县| 克拉玛依市| 辽源市| 金昌市| 炎陵县| 理塘县| 新民市| 封开县| 东至县| 乐业县| 邯郸市| 南陵县| 扶风县| 兴和县| 四川省| 民乐县| 双江| 东丰县| 如皋市| 大同市| 元谋县| 德庆县| 平邑县| 桑植县| 水富县| 当雄县| 武宁县| 乌拉特中旗| 扶沟县| 商水县| 朔州市| 柳州市| 石狮市| 白沙| 彭州市| 卢氏县| 荥阳市| 丹寨县|