Linear Regression for Machine Learning:

What is Regression?

Regression analysis is a form of predictive technique which analyze the relationship between dependent and independent variable. Simple linear regression is one of simple form of Regression analysis.

Simple Linear regression is a linear regression model with dependent variable on y-axis and independent variable on x-axis. The formula of simple regression is y = ax+b.

Here an example of Linear regression,

Exercise time in minutes as independent value and kcal burn as dependent value.

Kcal burn (y) Exercise time (x)

160 60

210 90

180 70

190 80

90 40

The graph will show closest prediction for this example,

The line of best fit is defined by :

y = 2.337838x + 7.027027

40 views0 comments

Recent Posts

See All

© Numpy Ninja.