Linear Regression in Python
Linear Regression in Python
Learning Lab
Linear Regression in Python
Algorithms
An algorithm is a procedure or set of steps or rules to accomplish a task.
Algorithms are one of the fundamental concepts in, or building blocks of,
computer science.
Some of the basic types of tasks that algorithms can solve are
● sorting,
● searching,
● graph-based computational problems
Machine Learning Algorithms
Machine learning algorithms are largely used to:
Predict,
Classify, or
Cluster
Machine learning algorithms are the basis of artificial intelligence (AI) such as
image recognition, speech recognition, recommendation systems,
ranking and personalization of content.
Machine Learning Algorithms
There are a number of Machine Learning Algorithms, Some of them are:
The value of an independent variable does not change based on the effects of the
other variables.
The value of this dependent variable changes when there is any change in the
values of the independent variables.
y = m*x + c
Simple Linear Regression Equation
Let us have two sets of data with x as the independent variable and y as the
dependent variable.
Simple Linear Regression Equation
Then we calculate the mean or the average values of x and y.
1. Administration
2. R & D Spend
3. Marketing Spend
4. State
The R squared value of 0.93 proves that the model is a good model.