多重线性回归 多元线性回归
We have taken a look at Simple Linear Regression in Episode 4.1 where we had one variable x to predict y, but what if now we have multiple variables, not just x, but x1,x2, x3 … to predict y — how would we approach this problem? I hope to explain in this article.
我们看了第4.1集中的简单线性回归,其中我们有一个变量x来预测y ,但是如果现在我们有多个变量,不仅是x,而且还有x1,x2,x3 …来预测y ,我们将如何处理?这个问题? 我希望在本文中进行解释。
简单线性回归回顾 (Simple Linear Regression Recap)
From Episode 4.1 we had our data of temperature and humidity:
从第4.1集开始,我们获得了温度和湿度数据:
We plotted our Data, found and found a linear relationship — making linear regression suitable:
我们绘制了数据,发现并找到了线性关系,从而使线性回归适用:
We then calculated our regression line:
然后,我们计算了回归线: