SlideShare una empresa de Scribd logo
1 de 47
www.edureka.co/data-scienceEdureka’s Data Science Certification Training
Linear Regression
www.edureka.co/data-scienceEdureka’s Data Science Certification Training
What Will You Learn Today?
What is Regression?Machine Learning Types Of Regression
Linear Regression -
Example
Linear Regression –
Use Cases
Demo In R: Real
Estate Use Case
1 2 3
4 65
www.edureka.co/data-scienceEdureka’s Data Science Certification Training
Machine Learning
www.edureka.co/data-scienceEdureka’s Data Science Certification Training
Introduction To Machine Learning
Machine learning is a type of artificial intelligence (AI) that provides computers with the ability to learn without
being explicitly programmed.
Training Data Learn
Algorithm
Build Model Perform
Feedback
www.edureka.co/data-scienceEdureka’s Data Science Certification Training
Machine Learning - Example
 Facebook's News Feed uses machine learning to
personalize each member's feed.
 When you upload photos to Facebook, the service
automatically highlights faces and suggests friends
to tag.
 Facebook also uses AI(Artificial Intelligence) to
personalize
• Newsfeeds
• Advertisements
• Trending news
• Friend recommendations
www.edureka.co/data-scienceEdureka’s Data Science Certification Training
What Is Regression?
www.edureka.co/data-scienceEdureka’s Data Science Certification Training
What Is Regression?
 Regression analysis is a predictive
modelling technique.
 It estimates the relationship between
a dependent (target) and an
independent variable (predictor).
X-axis
Y-axis
Input value = 7.00
Predicted outcome = 123.9
www.edureka.co/data-scienceEdureka’s Data Science Certification Training
Types Of Regression
www.edureka.co/data-scienceEdureka’s Data Science Certification Training
Types Of Regression
Linear Regression
• When there is a linear
relationship between
independent and dependent
variables.
• When the dependent variable is
binary (0/ 1, True/ False, Yes/ No) in
nature.
Logistic Regression Polynomial Regression
• When the power of independent
variable is more than 1.
X
Y
X
Y
www.edureka.co/data-scienceEdureka’s Data Science Certification Training
Linear Regression
www.edureka.co/data-scienceEdureka’s Data Science Certification Training
Linear Regression - Introduction
 The linear regression model assumes a linear
relationship between the input variables and
the outcome variable.
 This relationship can be expressed as
Where, y = outcome variable
x = input variables
= random error
= slope of the line
= intercept
y = β0 + β1x + ε
β1
β0
ε
www.edureka.co/data-scienceEdureka’s Data Science Certification Training
I have a dataset consisting of height
and weight of students. Let’s see how
would linear regression fit into it.
www.edureka.co/data-scienceEdureka’s Data Science Certification Training
Model Description
Scatterplot of y vs. x
We have a dataset of 10 students. We will
use it to draw scatterplot between height
and weight:
127
121
142
157
162
156
169
165
181
208
0
50
100
150
200
250
62 64 66 68 70 72 74 76
WEIGHT
HEIGHT
www.edureka.co/data-scienceEdureka’s Data Science Certification Training
Model Description
Scatterplot of height vs. weight
Now, the natural question arises — "what is the best fitting line?"
 The prediction error (or residual error) is:
Where,
• yi is the observed value of the unit i (i.e,
students).
• ŷ is the predicted response (or fitted value) for
unit i
 The goal is to minimize the sum of the squared
prediction errors (Least squared error or LER)
ei = yi - ŷ
𝑄 = 𝑖=1
𝑛
(𝑦i − ŷ )2
127
121
142
157
162
156
169
165
181
208
0
50
100
150
200
250
62 64 66 68 70 72 74 76
WEIGHT
HEIGHT
W2= -331.2 + 7.1h
W1= -266.5 + 6.1h
www.edureka.co/data-scienceEdureka’s Data Science Certification Training
Model Description
 Least squared error
(LER) w1 = 597.4
 Least squared error
(LER) w2 = 766.5
W2 = -331.2 + 7.1h W1 = -266.5 + 6.1h
www.edureka.co/data-scienceEdureka’s Data Science Certification Training
Model Description
The solid line represented by
w = -266.53 +6.1376 will be the
best fit line as least squared
error is minimum for it.
127
121
142
157
162
156
169
165
181
208
0
50
100
150
200
250
62 64 66 68 70 72 74 76
WEIGHT
HEIGHT
W1= -266.5 + 6.1h
www.edureka.co/data-scienceEdureka’s Data Science Certification Training
Now, lets understand linear
regression further with the
help of a simple example.
www.edureka.co/data-scienceEdureka’s Data Science Certification Training
Linear Regression - Example
Here, Dependent
variable is
Churn_out_rate
And Independent
variable is Salary_hike
Let’s take an example,
A company is facing high churnout this year, salary hike being one of the major
reason.
So let us consider a company’s data where we will find out the relationship
between these two variables.
www.edureka.co/data-scienceEdureka’s Data Science Certification Training
Linear Regression - Example
> plot(Salary_hike, Churn_out_rate)
x-axis = Salary_hike
y-axis = Churn_out_rate
Conclusion:
From the graph, we can see that as the Salary hike increases, the Churn out rate
decreases.
Salary hike
www.edureka.co/data-scienceEdureka’s Data Science Certification Training
Linear Regression - Use Cases
Real Estate
Demand
forecasting
Real Estate
To model residential home prices as a function of
the home's living area, bathrooms, number of
bedrooms, lot size.
Medicine
To analyze the effect of a proposed radiation
treatment on reducing tumor sizes based on
patient attributes such as age or weight.
Demand forecasting
To predict demand for goods and services. For
example, restaurant chains can predict the quantity
of food depending on weather.
Marketing
To predict company’s sales based on previous
month’s sales and stock prices of a company.
Use-cases
Marketing
Medicine
www.edureka.co/data-scienceEdureka’s Data Science Certification Training
Real Estate Consultation firm has the data
comprising price of apartments in Boston.
Based on this data, company wants to
decide the price of new apartments.
www.edureka.co/data-scienceEdureka’s Data Science Certification Training
Demo
www.edureka.co/data-scienceEdureka’s Data Science Certification Training
Demo
Data Acquisition
Divide dataset
Exploratory Analysis
Implement Model
Optimize Model
Model Validation
Let’s use the inbuilt housing data of Boston for linear regression analysis.
To load it we can use following code:
 library(MASS)
 data(Boston)
The Boston Data looks like this:
Data acquisition
Divide dataset
Exploratory Analysis
Implement Model
Optimize Model
Prediction
Model Validation
www.edureka.co/data-scienceEdureka’s Data Science Certification Training
Demo
For description of the data we can use
> ?Boston
It will contain details about the data such as
• No. of rows and column
• Attributes description
Lets move forward to see the description of attributes
Data acquisition
Divide dataset
Exploratory Analysis
Implement Model
Optimize Model
Prediction
Model Validation
www.edureka.co/data-scienceEdureka’s Data Science Certification Training
Demo
Prediction
Data acquisition
Divide dataset
Exploratory Analysis
Implement Model
Optimize Model
Prediction
Model Validation
Description
The Boston data frame has 506 rows and 14 columns.
www.edureka.co/data-scienceEdureka’s Data Science Certification Training
Demo
Optimize Model
Model Validation
We will divide our entire dataset into two subsets as:
• Training dataset -> to train the model
• Testing dataset -> to validate and make predictions
Here we will divide the data in 7:3 ratio such that 70% will be
present as training set and remaining 30% as the testing set.Prediction
Data acquisition
Divide dataset
Exploratory Analysis
Implement Model
Optimize Model
Prediction
Model Validation
www.edureka.co/data-scienceEdureka’s Data Science Certification Training
Demo
Let’s find the relation among all the variables through scatterplot matrix.
 library(lattice)
 splom(~Boston[c(1:6,14)], groups=NULL, data=Boston,axis.line.tck = 0,axis.text.alpha = 0)
 splom(~Boston[c(1:6,14)], groups=NULL, data=Boston,axis.line.tck = 0,axis.text.alpha = 0)
Let’s check the plots
Data acquisition
Divide dataset
Exploratory Analysis
Implement Model
Optimize Model
Prediction
Model Validation
www.edureka.co/data-scienceEdureka’s Data Science Certification Training
Demo
Data Acquisition
Divide dataset
Exploratory Analysis
Implement Model
Optimize Model
Model Validation
 The plot shows positive
linear trend between
rm (average no. of
rooms) and medv
(value of home).
 No relevant relationship
between indus
(proportion of non-
retail business) and
medv
Data acquisition
Divide dataset
Exploratory Analysis
Implement Model
Optimize Model
Prediction
Model Validation
Data acquisition
Divide dataset
Exploratory Analysis
Implement Model
Optimize Model
Prediction
Model Validation
www.edureka.co/data-scienceEdureka’s Data Science Certification Training
Demo
 The plot shows
negative linear trend
between lstat (lower
status of population)
and medv.
 No relevant relationship
between tax (property
tax rate) and medv
Data acquisition
Divide dataset
Exploratory Analysis
Implement Model
Optimize Model
Prediction
Model Validation
www.edureka.co/data-scienceEdureka’s Data Science Certification Training
Demo
When we have various variables, correlation
is an important factor to check the
dependencies within themselves
Correlation analysis gives us an insight,
between mutual relationship among
variables.
To get correlation relationship among
different variables for a data set use following
code
> cr<- cor(Boston)
This will give us the correlation values.
For visualizing the same we can use corrplot()
function
> library(corrplot)
> corrplot(cr,type = "lower")
Data acquisition
Divide dataset
Exploratory Analysis
Implement Model
Optimize Model
Prediction
Model Validation
www.edureka.co/data-scienceEdureka’s Data Science Certification Training
Demo
From the plot we can get visual relationship
among different variables:
• Dark blue signifies strong positive relationship
• Dark red signifies strong negative relationship
• Scale varies from red to blue, and size of the
circle varies according to correlation factor
Example:
medv and lstat have large negative
relationship
medv and rm have large positive relationship
Data acquisition
Divide dataset
Exploratory Analysis
Implement Model
Optimize Model
Prediction
Model Validation
www.edureka.co/data-scienceEdureka’s Data Science Certification Training
Demo
 Multicollinearity exists when two or more
predictor are highly correlated among
themselves.
 When correlation among X’s is low, OLS has
lots of information to estimate.
 When correlation among X’s is high, OLS has
very little information to estimate. This makes
us relatively uncertain about our estimate.
X1
X2
Y
X1
X2
Y
Data acquisition
Divide dataset
Exploratory Analysis
Implement Model
Optimize Model
Prediction
Model Validation
www.edureka.co/data-scienceEdureka’s Data Science Certification Training
Demo
How can I detect
multicollinearity ?
You can use VIF (variance
inflation factor) for it.
Let’s see how
Data acquisition
Divide dataset
Exploratory Analysis
Implement Model
Optimize Model
Prediction
Model Validation
www.edureka.co/data-scienceEdureka’s Data Science Certification Training
Demo
Optimize Model
Variance inflation factor (VIF) measures the increase in the variance (the square
of the estimate's standard deviation) of an estimated regression coefficient due to
multicollinearity.
 A VIF of 1 means that there is no correlation among variables.
 Here, rad and tax have higher variance factor values indicating high multicollinearity.
 nox, indus and dis are moderately correlated.
Data acquisition
Divide dataset
Exploratory Analysis
Implement Model
Optimize Model
Prediction
Model Validation
www.edureka.co/data-scienceEdureka’s Data Science Certification Training
Demo
Let’s check the correlation between rad and tax from corrgram.
 rad and tax are highly
correlated at 0.91
 We can remove one of the
predictors (rad or tax) to
remove multicollinearity
Data acquisition
Divide dataset
Exploratory Analysis
Implement Model
Optimize Model
Prediction
Model Validation
www.edureka.co/data-scienceEdureka’s Data Science Certification Training
Demo
Let’s find the equation representing this best fit line
 summary(model)
As per the summary ,the equation representing our regression line is
medv= -34.671 + 9.102* rm
Data acquisition
Divide dataset
Exploratory Analysis
Implement Model
Optimize Model
Prediction
Model Validation
www.edureka.co/data-scienceEdureka’s Data Science Certification Training
Demo
Now let’s build a model with the help of training set using the code below,
Here we will be using all variables excluding tax
 model<-lm(medv~ crim + zn + indus + chas + nox + rm + age + dis + rad +
ptratio + black + lstat,data = training_data)
Data acquisition
Divide dataset
Exploratory Analysis
Implement Model
Optimize Model
Prediction
Model Validation
www.edureka.co/data-scienceEdureka’s Data Science Certification Training
Demo
Description of the model can be
found using Summary() function
> summary(model)
Some of the important values
are:
1. R-squared value
2. P-value
Data acquisition
Divide dataset
Exploratory Analysis
Implement Model
Optimize Model
Prediction
Model Validation
www.edureka.co/data-scienceEdureka’s Data Science Certification Training
Demo
Here r-squared = 0.726
R-squared value indicates the
perfection of the predictive value.
If the R-squared value is closer to
1.0, then the Linear Model is best-
suited.
Data acquisition
Divide dataset
Exploratory Analysis
Implement Model
Optimize Model
Prediction
Model Validation
www.edureka.co/data-scienceEdureka’s Data Science Certification Training
Demo
Model Validation
 High P values: your data are
likely with a true null.
 Low P values: your data are
unlikely with a true null.
 Here, indus and age relatively
higher in p- value, so they can
be neglected.
P values are used to determine statistical significance in a hypothesis test.
Data acquisition
Divide dataset
Exploratory Analysis
Implement Model
Optimize Model
Prediction
Model Validation
www.edureka.co/data-scienceEdureka’s Data Science Certification Training
Demo
Now let’s build a model with the help of training set using the code
below, Here we will be excluding indus and age
> model<-lm(medv~ crim + zn + chas + nox + rm + dis + ptratio + black +
lstat,data = training_data)
Data acquisition
Divide dataset
Exploratory Analysis
Implement Model
Optimize Model
Prediction
Model Validation
www.edureka.co/data-scienceEdureka’s Data Science Certification Training
Demo
Model Validation
Here, adjusted R-squared value
remained same despite of
removing indus and age from the
model.
Data acquisition
Divide dataset
Exploratory Analysis
Implement Model
Optimize Model
Prediction
Model Validation
www.edureka.co/data-scienceEdureka’s Data Science Certification Training
Demo
Now we can use our model to predict the output of our testing dataset.
We can use the following code for predicting the output
> predic<-predict(model,test)
Data acquisition
Divide dataset
Exploratory Analysis
Implement Model
Optimize Model
Prediction
Model Validation
www.edureka.co/data-scienceEdureka’s Data Science Certification Training
Demo
For comparing these values we can use plots
Here we plot a line graph where green lines represent the actual price and the
blue lines represent the predictive model generated for the data.
 plot(testing_data$medv,type = "l",lty = 1.8,col = "green")
 lines(predic,type = "l",col = "blue")
As we can see from the graph most of the predictive values are overlapping the
actual values.
Data acquisition
Divide dataset
Exploratory Analysis
Implement Model
Optimize Model
Prediction
Model Validation
www.edureka.co/data-scienceEdureka’s Data Science Certification Training
Demo
I have this dataset. What
will be the estimated
cost of apartment?
Here’s the code
line and
predicted value
Data acquisition
Divide dataset
Exploratory Analysis
Implement Model
Optimize Model
Prediction
Model Validation
www.edureka.co/data-scienceEdureka’s Data Science Certification Training
Course Details
Go to www.edureka.co/data-science
Get Edureka Certified in Data Science Today!
What our learners have to say about us!
Shravan Reddy says- “I would like to recommend any one who
wants to be a Data Scientist just one place: Edureka. Explanations
are clean, clear, easy to understand. Their support team works
very well.. I took the Data Science course and I'm going to take
Machine Learning with Mahout and then Big Data and Hadoop”.
Gnana Sekhar says - “Edureka Data science course provided me a very
good mixture of theoretical and practical training. LMS pre recorded
sessions and assignments were very good as there is a lot of
information in them that will help me in my job. Edureka is my
teaching GURU now...Thanks EDUREKA.”
Balu Samaga says - “It was a great experience to undergo and get
certified in the Data Science course from Edureka. Quality of the
training materials, assignments, project, support and other
infrastructures are a top notch.”
www.edureka.co/data-scienceEdureka’s Data Science Certification Training

Más contenido relacionado

La actualidad más candente

Decision Tree Algorithm & Analysis | Machine Learning Algorithm | Data Scienc...
Decision Tree Algorithm & Analysis | Machine Learning Algorithm | Data Scienc...Decision Tree Algorithm & Analysis | Machine Learning Algorithm | Data Scienc...
Decision Tree Algorithm & Analysis | Machine Learning Algorithm | Data Scienc...Edureka!
 
Machine Learning Course | Edureka
Machine Learning Course | EdurekaMachine Learning Course | Edureka
Machine Learning Course | EdurekaEdureka!
 
Data Science Full Course | Edureka
Data Science Full Course | EdurekaData Science Full Course | Edureka
Data Science Full Course | EdurekaEdureka!
 
Support Vector Machine - How Support Vector Machine works | SVM in Machine Le...
Support Vector Machine - How Support Vector Machine works | SVM in Machine Le...Support Vector Machine - How Support Vector Machine works | SVM in Machine Le...
Support Vector Machine - How Support Vector Machine works | SVM in Machine Le...Simplilearn
 
Supervised and unsupervised learning
Supervised and unsupervised learningSupervised and unsupervised learning
Supervised and unsupervised learningParas Kohli
 
Machine Learning Algorithms
Machine Learning AlgorithmsMachine Learning Algorithms
Machine Learning AlgorithmsDezyreAcademy
 
Linear regression
Linear regressionLinear regression
Linear regressionMartinHogg9
 
Cross-validation Tutorial: What, how and which?
Cross-validation Tutorial: What, how and which?Cross-validation Tutorial: What, how and which?
Cross-validation Tutorial: What, how and which?Pradeep Redddy Raamana
 
Linear regression in machine learning
Linear regression in machine learningLinear regression in machine learning
Linear regression in machine learningShajun Nisha
 
SVM Algorithm Explained | Support Vector Machine Tutorial Using R | Edureka
SVM Algorithm Explained | Support Vector Machine Tutorial Using R | EdurekaSVM Algorithm Explained | Support Vector Machine Tutorial Using R | Edureka
SVM Algorithm Explained | Support Vector Machine Tutorial Using R | EdurekaEdureka!
 
Cross validation
Cross validationCross validation
Cross validationRidhaAfrawe
 
Machine Learning Project
Machine Learning ProjectMachine Learning Project
Machine Learning ProjectAbhishek Singh
 
Machine Learning Algorithms | Machine Learning Tutorial | Data Science Algori...
Machine Learning Algorithms | Machine Learning Tutorial | Data Science Algori...Machine Learning Algorithms | Machine Learning Tutorial | Data Science Algori...
Machine Learning Algorithms | Machine Learning Tutorial | Data Science Algori...Simplilearn
 
Naive bayes
Naive bayesNaive bayes
Naive bayesumeskath
 
Introduction to Machine Learning with SciKit-Learn
Introduction to Machine Learning with SciKit-LearnIntroduction to Machine Learning with SciKit-Learn
Introduction to Machine Learning with SciKit-LearnBenjamin Bengfort
 
Machine Learning Tutorial Part - 1 | Machine Learning Tutorial For Beginners ...
Machine Learning Tutorial Part - 1 | Machine Learning Tutorial For Beginners ...Machine Learning Tutorial Part - 1 | Machine Learning Tutorial For Beginners ...
Machine Learning Tutorial Part - 1 | Machine Learning Tutorial For Beginners ...Simplilearn
 

La actualidad más candente (20)

Decision Tree Algorithm & Analysis | Machine Learning Algorithm | Data Scienc...
Decision Tree Algorithm & Analysis | Machine Learning Algorithm | Data Scienc...Decision Tree Algorithm & Analysis | Machine Learning Algorithm | Data Scienc...
Decision Tree Algorithm & Analysis | Machine Learning Algorithm | Data Scienc...
 
Machine Learning Course | Edureka
Machine Learning Course | EdurekaMachine Learning Course | Edureka
Machine Learning Course | Edureka
 
Data Science Full Course | Edureka
Data Science Full Course | EdurekaData Science Full Course | Edureka
Data Science Full Course | Edureka
 
Lecture #01
Lecture #01Lecture #01
Lecture #01
 
Support Vector Machine - How Support Vector Machine works | SVM in Machine Le...
Support Vector Machine - How Support Vector Machine works | SVM in Machine Le...Support Vector Machine - How Support Vector Machine works | SVM in Machine Le...
Support Vector Machine - How Support Vector Machine works | SVM in Machine Le...
 
Supervised and unsupervised learning
Supervised and unsupervised learningSupervised and unsupervised learning
Supervised and unsupervised learning
 
Machine Learning Algorithms
Machine Learning AlgorithmsMachine Learning Algorithms
Machine Learning Algorithms
 
Linear regression
Linear regressionLinear regression
Linear regression
 
Cross-validation Tutorial: What, how and which?
Cross-validation Tutorial: What, how and which?Cross-validation Tutorial: What, how and which?
Cross-validation Tutorial: What, how and which?
 
Naive Bayes
Naive BayesNaive Bayes
Naive Bayes
 
Linear regression in machine learning
Linear regression in machine learningLinear regression in machine learning
Linear regression in machine learning
 
SVM Algorithm Explained | Support Vector Machine Tutorial Using R | Edureka
SVM Algorithm Explained | Support Vector Machine Tutorial Using R | EdurekaSVM Algorithm Explained | Support Vector Machine Tutorial Using R | Edureka
SVM Algorithm Explained | Support Vector Machine Tutorial Using R | Edureka
 
Random forest
Random forestRandom forest
Random forest
 
Cross validation
Cross validationCross validation
Cross validation
 
Machine Learning Project
Machine Learning ProjectMachine Learning Project
Machine Learning Project
 
Machine Learning Algorithms | Machine Learning Tutorial | Data Science Algori...
Machine Learning Algorithms | Machine Learning Tutorial | Data Science Algori...Machine Learning Algorithms | Machine Learning Tutorial | Data Science Algori...
Machine Learning Algorithms | Machine Learning Tutorial | Data Science Algori...
 
Naive bayes
Naive bayesNaive bayes
Naive bayes
 
Predictive Modelling
Predictive ModellingPredictive Modelling
Predictive Modelling
 
Introduction to Machine Learning with SciKit-Learn
Introduction to Machine Learning with SciKit-LearnIntroduction to Machine Learning with SciKit-Learn
Introduction to Machine Learning with SciKit-Learn
 
Machine Learning Tutorial Part - 1 | Machine Learning Tutorial For Beginners ...
Machine Learning Tutorial Part - 1 | Machine Learning Tutorial For Beginners ...Machine Learning Tutorial Part - 1 | Machine Learning Tutorial For Beginners ...
Machine Learning Tutorial Part - 1 | Machine Learning Tutorial For Beginners ...
 

Similar a Linear Regression Algorithm | Linear Regression in R | Data Science Training | Edureka

Data Analytics For Beginners | Introduction To Data Analytics | Data Analytic...
Data Analytics For Beginners | Introduction To Data Analytics | Data Analytic...Data Analytics For Beginners | Introduction To Data Analytics | Data Analytic...
Data Analytics For Beginners | Introduction To Data Analytics | Data Analytic...Edureka!
 
Essentials of machine learning algorithms
Essentials of machine learning algorithmsEssentials of machine learning algorithms
Essentials of machine learning algorithmsArunangsu Sahu
 
Data Science Tutorial | Introduction To Data Science | Data Science Training ...
Data Science Tutorial | Introduction To Data Science | Data Science Training ...Data Science Tutorial | Introduction To Data Science | Data Science Training ...
Data Science Tutorial | Introduction To Data Science | Data Science Training ...Edureka!
 
Random Forest Tutorial | Random Forest in R | Machine Learning | Data Science...
Random Forest Tutorial | Random Forest in R | Machine Learning | Data Science...Random Forest Tutorial | Random Forest in R | Machine Learning | Data Science...
Random Forest Tutorial | Random Forest in R | Machine Learning | Data Science...Edureka!
 
Dad (Data Analysis And Design)
Dad (Data Analysis And Design)Dad (Data Analysis And Design)
Dad (Data Analysis And Design)Jill Lyons
 
Data Science Project: Advancements in Fetal Health Classification
Data Science Project: Advancements in Fetal Health ClassificationData Science Project: Advancements in Fetal Health Classification
Data Science Project: Advancements in Fetal Health ClassificationBoston Institute of Analytics
 
Paper-Allstate-Claim-Severity
Paper-Allstate-Claim-SeverityPaper-Allstate-Claim-Severity
Paper-Allstate-Claim-SeverityGon-soo Moon
 
Post Graduate Admission Prediction System
Post Graduate Admission Prediction SystemPost Graduate Admission Prediction System
Post Graduate Admission Prediction SystemIRJET Journal
 
AutoML for Data Science Productivity and Toward Better Digital Decisions
AutoML for Data Science Productivity and Toward Better Digital DecisionsAutoML for Data Science Productivity and Toward Better Digital Decisions
AutoML for Data Science Productivity and Toward Better Digital DecisionsSteven Gustafson
 
What Is Data Science? Data Science Course - Data Science Tutorial For Beginne...
What Is Data Science? Data Science Course - Data Science Tutorial For Beginne...What Is Data Science? Data Science Course - Data Science Tutorial For Beginne...
What Is Data Science? Data Science Course - Data Science Tutorial For Beginne...Edureka!
 
Regression and Artificial Neural Network in R
Regression and Artificial Neural Network in RRegression and Artificial Neural Network in R
Regression and Artificial Neural Network in RDr. Vaibhav Kumar
 
Top 10 Data Science Practitioner Pitfalls
Top 10 Data Science Practitioner PitfallsTop 10 Data Science Practitioner Pitfalls
Top 10 Data Science Practitioner PitfallsSri Ambati
 
Machine Learning Tutorial Part - 2 | Machine Learning Tutorial For Beginners ...
Machine Learning Tutorial Part - 2 | Machine Learning Tutorial For Beginners ...Machine Learning Tutorial Part - 2 | Machine Learning Tutorial For Beginners ...
Machine Learning Tutorial Part - 2 | Machine Learning Tutorial For Beginners ...Simplilearn
 
Feature extraction for classifying students based on theirac ademic performance
Feature extraction for classifying students based on theirac ademic performanceFeature extraction for classifying students based on theirac ademic performance
Feature extraction for classifying students based on theirac ademic performanceVenkat Projects
 
Machine Learning Algorithms | Machine Learning Tutorial | Data Science Tutori...
Machine Learning Algorithms | Machine Learning Tutorial | Data Science Tutori...Machine Learning Algorithms | Machine Learning Tutorial | Data Science Tutori...
Machine Learning Algorithms | Machine Learning Tutorial | Data Science Tutori...Edureka!
 
Fast Distributed Online Classification
Fast Distributed Online ClassificationFast Distributed Online Classification
Fast Distributed Online ClassificationPrasad Chalasani
 
Spark + AI Summit - The Importance of Model Fairness and Interpretability in ...
Spark + AI Summit - The Importance of Model Fairness and Interpretability in ...Spark + AI Summit - The Importance of Model Fairness and Interpretability in ...
Spark + AI Summit - The Importance of Model Fairness and Interpretability in ...Francesca Lazzeri, PhD
 

Similar a Linear Regression Algorithm | Linear Regression in R | Data Science Training | Edureka (20)

Data Analytics For Beginners | Introduction To Data Analytics | Data Analytic...
Data Analytics For Beginners | Introduction To Data Analytics | Data Analytic...Data Analytics For Beginners | Introduction To Data Analytics | Data Analytic...
Data Analytics For Beginners | Introduction To Data Analytics | Data Analytic...
 
Essentials of machine learning algorithms
Essentials of machine learning algorithmsEssentials of machine learning algorithms
Essentials of machine learning algorithms
 
Data Science Tutorial | Introduction To Data Science | Data Science Training ...
Data Science Tutorial | Introduction To Data Science | Data Science Training ...Data Science Tutorial | Introduction To Data Science | Data Science Training ...
Data Science Tutorial | Introduction To Data Science | Data Science Training ...
 
Random Forest Tutorial | Random Forest in R | Machine Learning | Data Science...
Random Forest Tutorial | Random Forest in R | Machine Learning | Data Science...Random Forest Tutorial | Random Forest in R | Machine Learning | Data Science...
Random Forest Tutorial | Random Forest in R | Machine Learning | Data Science...
 
Dad (Data Analysis And Design)
Dad (Data Analysis And Design)Dad (Data Analysis And Design)
Dad (Data Analysis And Design)
 
Data Science Project: Advancements in Fetal Health Classification
Data Science Project: Advancements in Fetal Health ClassificationData Science Project: Advancements in Fetal Health Classification
Data Science Project: Advancements in Fetal Health Classification
 
Paper-Allstate-Claim-Severity
Paper-Allstate-Claim-SeverityPaper-Allstate-Claim-Severity
Paper-Allstate-Claim-Severity
 
Post Graduate Admission Prediction System
Post Graduate Admission Prediction SystemPost Graduate Admission Prediction System
Post Graduate Admission Prediction System
 
AutoML for Data Science Productivity and Toward Better Digital Decisions
AutoML for Data Science Productivity and Toward Better Digital DecisionsAutoML for Data Science Productivity and Toward Better Digital Decisions
AutoML for Data Science Productivity and Toward Better Digital Decisions
 
What Is Data Science? Data Science Course - Data Science Tutorial For Beginne...
What Is Data Science? Data Science Course - Data Science Tutorial For Beginne...What Is Data Science? Data Science Course - Data Science Tutorial For Beginne...
What Is Data Science? Data Science Course - Data Science Tutorial For Beginne...
 
Regression and Artificial Neural Network in R
Regression and Artificial Neural Network in RRegression and Artificial Neural Network in R
Regression and Artificial Neural Network in R
 
Top 10 Data Science Practitioner Pitfalls
Top 10 Data Science Practitioner PitfallsTop 10 Data Science Practitioner Pitfalls
Top 10 Data Science Practitioner Pitfalls
 
Machine Learning Tutorial Part - 2 | Machine Learning Tutorial For Beginners ...
Machine Learning Tutorial Part - 2 | Machine Learning Tutorial For Beginners ...Machine Learning Tutorial Part - 2 | Machine Learning Tutorial For Beginners ...
Machine Learning Tutorial Part - 2 | Machine Learning Tutorial For Beginners ...
 
Feature extraction for classifying students based on theirac ademic performance
Feature extraction for classifying students based on theirac ademic performanceFeature extraction for classifying students based on theirac ademic performance
Feature extraction for classifying students based on theirac ademic performance
 
Machine Learning Algorithms | Machine Learning Tutorial | Data Science Tutori...
Machine Learning Algorithms | Machine Learning Tutorial | Data Science Tutori...Machine Learning Algorithms | Machine Learning Tutorial | Data Science Tutori...
Machine Learning Algorithms | Machine Learning Tutorial | Data Science Tutori...
 
Machine Learning.pptx
Machine Learning.pptxMachine Learning.pptx
Machine Learning.pptx
 
fINAL ML PPT.pptx
fINAL ML PPT.pptxfINAL ML PPT.pptx
fINAL ML PPT.pptx
 
Fast Distributed Online Classification
Fast Distributed Online ClassificationFast Distributed Online Classification
Fast Distributed Online Classification
 
Fast Distributed Online Classification
Fast Distributed Online Classification Fast Distributed Online Classification
Fast Distributed Online Classification
 
Spark + AI Summit - The Importance of Model Fairness and Interpretability in ...
Spark + AI Summit - The Importance of Model Fairness and Interpretability in ...Spark + AI Summit - The Importance of Model Fairness and Interpretability in ...
Spark + AI Summit - The Importance of Model Fairness and Interpretability in ...
 

Más de Edureka!

What to learn during the 21 days Lockdown | Edureka
What to learn during the 21 days Lockdown | EdurekaWhat to learn during the 21 days Lockdown | Edureka
What to learn during the 21 days Lockdown | EdurekaEdureka!
 
Top 10 Dying Programming Languages in 2020 | Edureka
Top 10 Dying Programming Languages in 2020 | EdurekaTop 10 Dying Programming Languages in 2020 | Edureka
Top 10 Dying Programming Languages in 2020 | EdurekaEdureka!
 
Top 5 Trending Business Intelligence Tools | Edureka
Top 5 Trending Business Intelligence Tools | EdurekaTop 5 Trending Business Intelligence Tools | Edureka
Top 5 Trending Business Intelligence Tools | EdurekaEdureka!
 
Tableau Tutorial for Data Science | Edureka
Tableau Tutorial for Data Science | EdurekaTableau Tutorial for Data Science | Edureka
Tableau Tutorial for Data Science | EdurekaEdureka!
 
Python Programming Tutorial | Edureka
Python Programming Tutorial | EdurekaPython Programming Tutorial | Edureka
Python Programming Tutorial | EdurekaEdureka!
 
Top 5 PMP Certifications | Edureka
Top 5 PMP Certifications | EdurekaTop 5 PMP Certifications | Edureka
Top 5 PMP Certifications | EdurekaEdureka!
 
Top Maven Interview Questions in 2020 | Edureka
Top Maven Interview Questions in 2020 | EdurekaTop Maven Interview Questions in 2020 | Edureka
Top Maven Interview Questions in 2020 | EdurekaEdureka!
 
Linux Mint Tutorial | Edureka
Linux Mint Tutorial | EdurekaLinux Mint Tutorial | Edureka
Linux Mint Tutorial | EdurekaEdureka!
 
How to Deploy Java Web App in AWS| Edureka
How to Deploy Java Web App in AWS| EdurekaHow to Deploy Java Web App in AWS| Edureka
How to Deploy Java Web App in AWS| EdurekaEdureka!
 
Importance of Digital Marketing | Edureka
Importance of Digital Marketing | EdurekaImportance of Digital Marketing | Edureka
Importance of Digital Marketing | EdurekaEdureka!
 
RPA in 2020 | Edureka
RPA in 2020 | EdurekaRPA in 2020 | Edureka
RPA in 2020 | EdurekaEdureka!
 
Email Notifications in Jenkins | Edureka
Email Notifications in Jenkins | EdurekaEmail Notifications in Jenkins | Edureka
Email Notifications in Jenkins | EdurekaEdureka!
 
EA Algorithm in Machine Learning | Edureka
EA Algorithm in Machine Learning | EdurekaEA Algorithm in Machine Learning | Edureka
EA Algorithm in Machine Learning | EdurekaEdureka!
 
Cognitive AI Tutorial | Edureka
Cognitive AI Tutorial | EdurekaCognitive AI Tutorial | Edureka
Cognitive AI Tutorial | EdurekaEdureka!
 
AWS Cloud Practitioner Tutorial | Edureka
AWS Cloud Practitioner Tutorial | EdurekaAWS Cloud Practitioner Tutorial | Edureka
AWS Cloud Practitioner Tutorial | EdurekaEdureka!
 
Blue Prism Top Interview Questions | Edureka
Blue Prism Top Interview Questions | EdurekaBlue Prism Top Interview Questions | Edureka
Blue Prism Top Interview Questions | EdurekaEdureka!
 
Big Data on AWS Tutorial | Edureka
Big Data on AWS Tutorial | Edureka Big Data on AWS Tutorial | Edureka
Big Data on AWS Tutorial | Edureka Edureka!
 
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | EdurekaA star algorithm | A* Algorithm in Artificial Intelligence | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | EdurekaEdureka!
 
Kubernetes Installation on Ubuntu | Edureka
Kubernetes Installation on Ubuntu | EdurekaKubernetes Installation on Ubuntu | Edureka
Kubernetes Installation on Ubuntu | EdurekaEdureka!
 
Introduction to DevOps | Edureka
Introduction to DevOps | EdurekaIntroduction to DevOps | Edureka
Introduction to DevOps | EdurekaEdureka!
 

Más de Edureka! (20)

What to learn during the 21 days Lockdown | Edureka
What to learn during the 21 days Lockdown | EdurekaWhat to learn during the 21 days Lockdown | Edureka
What to learn during the 21 days Lockdown | Edureka
 
Top 10 Dying Programming Languages in 2020 | Edureka
Top 10 Dying Programming Languages in 2020 | EdurekaTop 10 Dying Programming Languages in 2020 | Edureka
Top 10 Dying Programming Languages in 2020 | Edureka
 
Top 5 Trending Business Intelligence Tools | Edureka
Top 5 Trending Business Intelligence Tools | EdurekaTop 5 Trending Business Intelligence Tools | Edureka
Top 5 Trending Business Intelligence Tools | Edureka
 
Tableau Tutorial for Data Science | Edureka
Tableau Tutorial for Data Science | EdurekaTableau Tutorial for Data Science | Edureka
Tableau Tutorial for Data Science | Edureka
 
Python Programming Tutorial | Edureka
Python Programming Tutorial | EdurekaPython Programming Tutorial | Edureka
Python Programming Tutorial | Edureka
 
Top 5 PMP Certifications | Edureka
Top 5 PMP Certifications | EdurekaTop 5 PMP Certifications | Edureka
Top 5 PMP Certifications | Edureka
 
Top Maven Interview Questions in 2020 | Edureka
Top Maven Interview Questions in 2020 | EdurekaTop Maven Interview Questions in 2020 | Edureka
Top Maven Interview Questions in 2020 | Edureka
 
Linux Mint Tutorial | Edureka
Linux Mint Tutorial | EdurekaLinux Mint Tutorial | Edureka
Linux Mint Tutorial | Edureka
 
How to Deploy Java Web App in AWS| Edureka
How to Deploy Java Web App in AWS| EdurekaHow to Deploy Java Web App in AWS| Edureka
How to Deploy Java Web App in AWS| Edureka
 
Importance of Digital Marketing | Edureka
Importance of Digital Marketing | EdurekaImportance of Digital Marketing | Edureka
Importance of Digital Marketing | Edureka
 
RPA in 2020 | Edureka
RPA in 2020 | EdurekaRPA in 2020 | Edureka
RPA in 2020 | Edureka
 
Email Notifications in Jenkins | Edureka
Email Notifications in Jenkins | EdurekaEmail Notifications in Jenkins | Edureka
Email Notifications in Jenkins | Edureka
 
EA Algorithm in Machine Learning | Edureka
EA Algorithm in Machine Learning | EdurekaEA Algorithm in Machine Learning | Edureka
EA Algorithm in Machine Learning | Edureka
 
Cognitive AI Tutorial | Edureka
Cognitive AI Tutorial | EdurekaCognitive AI Tutorial | Edureka
Cognitive AI Tutorial | Edureka
 
AWS Cloud Practitioner Tutorial | Edureka
AWS Cloud Practitioner Tutorial | EdurekaAWS Cloud Practitioner Tutorial | Edureka
AWS Cloud Practitioner Tutorial | Edureka
 
Blue Prism Top Interview Questions | Edureka
Blue Prism Top Interview Questions | EdurekaBlue Prism Top Interview Questions | Edureka
Blue Prism Top Interview Questions | Edureka
 
Big Data on AWS Tutorial | Edureka
Big Data on AWS Tutorial | Edureka Big Data on AWS Tutorial | Edureka
Big Data on AWS Tutorial | Edureka
 
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | EdurekaA star algorithm | A* Algorithm in Artificial Intelligence | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
 
Kubernetes Installation on Ubuntu | Edureka
Kubernetes Installation on Ubuntu | EdurekaKubernetes Installation on Ubuntu | Edureka
Kubernetes Installation on Ubuntu | Edureka
 
Introduction to DevOps | Edureka
Introduction to DevOps | EdurekaIntroduction to DevOps | Edureka
Introduction to DevOps | Edureka
 

Último

Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...nirzagarg
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
Statistics notes ,it includes mean to index numbers
Statistics notes ,it includes mean to index numbersStatistics notes ,it includes mean to index numbers
Statistics notes ,it includes mean to index numberssuginr1
 
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteedamy56318795
 
Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1ranjankumarbehera14
 
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...nirzagarg
 
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book nowVadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book nowgargpaaro
 
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...Elaine Werffeli
 
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...Klinik kandungan
 
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制vexqp
 
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Valters Lauzums
 
TrafficWave Generator Will Instantly drive targeted and engaging traffic back...
TrafficWave Generator Will Instantly drive targeted and engaging traffic back...TrafficWave Generator Will Instantly drive targeted and engaging traffic back...
TrafficWave Generator Will Instantly drive targeted and engaging traffic back...SOFTTECHHUB
 
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...nirzagarg
 
Computer science Sql cheat sheet.pdf.pdf
Computer science Sql cheat sheet.pdf.pdfComputer science Sql cheat sheet.pdf.pdf
Computer science Sql cheat sheet.pdf.pdfSayantanBiswas37
 
Predicting HDB Resale Prices - Conducting Linear Regression Analysis With Orange
Predicting HDB Resale Prices - Conducting Linear Regression Analysis With OrangePredicting HDB Resale Prices - Conducting Linear Regression Analysis With Orange
Predicting HDB Resale Prices - Conducting Linear Regression Analysis With OrangeThinkInnovation
 
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptxRESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptxronsairoathenadugay
 
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24  Building Real-Time Pipelines With FLaNKDATA SUMMIT 24  Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNKTimothy Spann
 
Gomti Nagar & best call girls in Lucknow | 9548273370 Independent Escorts & D...
Gomti Nagar & best call girls in Lucknow | 9548273370 Independent Escorts & D...Gomti Nagar & best call girls in Lucknow | 9548273370 Independent Escorts & D...
Gomti Nagar & best call girls in Lucknow | 9548273370 Independent Escorts & D...HyderabadDolls
 
Jodhpur Park | Call Girls in Kolkata Phone No 8005736733 Elite Escort Service...
Jodhpur Park | Call Girls in Kolkata Phone No 8005736733 Elite Escort Service...Jodhpur Park | Call Girls in Kolkata Phone No 8005736733 Elite Escort Service...
Jodhpur Park | Call Girls in Kolkata Phone No 8005736733 Elite Escort Service...HyderabadDolls
 
+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...
+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...
+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...Health
 

Último (20)

Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Statistics notes ,it includes mean to index numbers
Statistics notes ,it includes mean to index numbersStatistics notes ,it includes mean to index numbers
Statistics notes ,it includes mean to index numbers
 
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
 
Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1
 
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
 
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book nowVadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
 
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
 
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
 
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
 
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
 
TrafficWave Generator Will Instantly drive targeted and engaging traffic back...
TrafficWave Generator Will Instantly drive targeted and engaging traffic back...TrafficWave Generator Will Instantly drive targeted and engaging traffic back...
TrafficWave Generator Will Instantly drive targeted and engaging traffic back...
 
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
 
Computer science Sql cheat sheet.pdf.pdf
Computer science Sql cheat sheet.pdf.pdfComputer science Sql cheat sheet.pdf.pdf
Computer science Sql cheat sheet.pdf.pdf
 
Predicting HDB Resale Prices - Conducting Linear Regression Analysis With Orange
Predicting HDB Resale Prices - Conducting Linear Regression Analysis With OrangePredicting HDB Resale Prices - Conducting Linear Regression Analysis With Orange
Predicting HDB Resale Prices - Conducting Linear Regression Analysis With Orange
 
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptxRESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
 
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24  Building Real-Time Pipelines With FLaNKDATA SUMMIT 24  Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
 
Gomti Nagar & best call girls in Lucknow | 9548273370 Independent Escorts & D...
Gomti Nagar & best call girls in Lucknow | 9548273370 Independent Escorts & D...Gomti Nagar & best call girls in Lucknow | 9548273370 Independent Escorts & D...
Gomti Nagar & best call girls in Lucknow | 9548273370 Independent Escorts & D...
 
Jodhpur Park | Call Girls in Kolkata Phone No 8005736733 Elite Escort Service...
Jodhpur Park | Call Girls in Kolkata Phone No 8005736733 Elite Escort Service...Jodhpur Park | Call Girls in Kolkata Phone No 8005736733 Elite Escort Service...
Jodhpur Park | Call Girls in Kolkata Phone No 8005736733 Elite Escort Service...
 
+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...
+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...
+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...
 

Linear Regression Algorithm | Linear Regression in R | Data Science Training | Edureka

  • 1. www.edureka.co/data-scienceEdureka’s Data Science Certification Training Linear Regression
  • 2. www.edureka.co/data-scienceEdureka’s Data Science Certification Training What Will You Learn Today? What is Regression?Machine Learning Types Of Regression Linear Regression - Example Linear Regression – Use Cases Demo In R: Real Estate Use Case 1 2 3 4 65
  • 3. www.edureka.co/data-scienceEdureka’s Data Science Certification Training Machine Learning
  • 4. www.edureka.co/data-scienceEdureka’s Data Science Certification Training Introduction To Machine Learning Machine learning is a type of artificial intelligence (AI) that provides computers with the ability to learn without being explicitly programmed. Training Data Learn Algorithm Build Model Perform Feedback
  • 5. www.edureka.co/data-scienceEdureka’s Data Science Certification Training Machine Learning - Example  Facebook's News Feed uses machine learning to personalize each member's feed.  When you upload photos to Facebook, the service automatically highlights faces and suggests friends to tag.  Facebook also uses AI(Artificial Intelligence) to personalize • Newsfeeds • Advertisements • Trending news • Friend recommendations
  • 6. www.edureka.co/data-scienceEdureka’s Data Science Certification Training What Is Regression?
  • 7. www.edureka.co/data-scienceEdureka’s Data Science Certification Training What Is Regression?  Regression analysis is a predictive modelling technique.  It estimates the relationship between a dependent (target) and an independent variable (predictor). X-axis Y-axis Input value = 7.00 Predicted outcome = 123.9
  • 8. www.edureka.co/data-scienceEdureka’s Data Science Certification Training Types Of Regression
  • 9. www.edureka.co/data-scienceEdureka’s Data Science Certification Training Types Of Regression Linear Regression • When there is a linear relationship between independent and dependent variables. • When the dependent variable is binary (0/ 1, True/ False, Yes/ No) in nature. Logistic Regression Polynomial Regression • When the power of independent variable is more than 1. X Y X Y
  • 10. www.edureka.co/data-scienceEdureka’s Data Science Certification Training Linear Regression
  • 11. www.edureka.co/data-scienceEdureka’s Data Science Certification Training Linear Regression - Introduction  The linear regression model assumes a linear relationship between the input variables and the outcome variable.  This relationship can be expressed as Where, y = outcome variable x = input variables = random error = slope of the line = intercept y = β0 + β1x + ε β1 β0 ε
  • 12. www.edureka.co/data-scienceEdureka’s Data Science Certification Training I have a dataset consisting of height and weight of students. Let’s see how would linear regression fit into it.
  • 13. www.edureka.co/data-scienceEdureka’s Data Science Certification Training Model Description Scatterplot of y vs. x We have a dataset of 10 students. We will use it to draw scatterplot between height and weight: 127 121 142 157 162 156 169 165 181 208 0 50 100 150 200 250 62 64 66 68 70 72 74 76 WEIGHT HEIGHT
  • 14. www.edureka.co/data-scienceEdureka’s Data Science Certification Training Model Description Scatterplot of height vs. weight Now, the natural question arises — "what is the best fitting line?"  The prediction error (or residual error) is: Where, • yi is the observed value of the unit i (i.e, students). • ŷ is the predicted response (or fitted value) for unit i  The goal is to minimize the sum of the squared prediction errors (Least squared error or LER) ei = yi - ŷ 𝑄 = 𝑖=1 𝑛 (𝑦i − ŷ )2 127 121 142 157 162 156 169 165 181 208 0 50 100 150 200 250 62 64 66 68 70 72 74 76 WEIGHT HEIGHT W2= -331.2 + 7.1h W1= -266.5 + 6.1h
  • 15. www.edureka.co/data-scienceEdureka’s Data Science Certification Training Model Description  Least squared error (LER) w1 = 597.4  Least squared error (LER) w2 = 766.5 W2 = -331.2 + 7.1h W1 = -266.5 + 6.1h
  • 16. www.edureka.co/data-scienceEdureka’s Data Science Certification Training Model Description The solid line represented by w = -266.53 +6.1376 will be the best fit line as least squared error is minimum for it. 127 121 142 157 162 156 169 165 181 208 0 50 100 150 200 250 62 64 66 68 70 72 74 76 WEIGHT HEIGHT W1= -266.5 + 6.1h
  • 17. www.edureka.co/data-scienceEdureka’s Data Science Certification Training Now, lets understand linear regression further with the help of a simple example.
  • 18. www.edureka.co/data-scienceEdureka’s Data Science Certification Training Linear Regression - Example Here, Dependent variable is Churn_out_rate And Independent variable is Salary_hike Let’s take an example, A company is facing high churnout this year, salary hike being one of the major reason. So let us consider a company’s data where we will find out the relationship between these two variables.
  • 19. www.edureka.co/data-scienceEdureka’s Data Science Certification Training Linear Regression - Example > plot(Salary_hike, Churn_out_rate) x-axis = Salary_hike y-axis = Churn_out_rate Conclusion: From the graph, we can see that as the Salary hike increases, the Churn out rate decreases. Salary hike
  • 20. www.edureka.co/data-scienceEdureka’s Data Science Certification Training Linear Regression - Use Cases Real Estate Demand forecasting Real Estate To model residential home prices as a function of the home's living area, bathrooms, number of bedrooms, lot size. Medicine To analyze the effect of a proposed radiation treatment on reducing tumor sizes based on patient attributes such as age or weight. Demand forecasting To predict demand for goods and services. For example, restaurant chains can predict the quantity of food depending on weather. Marketing To predict company’s sales based on previous month’s sales and stock prices of a company. Use-cases Marketing Medicine
  • 21. www.edureka.co/data-scienceEdureka’s Data Science Certification Training Real Estate Consultation firm has the data comprising price of apartments in Boston. Based on this data, company wants to decide the price of new apartments.
  • 23. www.edureka.co/data-scienceEdureka’s Data Science Certification Training Demo Data Acquisition Divide dataset Exploratory Analysis Implement Model Optimize Model Model Validation Let’s use the inbuilt housing data of Boston for linear regression analysis. To load it we can use following code:  library(MASS)  data(Boston) The Boston Data looks like this: Data acquisition Divide dataset Exploratory Analysis Implement Model Optimize Model Prediction Model Validation
  • 24. www.edureka.co/data-scienceEdureka’s Data Science Certification Training Demo For description of the data we can use > ?Boston It will contain details about the data such as • No. of rows and column • Attributes description Lets move forward to see the description of attributes Data acquisition Divide dataset Exploratory Analysis Implement Model Optimize Model Prediction Model Validation
  • 25. www.edureka.co/data-scienceEdureka’s Data Science Certification Training Demo Prediction Data acquisition Divide dataset Exploratory Analysis Implement Model Optimize Model Prediction Model Validation Description The Boston data frame has 506 rows and 14 columns.
  • 26. www.edureka.co/data-scienceEdureka’s Data Science Certification Training Demo Optimize Model Model Validation We will divide our entire dataset into two subsets as: • Training dataset -> to train the model • Testing dataset -> to validate and make predictions Here we will divide the data in 7:3 ratio such that 70% will be present as training set and remaining 30% as the testing set.Prediction Data acquisition Divide dataset Exploratory Analysis Implement Model Optimize Model Prediction Model Validation
  • 27. www.edureka.co/data-scienceEdureka’s Data Science Certification Training Demo Let’s find the relation among all the variables through scatterplot matrix.  library(lattice)  splom(~Boston[c(1:6,14)], groups=NULL, data=Boston,axis.line.tck = 0,axis.text.alpha = 0)  splom(~Boston[c(1:6,14)], groups=NULL, data=Boston,axis.line.tck = 0,axis.text.alpha = 0) Let’s check the plots Data acquisition Divide dataset Exploratory Analysis Implement Model Optimize Model Prediction Model Validation
  • 28. www.edureka.co/data-scienceEdureka’s Data Science Certification Training Demo Data Acquisition Divide dataset Exploratory Analysis Implement Model Optimize Model Model Validation  The plot shows positive linear trend between rm (average no. of rooms) and medv (value of home).  No relevant relationship between indus (proportion of non- retail business) and medv Data acquisition Divide dataset Exploratory Analysis Implement Model Optimize Model Prediction Model Validation Data acquisition Divide dataset Exploratory Analysis Implement Model Optimize Model Prediction Model Validation
  • 29. www.edureka.co/data-scienceEdureka’s Data Science Certification Training Demo  The plot shows negative linear trend between lstat (lower status of population) and medv.  No relevant relationship between tax (property tax rate) and medv Data acquisition Divide dataset Exploratory Analysis Implement Model Optimize Model Prediction Model Validation
  • 30. www.edureka.co/data-scienceEdureka’s Data Science Certification Training Demo When we have various variables, correlation is an important factor to check the dependencies within themselves Correlation analysis gives us an insight, between mutual relationship among variables. To get correlation relationship among different variables for a data set use following code > cr<- cor(Boston) This will give us the correlation values. For visualizing the same we can use corrplot() function > library(corrplot) > corrplot(cr,type = "lower") Data acquisition Divide dataset Exploratory Analysis Implement Model Optimize Model Prediction Model Validation
  • 31. www.edureka.co/data-scienceEdureka’s Data Science Certification Training Demo From the plot we can get visual relationship among different variables: • Dark blue signifies strong positive relationship • Dark red signifies strong negative relationship • Scale varies from red to blue, and size of the circle varies according to correlation factor Example: medv and lstat have large negative relationship medv and rm have large positive relationship Data acquisition Divide dataset Exploratory Analysis Implement Model Optimize Model Prediction Model Validation
  • 32. www.edureka.co/data-scienceEdureka’s Data Science Certification Training Demo  Multicollinearity exists when two or more predictor are highly correlated among themselves.  When correlation among X’s is low, OLS has lots of information to estimate.  When correlation among X’s is high, OLS has very little information to estimate. This makes us relatively uncertain about our estimate. X1 X2 Y X1 X2 Y Data acquisition Divide dataset Exploratory Analysis Implement Model Optimize Model Prediction Model Validation
  • 33. www.edureka.co/data-scienceEdureka’s Data Science Certification Training Demo How can I detect multicollinearity ? You can use VIF (variance inflation factor) for it. Let’s see how Data acquisition Divide dataset Exploratory Analysis Implement Model Optimize Model Prediction Model Validation
  • 34. www.edureka.co/data-scienceEdureka’s Data Science Certification Training Demo Optimize Model Variance inflation factor (VIF) measures the increase in the variance (the square of the estimate's standard deviation) of an estimated regression coefficient due to multicollinearity.  A VIF of 1 means that there is no correlation among variables.  Here, rad and tax have higher variance factor values indicating high multicollinearity.  nox, indus and dis are moderately correlated. Data acquisition Divide dataset Exploratory Analysis Implement Model Optimize Model Prediction Model Validation
  • 35. www.edureka.co/data-scienceEdureka’s Data Science Certification Training Demo Let’s check the correlation between rad and tax from corrgram.  rad and tax are highly correlated at 0.91  We can remove one of the predictors (rad or tax) to remove multicollinearity Data acquisition Divide dataset Exploratory Analysis Implement Model Optimize Model Prediction Model Validation
  • 36. www.edureka.co/data-scienceEdureka’s Data Science Certification Training Demo Let’s find the equation representing this best fit line  summary(model) As per the summary ,the equation representing our regression line is medv= -34.671 + 9.102* rm Data acquisition Divide dataset Exploratory Analysis Implement Model Optimize Model Prediction Model Validation
  • 37. www.edureka.co/data-scienceEdureka’s Data Science Certification Training Demo Now let’s build a model with the help of training set using the code below, Here we will be using all variables excluding tax  model<-lm(medv~ crim + zn + indus + chas + nox + rm + age + dis + rad + ptratio + black + lstat,data = training_data) Data acquisition Divide dataset Exploratory Analysis Implement Model Optimize Model Prediction Model Validation
  • 38. www.edureka.co/data-scienceEdureka’s Data Science Certification Training Demo Description of the model can be found using Summary() function > summary(model) Some of the important values are: 1. R-squared value 2. P-value Data acquisition Divide dataset Exploratory Analysis Implement Model Optimize Model Prediction Model Validation
  • 39. www.edureka.co/data-scienceEdureka’s Data Science Certification Training Demo Here r-squared = 0.726 R-squared value indicates the perfection of the predictive value. If the R-squared value is closer to 1.0, then the Linear Model is best- suited. Data acquisition Divide dataset Exploratory Analysis Implement Model Optimize Model Prediction Model Validation
  • 40. www.edureka.co/data-scienceEdureka’s Data Science Certification Training Demo Model Validation  High P values: your data are likely with a true null.  Low P values: your data are unlikely with a true null.  Here, indus and age relatively higher in p- value, so they can be neglected. P values are used to determine statistical significance in a hypothesis test. Data acquisition Divide dataset Exploratory Analysis Implement Model Optimize Model Prediction Model Validation
  • 41. www.edureka.co/data-scienceEdureka’s Data Science Certification Training Demo Now let’s build a model with the help of training set using the code below, Here we will be excluding indus and age > model<-lm(medv~ crim + zn + chas + nox + rm + dis + ptratio + black + lstat,data = training_data) Data acquisition Divide dataset Exploratory Analysis Implement Model Optimize Model Prediction Model Validation
  • 42. www.edureka.co/data-scienceEdureka’s Data Science Certification Training Demo Model Validation Here, adjusted R-squared value remained same despite of removing indus and age from the model. Data acquisition Divide dataset Exploratory Analysis Implement Model Optimize Model Prediction Model Validation
  • 43. www.edureka.co/data-scienceEdureka’s Data Science Certification Training Demo Now we can use our model to predict the output of our testing dataset. We can use the following code for predicting the output > predic<-predict(model,test) Data acquisition Divide dataset Exploratory Analysis Implement Model Optimize Model Prediction Model Validation
  • 44. www.edureka.co/data-scienceEdureka’s Data Science Certification Training Demo For comparing these values we can use plots Here we plot a line graph where green lines represent the actual price and the blue lines represent the predictive model generated for the data.  plot(testing_data$medv,type = "l",lty = 1.8,col = "green")  lines(predic,type = "l",col = "blue") As we can see from the graph most of the predictive values are overlapping the actual values. Data acquisition Divide dataset Exploratory Analysis Implement Model Optimize Model Prediction Model Validation
  • 45. www.edureka.co/data-scienceEdureka’s Data Science Certification Training Demo I have this dataset. What will be the estimated cost of apartment? Here’s the code line and predicted value Data acquisition Divide dataset Exploratory Analysis Implement Model Optimize Model Prediction Model Validation
  • 46. www.edureka.co/data-scienceEdureka’s Data Science Certification Training Course Details Go to www.edureka.co/data-science Get Edureka Certified in Data Science Today! What our learners have to say about us! Shravan Reddy says- “I would like to recommend any one who wants to be a Data Scientist just one place: Edureka. Explanations are clean, clear, easy to understand. Their support team works very well.. I took the Data Science course and I'm going to take Machine Learning with Mahout and then Big Data and Hadoop”. Gnana Sekhar says - “Edureka Data science course provided me a very good mixture of theoretical and practical training. LMS pre recorded sessions and assignments were very good as there is a lot of information in them that will help me in my job. Edureka is my teaching GURU now...Thanks EDUREKA.” Balu Samaga says - “It was a great experience to undergo and get certified in the Data Science course from Edureka. Quality of the training materials, assignments, project, support and other infrastructures are a top notch.”

Notas del editor

  1. Add photos