Regression
Regression
household for the next hour given the outdoor temperature, time of day, and
2. Polynomial Regression
3. Logistics Regression
1 Linear Regression
Linear regression is a quiet and simple statistical regression method used for
predictive analysis and shows the relationship between the continuous variables.
variable (X-axis) and the dependent variable (Y-axis), consequently called linear
regression. If there is a single input variable (x), such linear regression is called
simple linear regression. And if there is more than one input variable, such linear
regression is called multiple linear regression. The linear regression model gives
The above graph presents the linear relationship between the dependent
The red line is referred to as the best fit straight line. Based on the given
data points, we try to plot a line that models the points the best.
1 Linear Regression
y= Dependent Variable.
x= Independent Variable.
x = [5,7,8,7,2,17,2,9,4,11,12,9,6]
y = [99,86,87,88,111,86,103,87,94,78,77,85,86]
def myfunc(x):
return slope * x + intercept
plt.scatter(x, y)
plt.plot(x, mymodel)
plt.show()
End of Topic