SlideShare a Scribd company logo
1 of 20
Program Name : B.Tech CSE
Semester : 5th
Course Name: Machine Learning
Course Code:PEC-CS-D-501 (I)
Facilitator Name: Aastha
Introduction to Regression
Analysis
Slide-8
 Regression analysis is used to:
 Predict the value of a dependent variable based on the
value of at least one independent variable
 Explain the impact of changes in an independent
variable on the dependent variable
Dependent variable: the variable we wish to predict
or explain
Independent variable: the variable used to explain
the dependent variable
Simple Linear Regression Model
Slide-9
 Only one independent variable, X
 Relationship between X and Y is
described by a linear function
 Changes in Y are assumed to be caused
by changes in X
Types of Relationships
Slide-10
Y
Y
X
Y
Y
X
Linear relationships Curvilinear relationships
X X
Types of Relationships
Slide-11
Y
Y
X
Y
Y
X
Strong relationships Weak relationships
(continued)
X X
Types of Relationships
Slide-12
Y
X
Y
X
No relationship
(continued)
Yi  β0  β1Xi
Linear component
Simple Linear Regression Model
Slide-13
Population
Y intercept
Population
Slope
Coefficient
Random
Error
term
Dependent
Variable
Independent
Variable
 εi
Random Error
component
Random Error
ifor this X value
X
Y
Observed Value
of Y for Xi
Predicted Value
of Y for Xi
Yi  β0  β1Xi  εi
Xi
Slope = β1
Simple Linear Regression
Model
(continued)
Slide-14
Intercept = β0
εi
Yˆi  b0  b1Xi
The simple linear regression equation provides an
estimate of the population regression line
Simple Linear Regression
Equation (Prediction Line)
Slide-15
Estimate of
the regression
intercept
Estimate of the
regression slope
Estimated
(or predicted)
Y value for
observation i
Value of X for
observation i
The individual random error terms ei have a mean of zero
Sample Data for House Price
Model
Slide-16
House Price in $1000s
(Y)
Square Feet
(X)
245 1400
312 1600
279 1700
308 1875
199 1100
219 1550
405 2350
324 2450
319 1425
255 1700
Regression Using Excel
Slide-17
 Tools / Data Analysis / Regression
Assumptions of Regression
Department of Statistics, ITS Surabaya Slide-18
Use the acronym LINE:
 Linearity
 The underlying relationship between X and Y is linear
 Independence of Errors
 Error values are statistically independent
 Normality of Error
 Error values (ε) are normally distributed for any given value of
X
 Equal Variance (Homoscedasticity)
 The probability distribution of the errors has constant variance
Pitfalls of Regression Analysis
Department of Statistics, ITS Surabaya Slide-19
 Lacking an awareness of the assumptions
underlying least-squares regression
 Not knowing how to evaluate the assumptions
 Not knowing the alternatives to least-squares
regression if a particular assumption is violated
 Using a regression model without knowledge of
the subject matter
 Extrapolating outside the relevant range
9/10/2020 20
Aravali College of Engineering And Management
Jasana, Tigoan Road, Neharpar, Faridabad, Delhi NCR
Toll Free Number : 91- 8527538785
Website : www.acem.edu.in

More Related Content

Similar to Acem linearregression

lecture No. 3a.ppt
lecture No. 3a.pptlecture No. 3a.ppt
lecture No. 3a.pptHamidUllah50
 
Simple linear regression and correlation
Simple linear regression and correlationSimple linear regression and correlation
Simple linear regression and correlationShakeel Nouman
 
Presentasi Tentang Regresi Linear
Presentasi Tentang Regresi LinearPresentasi Tentang Regresi Linear
Presentasi Tentang Regresi Lineardessybudiyanti
 
Simple Linier Regression
Simple Linier RegressionSimple Linier Regression
Simple Linier Regressiondessybudiyanti
 
linear Regression, multiple Regression and Annova
linear Regression, multiple Regression and Annovalinear Regression, multiple Regression and Annova
linear Regression, multiple Regression and AnnovaMansi Rastogi
 
ML-UNIT-IV complete notes download here
ML-UNIT-IV  complete notes download hereML-UNIT-IV  complete notes download here
ML-UNIT-IV complete notes download herekeerthanakshatriya20
 
TTests.ppt
TTests.pptTTests.ppt
TTests.pptMUzair21
 
simple regression-1.pdf
simple regression-1.pdfsimple regression-1.pdf
simple regression-1.pdfBabulShaikh1
 
SPSS statistics - get help using SPSS
SPSS statistics - get help using SPSSSPSS statistics - get help using SPSS
SPSS statistics - get help using SPSScsula its training
 
Business Quantitative - Lecture 2
Business Quantitative - Lecture 2Business Quantitative - Lecture 2
Business Quantitative - Lecture 2saark
 

Similar to Acem linearregression (20)

lecture No. 3a.ppt
lecture No. 3a.pptlecture No. 3a.ppt
lecture No. 3a.ppt
 
Simple linear regression and correlation
Simple linear regression and correlationSimple linear regression and correlation
Simple linear regression and correlation
 
Presentasi Tentang Regresi Linear
Presentasi Tentang Regresi LinearPresentasi Tentang Regresi Linear
Presentasi Tentang Regresi Linear
 
Simple Linier Regression
Simple Linier RegressionSimple Linier Regression
Simple Linier Regression
 
linear Regression, multiple Regression and Annova
linear Regression, multiple Regression and Annovalinear Regression, multiple Regression and Annova
linear Regression, multiple Regression and Annova
 
metod linearne regresije
 metod linearne  regresije metod linearne  regresije
metod linearne regresije
 
ML-UNIT-IV complete notes download here
ML-UNIT-IV  complete notes download hereML-UNIT-IV  complete notes download here
ML-UNIT-IV complete notes download here
 
Chap11 simple regression
Chap11 simple regressionChap11 simple regression
Chap11 simple regression
 
TTests.ppt
TTests.pptTTests.ppt
TTests.ppt
 
simple regression-1.pdf
simple regression-1.pdfsimple regression-1.pdf
simple regression-1.pdf
 
SPSS
SPSSSPSS
SPSS
 
SPSS statistics - get help using SPSS
SPSS statistics - get help using SPSSSPSS statistics - get help using SPSS
SPSS statistics - get help using SPSS
 
Business statistics-ii-aarhus-bss
Business statistics-ii-aarhus-bssBusiness statistics-ii-aarhus-bss
Business statistics-ii-aarhus-bss
 
Msb12e ppt ch11
Msb12e ppt ch11Msb12e ppt ch11
Msb12e ppt ch11
 
Reg
RegReg
Reg
 
Ders 2 ols .ppt
Ders 2 ols .pptDers 2 ols .ppt
Ders 2 ols .ppt
 
Regression
RegressionRegression
Regression
 
Regression Analysis
Regression AnalysisRegression Analysis
Regression Analysis
 
Regression
RegressionRegression
Regression
 
Business Quantitative - Lecture 2
Business Quantitative - Lecture 2Business Quantitative - Lecture 2
Business Quantitative - Lecture 2
 

More from Aastha Kohli

Acem computer devices
Acem computer devicesAcem computer devices
Acem computer devicesAastha Kohli
 
Acem computer software
Acem computer softwareAcem computer software
Acem computer softwareAastha Kohli
 
Acem computerhardware
Acem computerhardwareAcem computerhardware
Acem computerhardwareAastha Kohli
 
Acem neuralnetworks
Acem neuralnetworksAcem neuralnetworks
Acem neuralnetworksAastha Kohli
 
Acem projectwriting
Acem projectwritingAcem projectwriting
Acem projectwritingAastha Kohli
 
Acem problem identification
Acem problem identificationAcem problem identification
Acem problem identificationAastha Kohli
 
Acem basic network concepts
Acem  basic network conceptsAcem  basic network concepts
Acem basic network conceptsAastha Kohli
 
Acem bayes classifier
Acem bayes classifierAcem bayes classifier
Acem bayes classifierAastha Kohli
 
Acem machine learning
Acem machine learningAcem machine learning
Acem machine learningAastha Kohli
 
Acem machine learning
Acem machine learningAcem machine learning
Acem machine learningAastha Kohli
 
Acem AI presentation
Acem AI presentationAcem AI presentation
Acem AI presentationAastha Kohli
 
Acem web designing
Acem web designingAcem web designing
Acem web designingAastha Kohli
 
Acem cse data analytics (1)
Acem cse data analytics (1)Acem cse data analytics (1)
Acem cse data analytics (1)Aastha Kohli
 

More from Aastha Kohli (17)

Acem computer devices
Acem computer devicesAcem computer devices
Acem computer devices
 
Acem computer software
Acem computer softwareAcem computer software
Acem computer software
 
Acem computerhardware
Acem computerhardwareAcem computerhardware
Acem computerhardware
 
Acem numbersystem
Acem numbersystemAcem numbersystem
Acem numbersystem
 
Acem neuralnetworks
Acem neuralnetworksAcem neuralnetworks
Acem neuralnetworks
 
Acem projectwriting
Acem projectwritingAcem projectwriting
Acem projectwriting
 
Acem problem identification
Acem problem identificationAcem problem identification
Acem problem identification
 
Acem lan
Acem lanAcem lan
Acem lan
 
Acem basic network concepts
Acem  basic network conceptsAcem  basic network concepts
Acem basic network concepts
 
Acem sad
Acem sadAcem sad
Acem sad
 
Acem www
Acem wwwAcem www
Acem www
 
Acem bayes classifier
Acem bayes classifierAcem bayes classifier
Acem bayes classifier
 
Acem machine learning
Acem machine learningAcem machine learning
Acem machine learning
 
Acem machine learning
Acem machine learningAcem machine learning
Acem machine learning
 
Acem AI presentation
Acem AI presentationAcem AI presentation
Acem AI presentation
 
Acem web designing
Acem web designingAcem web designing
Acem web designing
 
Acem cse data analytics (1)
Acem cse data analytics (1)Acem cse data analytics (1)
Acem cse data analytics (1)
 

Recently uploaded

Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfChris Hunter
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIShubhangi Sonawane
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxNikitaBankoti2
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 

Recently uploaded (20)

Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 

Acem linearregression

  • 1. Program Name : B.Tech CSE Semester : 5th Course Name: Machine Learning Course Code:PEC-CS-D-501 (I) Facilitator Name: Aastha
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8. Introduction to Regression Analysis Slide-8  Regression analysis is used to:  Predict the value of a dependent variable based on the value of at least one independent variable  Explain the impact of changes in an independent variable on the dependent variable Dependent variable: the variable we wish to predict or explain Independent variable: the variable used to explain the dependent variable
  • 9. Simple Linear Regression Model Slide-9  Only one independent variable, X  Relationship between X and Y is described by a linear function  Changes in Y are assumed to be caused by changes in X
  • 10. Types of Relationships Slide-10 Y Y X Y Y X Linear relationships Curvilinear relationships X X
  • 11. Types of Relationships Slide-11 Y Y X Y Y X Strong relationships Weak relationships (continued) X X
  • 12. Types of Relationships Slide-12 Y X Y X No relationship (continued)
  • 13. Yi  β0  β1Xi Linear component Simple Linear Regression Model Slide-13 Population Y intercept Population Slope Coefficient Random Error term Dependent Variable Independent Variable  εi Random Error component
  • 14. Random Error ifor this X value X Y Observed Value of Y for Xi Predicted Value of Y for Xi Yi  β0  β1Xi  εi Xi Slope = β1 Simple Linear Regression Model (continued) Slide-14 Intercept = β0 εi
  • 15. Yˆi  b0  b1Xi The simple linear regression equation provides an estimate of the population regression line Simple Linear Regression Equation (Prediction Line) Slide-15 Estimate of the regression intercept Estimate of the regression slope Estimated (or predicted) Y value for observation i Value of X for observation i The individual random error terms ei have a mean of zero
  • 16. Sample Data for House Price Model Slide-16 House Price in $1000s (Y) Square Feet (X) 245 1400 312 1600 279 1700 308 1875 199 1100 219 1550 405 2350 324 2450 319 1425 255 1700
  • 17. Regression Using Excel Slide-17  Tools / Data Analysis / Regression
  • 18. Assumptions of Regression Department of Statistics, ITS Surabaya Slide-18 Use the acronym LINE:  Linearity  The underlying relationship between X and Y is linear  Independence of Errors  Error values are statistically independent  Normality of Error  Error values (ε) are normally distributed for any given value of X  Equal Variance (Homoscedasticity)  The probability distribution of the errors has constant variance
  • 19. Pitfalls of Regression Analysis Department of Statistics, ITS Surabaya Slide-19  Lacking an awareness of the assumptions underlying least-squares regression  Not knowing how to evaluate the assumptions  Not knowing the alternatives to least-squares regression if a particular assumption is violated  Using a regression model without knowledge of the subject matter  Extrapolating outside the relevant range
  • 20. 9/10/2020 20 Aravali College of Engineering And Management Jasana, Tigoan Road, Neharpar, Faridabad, Delhi NCR Toll Free Number : 91- 8527538785 Website : www.acem.edu.in