SlideShare a Scribd company logo
5
Most read
13
Most read
14
Most read
LINEAR REGRESSION WITH R
Objectives
Slide 2
What is data mining
What is Business Analytics
Stages of Analytics / data mining
What is R
Overview of Machine Learning
 What is Linear Regression
Case Study
Data mining ??
Slide 3
Generally, data mining is the process of studying data from maximum possible dimensions and summarizing it into
useful information
Technically, data mining is the process of finding correlations or patterns among dozens of fields in large data
generated from business
Or you can say, data mining is the process finding useful information from the data and then devising knowledge
out of it for improving future of our business
» Data ??
Data are any facts, numbers, or text is getting produced by existing system
» Information ??
The patterns, associations, or relationships among all this data can provide information
» Knowledge ??
Information can be converted into knowledge about historical patterns and future trends. For example summary of
sales in off season may help to start some offers in that period to increase sales
Business Analytics
Why Business Analytics is getting popular these days ?
Cost of storing data Cost of processing data
Slide 4
Cross Industry standard Process for data mining ( CRISP – DM )
Stages of Analytics / Data Mining
Slide 5
What is R
R is Programming Language
R is Environment for Statistical Analysis
R is Data Analysis Software
Slide 6
R : Characteristics
Slide 7
Effective and fast data handling and storage facility
A bunch of operators for calculations on arrays, lists, vectors etc
A large integrated collection of tools for data analysis, and visualization
Facilities for data analysis using graphs and display either directly at the computer or paper
A well implemented and effective programming language called ‘S’ on top of which R is built
A complete range of packages to extend and enrich the functionality of R
Data Visualization in R
This plot represents the
locations of all the traffic
signals in the city.
It is recognizable as
Toronto without any other
geographic data being
plotted - the structure of
the city comes out in the
data alone.
Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
Slide 8 www.edureka.co/r-for-analytics
Who Uses R : Domains
 Telecom
 Pharmaceuticals
 Financial Services
 Life Sciences
 Education, etc
Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
Slide 9 www.edureka.co/r-for-analytics
Types of Learning
Supervised Learning Unsupervised Learning
1. Uses a known dataset to make
predictions.
2. The training dataset includes
input data and response values.
3. From it, the supervised learning
algorithm builds a model to make
predictions of the response
values for a new dataset.
1. Draw inferences from datasets
consisting of input data without
labeled responses.
2. Used for exploratory data analysis
to find hidden patterns or grouping
in data
3. The most common unsupervised
learning method is cluster analysis.
Machine Learning
Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
Slide 10 www.edureka.co/r-for-analytics
Common Machine Learning Algorithms
Types of Learning
Supervised Learning
Unsupervised Learning
Algorithms
 Naïve Bayes
 Support Vector Machines
 Random Forests
 Decision Trees
Algorithms
 K-means
 Fuzzy Clustering
 Hierarchical Clustering
Gaussian mixture models
Self-organizing maps
Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
Slide 11 www.edureka.co/r-for-analytics
Linear Regression
Slide 12
What is Linear Regression??
Slide 13
 In statistics, linear regression is an approach for modeling the relationship between a scalar dependent variable y
and one or more explanatory variables (or independent variable) denoted X.
 The case of one explanatory variable is called simple linear regression.
 For more than one explanatory variable, the process is called multiple linear regression
 Data are modeled using linear predictor functions, and unknown model parameters are estimated from the data.
Where to Use Linear Regression??
Slide 14
Linear regression has many practical uses.
Most applications fall into one of the following two broad categories:
 If the goal is prediction, or forecasting, or reduction, linear regression can be used to fit a predictive model to an
observed data set of y and X values. After developing such a model, if an additional value of X is then given without
its accompanying value of y, the fitted model can be used to make a prediction of the value of y.
 Given a variable y and a number of variables X1, ..., Xp that may be related to y, linear regression analysis can be
applied to quantify the strength of the relationship between y and the Xj, to assess which Xj may have no
relationship with y at all, and to identify which subsets of the Xj contain redundant information about y.
Equation - Linear Regression??
Slide 15
Linear Regression Case-study
Slide 16
Problem Statement
Slide 17
Computer manufacturing company is trying to analyse the data of the price of a computer
with another independent variable like- Cpu speed, Hard disc, RAM, Screen Size, CD (yes/no),
produced by premium company(yes/no) and so on. Based on this data, company wants to
decide on the price of a new configuration of PC.
About the data:
The company dataset looks like this:
This problem can be solved by a linear regression model
The Computer_Data looks like this:
Slide 18

More Related Content

PDF
Linear Regression With R
PDF
KIT-601 Lecture Notes-UNIT-2.pdf
PDF
Business Analytics with R
PDF
IT-601 Lecture Notes-UNIT-2.pdf Data Analysis
PDF
Semantically Enriched Knowledge Extraction With Data Mining
PDF
Essential+Data+Science+Notes+-+A+Concise+PDF+Guide.pdf
PPTX
AlgorithmsModelsNov13.pptx
PDF
KIT-601 Lecture Notes-UNIT-1.pdf
Linear Regression With R
KIT-601 Lecture Notes-UNIT-2.pdf
Business Analytics with R
IT-601 Lecture Notes-UNIT-2.pdf Data Analysis
Semantically Enriched Knowledge Extraction With Data Mining
Essential+Data+Science+Notes+-+A+Concise+PDF+Guide.pdf
AlgorithmsModelsNov13.pptx
KIT-601 Lecture Notes-UNIT-1.pdf

Similar to Linear Regression with R programming.pptx (20)

PDF
DataScience_RoadMap_2023.pdf
PPTX
Regression with Microsoft Azure & Ms Excel
PDF
Python for Data Analysis: A Comprehensive Guide
PDF
Data Science Interview Questions PDF By ScholarHat
DOCX
SHAHBAZ_TECHNICAL_SEMINAR.docx
PDF
Introduction MAchine Learning . Machine Learning is trendy concept
PDF
Twitter Sentiment Analysis
PDF
IRJET - Comparative Analysis of GUI based Prediction of Parkinson Disease usi...
PDF
Data science mastery course in pitampura
PDF
Introduction to Data Analytics and data analytics life cycle
PPTX
Introduction to Data Science.pptx
PDF
THE IMPLICATION OF STATISTICAL ANALYSIS AND FEATURE ENGINEERING FOR MODEL BUI...
PDF
THE IMPLICATION OF STATISTICAL ANALYSIS AND FEATURE ENGINEERING FOR MODEL BUI...
PDF
THE IMPLICATION OF STATISTICAL ANALYSIS AND FEATURE ENGINEERING FOR MODEL BUI...
PDF
The Data Scientist’s Toolkit: Key Techniques for Extracting Value
DOCX
Running head CS688 – Data Analytics with R1CS688 – Data Analyt.docx
DOCX
Proceedings of the 2015 Industrial and Systems Engineering Res.docx
PPTX
skil of data science.pptx
PDF
Using R for Classification of Large Social Network Data
DataScience_RoadMap_2023.pdf
Regression with Microsoft Azure & Ms Excel
Python for Data Analysis: A Comprehensive Guide
Data Science Interview Questions PDF By ScholarHat
SHAHBAZ_TECHNICAL_SEMINAR.docx
Introduction MAchine Learning . Machine Learning is trendy concept
Twitter Sentiment Analysis
IRJET - Comparative Analysis of GUI based Prediction of Parkinson Disease usi...
Data science mastery course in pitampura
Introduction to Data Analytics and data analytics life cycle
Introduction to Data Science.pptx
THE IMPLICATION OF STATISTICAL ANALYSIS AND FEATURE ENGINEERING FOR MODEL BUI...
THE IMPLICATION OF STATISTICAL ANALYSIS AND FEATURE ENGINEERING FOR MODEL BUI...
THE IMPLICATION OF STATISTICAL ANALYSIS AND FEATURE ENGINEERING FOR MODEL BUI...
The Data Scientist’s Toolkit: Key Techniques for Extracting Value
Running head CS688 – Data Analytics with R1CS688 – Data Analyt.docx
Proceedings of the 2015 Industrial and Systems Engineering Res.docx
skil of data science.pptx
Using R for Classification of Large Social Network Data
Ad

More from anshikagoel52 (18)

PPT
Securing E-Commerce Networks Presentation.ppt
PPT
Measures of Central Tendency Presentation.ppt
PPTX
Supply Chain Management Sustainability.pptx
PPT
Consumer Empowerment and Responsible Practices.ppt
PPT
Green guide for healthcare and sustainability.ppt
PPTX
presentation sf_strategy_-_sustainable_finance_package_-_eesc_informal_meetin...
PPTX
Sustainable Development Goals Presentation.pptx
PPTX
Dividend Policy and Dividend Decision Theories.pptx
PPT
Johari Window Training Presentation .ppt
PPT
PPt on Innovation Management and its Sources.ppt
PPT
History of Science and Technology in India.ppt
PPTX
Clustering in Tableau for Beginers .pptx
PPT
Modeling in R Programming Language for Beginers.ppt
PPTX
Lean Management Operations Maangement.pptx
PPTX
Nurturing Technology innovation Management.pptx
PPTX
Technological Change in Organizations.pptx
PPTX
Cost of Capital Calculation and introduction.pptx
PPT
Introduction To Capital Budgeting Techniques.ppt
Securing E-Commerce Networks Presentation.ppt
Measures of Central Tendency Presentation.ppt
Supply Chain Management Sustainability.pptx
Consumer Empowerment and Responsible Practices.ppt
Green guide for healthcare and sustainability.ppt
presentation sf_strategy_-_sustainable_finance_package_-_eesc_informal_meetin...
Sustainable Development Goals Presentation.pptx
Dividend Policy and Dividend Decision Theories.pptx
Johari Window Training Presentation .ppt
PPt on Innovation Management and its Sources.ppt
History of Science and Technology in India.ppt
Clustering in Tableau for Beginers .pptx
Modeling in R Programming Language for Beginers.ppt
Lean Management Operations Maangement.pptx
Nurturing Technology innovation Management.pptx
Technological Change in Organizations.pptx
Cost of Capital Calculation and introduction.pptx
Introduction To Capital Budgeting Techniques.ppt
Ad

Recently uploaded (20)

PPTX
Qualitative Qantitative and Mixed Methods.pptx
PPTX
Acceptance and paychological effects of mandatory extra coach I classes.pptx
PPTX
Data_Analytics_and_PowerBI_Presentation.pptx
PDF
Recruitment and Placement PPT.pdfbjfibjdfbjfobj
PPTX
advance b rammar.pptxfdgdfgdfsgdfgsdgfdfgdfgsdfgdfgdfg
PPTX
oil_refinery_comprehensive_20250804084928 (1).pptx
PPT
ISS -ESG Data flows What is ESG and HowHow
PDF
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
PDF
Business Analytics and business intelligence.pdf
PDF
Mega Projects Data Mega Projects Data
PPTX
iec ppt-1 pptx icmr ppt on rehabilitation.pptx
PDF
BF and FI - Blockchain, fintech and Financial Innovation Lesson 2.pdf
PDF
TRAFFIC-MANAGEMENT-AND-ACCIDENT-INVESTIGATION-WITH-DRIVING-PDF-FILE.pdf
PPTX
Supervised vs unsupervised machine learning algorithms
PPTX
Introduction to machine learning and Linear Models
PDF
Clinical guidelines as a resource for EBP(1).pdf
PPTX
DISORDERS OF THE LIVER, GALLBLADDER AND PANCREASE (1).pptx
PPTX
Introduction to Firewall Analytics - Interfirewall and Transfirewall.pptx
PDF
annual-report-2024-2025 original latest.
PPT
Quality review (1)_presentation of this 21
Qualitative Qantitative and Mixed Methods.pptx
Acceptance and paychological effects of mandatory extra coach I classes.pptx
Data_Analytics_and_PowerBI_Presentation.pptx
Recruitment and Placement PPT.pdfbjfibjdfbjfobj
advance b rammar.pptxfdgdfgdfsgdfgsdgfdfgdfgsdfgdfgdfg
oil_refinery_comprehensive_20250804084928 (1).pptx
ISS -ESG Data flows What is ESG and HowHow
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
Business Analytics and business intelligence.pdf
Mega Projects Data Mega Projects Data
iec ppt-1 pptx icmr ppt on rehabilitation.pptx
BF and FI - Blockchain, fintech and Financial Innovation Lesson 2.pdf
TRAFFIC-MANAGEMENT-AND-ACCIDENT-INVESTIGATION-WITH-DRIVING-PDF-FILE.pdf
Supervised vs unsupervised machine learning algorithms
Introduction to machine learning and Linear Models
Clinical guidelines as a resource for EBP(1).pdf
DISORDERS OF THE LIVER, GALLBLADDER AND PANCREASE (1).pptx
Introduction to Firewall Analytics - Interfirewall and Transfirewall.pptx
annual-report-2024-2025 original latest.
Quality review (1)_presentation of this 21

Linear Regression with R programming.pptx

  • 2. Objectives Slide 2 What is data mining What is Business Analytics Stages of Analytics / data mining What is R Overview of Machine Learning  What is Linear Regression Case Study
  • 3. Data mining ?? Slide 3 Generally, data mining is the process of studying data from maximum possible dimensions and summarizing it into useful information Technically, data mining is the process of finding correlations or patterns among dozens of fields in large data generated from business Or you can say, data mining is the process finding useful information from the data and then devising knowledge out of it for improving future of our business » Data ?? Data are any facts, numbers, or text is getting produced by existing system » Information ?? The patterns, associations, or relationships among all this data can provide information » Knowledge ?? Information can be converted into knowledge about historical patterns and future trends. For example summary of sales in off season may help to start some offers in that period to increase sales
  • 4. Business Analytics Why Business Analytics is getting popular these days ? Cost of storing data Cost of processing data Slide 4
  • 5. Cross Industry standard Process for data mining ( CRISP – DM ) Stages of Analytics / Data Mining Slide 5
  • 6. What is R R is Programming Language R is Environment for Statistical Analysis R is Data Analysis Software Slide 6
  • 7. R : Characteristics Slide 7 Effective and fast data handling and storage facility A bunch of operators for calculations on arrays, lists, vectors etc A large integrated collection of tools for data analysis, and visualization Facilities for data analysis using graphs and display either directly at the computer or paper A well implemented and effective programming language called ‘S’ on top of which R is built A complete range of packages to extend and enrich the functionality of R
  • 8. Data Visualization in R This plot represents the locations of all the traffic signals in the city. It is recognizable as Toronto without any other geographic data being plotted - the structure of the city comes out in the data alone. Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions Slide 8 www.edureka.co/r-for-analytics
  • 9. Who Uses R : Domains  Telecom  Pharmaceuticals  Financial Services  Life Sciences  Education, etc Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions Slide 9 www.edureka.co/r-for-analytics
  • 10. Types of Learning Supervised Learning Unsupervised Learning 1. Uses a known dataset to make predictions. 2. The training dataset includes input data and response values. 3. From it, the supervised learning algorithm builds a model to make predictions of the response values for a new dataset. 1. Draw inferences from datasets consisting of input data without labeled responses. 2. Used for exploratory data analysis to find hidden patterns or grouping in data 3. The most common unsupervised learning method is cluster analysis. Machine Learning Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions Slide 10 www.edureka.co/r-for-analytics
  • 11. Common Machine Learning Algorithms Types of Learning Supervised Learning Unsupervised Learning Algorithms  Naïve Bayes  Support Vector Machines  Random Forests  Decision Trees Algorithms  K-means  Fuzzy Clustering  Hierarchical Clustering Gaussian mixture models Self-organizing maps Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions Slide 11 www.edureka.co/r-for-analytics
  • 13. What is Linear Regression?? Slide 13  In statistics, linear regression is an approach for modeling the relationship between a scalar dependent variable y and one or more explanatory variables (or independent variable) denoted X.  The case of one explanatory variable is called simple linear regression.  For more than one explanatory variable, the process is called multiple linear regression  Data are modeled using linear predictor functions, and unknown model parameters are estimated from the data.
  • 14. Where to Use Linear Regression?? Slide 14 Linear regression has many practical uses. Most applications fall into one of the following two broad categories:  If the goal is prediction, or forecasting, or reduction, linear regression can be used to fit a predictive model to an observed data set of y and X values. After developing such a model, if an additional value of X is then given without its accompanying value of y, the fitted model can be used to make a prediction of the value of y.  Given a variable y and a number of variables X1, ..., Xp that may be related to y, linear regression analysis can be applied to quantify the strength of the relationship between y and the Xj, to assess which Xj may have no relationship with y at all, and to identify which subsets of the Xj contain redundant information about y.
  • 15. Equation - Linear Regression?? Slide 15
  • 17. Problem Statement Slide 17 Computer manufacturing company is trying to analyse the data of the price of a computer with another independent variable like- Cpu speed, Hard disc, RAM, Screen Size, CD (yes/no), produced by premium company(yes/no) and so on. Based on this data, company wants to decide on the price of a new configuration of PC. About the data:
  • 18. The company dataset looks like this: This problem can be solved by a linear regression model The Computer_Data looks like this: Slide 18