SlideShare a Scribd company logo
CORRELATION AND LINEAR
REGRESSION
SIMPLE CORRELATION AND REGRESSION
ANALYSIS
AJENDRA SHARMA
CONTENTS
• WHAT IS CORRELATION
• TYPE OF RELATIONSHIP AND STRENGTH OF
ASSOCIATION
• PROPERTIES OF CORRELATION
• WHAT IS REGRESSION
• SIMPLE LINEAR REGRESSION
• REGRESSION LINE
• COEFFICIENT OF DETERMINATION
What is need of correlation?
 What happens to Sweater sales with increase in
temperature?
 What is the strength of association between them?
 Ice-cream sales vs temperature ?
 What is the strength of association between them?
 Which one of these two is stronger? How to quantify the
association?
What is Correlation
 It is a measure of association (linear association only)
 Formula for correlation coefficient
 r is the ratio of variance together and product of separate
variances
 r= cov(XY)/sd(x)*sd(y)
 r = [n(∑xy) – (∑ x)(∑ y)] / {[n(∑ x2
) – (∑ x)2
][n(∑ y2
) – (∑ y)2
]}1/2
 Where n is the number of data pairs, x is the independent
variable and y the dependent variable.
TYPE OF RELATIONSHIP
TYPE OF RELATIONSHIP
TYPE OF RELATIONSHIP
STRENGTH OF ASSOCIATION
 Correlation 0 - No linear
association
 Correlation 0 to 0.25 -
Negligible positive
association
 Correlation 0.25-0.5 - Weak
positive association
 Correlation 0.5-0.75 -
Moderate positive
association
 Correlation >0.75 - Very
Strong positive association
PROPERTIES OF CORRELATION
• -1 ≤ r ≤ +1
• r=0 represents no linear relationship between the two
Variables
• Correlation is unit free
Limitations:
• Though r measures how closely the two variables
approximate a straight line, it does not validly measures the
strength of nonlinear relationship
• When the sample size, n, is small we also have to be careful
with the reliability of the correlation
• Outliers could have a marked effect on r
REGRESSION
• Regression analysis is used to predict the value of one
variable (the dependent variable) on the basis of other
variables (the independent variables).
• In correlation, the two variables are treated as equals. In
regression, one variable is considered independent
(=predictor) variable (X) and the other the dependent
(=outcome) variable Y.
• Dependent variable: denoted Y
• Independent variables: denoted X1, X2, …, Xk
Y=β0 + β1X + ε
• Above model is referred to as simple linear regression. We
would be interested in estimating β0 and β1 from the data we
collect.
SIMPLE LINEAR REGRESSION
ANALYSIS
• If you know something about X, this knowledge helps you
predict something about Y.
Y=β0 + β1X + ε
Variables:
• X = Independent Variable (we provide this)
• Y = Dependent Variable (we observe this)
Parameters:
• β0 = Y-Intercept
• β1 = Slope
REGRESSION LINE
COEFFICIENT OF DETERMINATION
 The coefficient of determination is the portion of
the total variation in the dependent variable that
is explained by variation in the independent
variable
 The coefficient of determination is also called R-
squared and is denoted as R2
TYPE OF RELATIONSHIP
Correlation and regression

More Related Content

What's hot

R square vs adjusted r square
R square vs adjusted r squareR square vs adjusted r square
R square vs adjusted r square
Akhilesh Joshi
 
Logistic Regression Analysis
Logistic Regression AnalysisLogistic Regression Analysis
Logistic Regression Analysis
COSTARCH Analytical Consulting (P) Ltd.
 
Simple correlation & Regression analysis
Simple correlation & Regression analysisSimple correlation & Regression analysis
Simple correlation & Regression analysis
Afra Fathima
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
University of Jaffna
 
Partial and multiple correlation and regression
Partial and multiple correlation and regressionPartial and multiple correlation and regression
Partial and multiple correlation and regression
Kritika Jain
 
Regression analysis.
Regression analysis.Regression analysis.
Regression analysis.
sonia gupta
 
Mpc 006 - 02-03 partial and multiple correlation
Mpc 006 - 02-03 partial and multiple correlationMpc 006 - 02-03 partial and multiple correlation
Mpc 006 - 02-03 partial and multiple correlation
Vasant Kothari
 
Correlation and regression
Correlation and regressionCorrelation and regression
Correlation and regression
cbt1213
 
Multiple linear regression
Multiple linear regressionMultiple linear regression
Multiple linear regression
James Neill
 
Correlation and regression
Correlation and regressionCorrelation and regression
Correlation and regression
Mohit Asija
 
SIGN TEST SLIDE.ppt
SIGN TEST SLIDE.pptSIGN TEST SLIDE.ppt
SIGN TEST SLIDE.ppt
SikoBikoAreru
 
Correlation Analysis
Correlation AnalysisCorrelation Analysis
Correlation Analysis
Birinder Singh Gulati
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
Shameer P Hamsa
 
Correlation - Biostatistics
Correlation - BiostatisticsCorrelation - Biostatistics
Correlation - Biostatistics
Fahmida Swati
 
Linear regression
Linear regression Linear regression
Linear regression
Babasab Patil
 
Regression Analysis
Regression AnalysisRegression Analysis
Regression Analysis
Muhammad Fazeel
 
Correlation ppt...
Correlation ppt...Correlation ppt...
Correlation ppt...
Shruti Srivastava
 
Spearman’s rank correlation
Spearman’s rank correlation Spearman’s rank correlation
Spearman’s rank correlation
PritikaNeupane
 
Chi squared test
Chi squared testChi squared test
Chi squared test
Ramakanth Gadepalli
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
Ravi shankar
 

What's hot (20)

R square vs adjusted r square
R square vs adjusted r squareR square vs adjusted r square
R square vs adjusted r square
 
Logistic Regression Analysis
Logistic Regression AnalysisLogistic Regression Analysis
Logistic Regression Analysis
 
Simple correlation & Regression analysis
Simple correlation & Regression analysisSimple correlation & Regression analysis
Simple correlation & Regression analysis
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
 
Partial and multiple correlation and regression
Partial and multiple correlation and regressionPartial and multiple correlation and regression
Partial and multiple correlation and regression
 
Regression analysis.
Regression analysis.Regression analysis.
Regression analysis.
 
Mpc 006 - 02-03 partial and multiple correlation
Mpc 006 - 02-03 partial and multiple correlationMpc 006 - 02-03 partial and multiple correlation
Mpc 006 - 02-03 partial and multiple correlation
 
Correlation and regression
Correlation and regressionCorrelation and regression
Correlation and regression
 
Multiple linear regression
Multiple linear regressionMultiple linear regression
Multiple linear regression
 
Correlation and regression
Correlation and regressionCorrelation and regression
Correlation and regression
 
SIGN TEST SLIDE.ppt
SIGN TEST SLIDE.pptSIGN TEST SLIDE.ppt
SIGN TEST SLIDE.ppt
 
Correlation Analysis
Correlation AnalysisCorrelation Analysis
Correlation Analysis
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
 
Correlation - Biostatistics
Correlation - BiostatisticsCorrelation - Biostatistics
Correlation - Biostatistics
 
Linear regression
Linear regression Linear regression
Linear regression
 
Regression Analysis
Regression AnalysisRegression Analysis
Regression Analysis
 
Correlation ppt...
Correlation ppt...Correlation ppt...
Correlation ppt...
 
Spearman’s rank correlation
Spearman’s rank correlation Spearman’s rank correlation
Spearman’s rank correlation
 
Chi squared test
Chi squared testChi squared test
Chi squared test
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
 

Similar to Correlation and regression

Research Methodology-Chapter 14
Research Methodology-Chapter 14Research Methodology-Chapter 14
Research Methodology-Chapter 14
Javed Iqbal Kamyana
 
Regression and Co-Relation
Regression and Co-RelationRegression and Co-Relation
Regression and Co-Relation
nuwan udugampala
 
Correlations
CorrelationsCorrelations
Stat 1163 -correlation and regression
Stat 1163 -correlation and regressionStat 1163 -correlation and regression
Stat 1163 -correlation and regression
Khulna University
 
correlation.final.ppt (1).pptx
correlation.final.ppt (1).pptxcorrelation.final.ppt (1).pptx
correlation.final.ppt (1).pptx
ChieWoo1
 
Correlation and Regression.pptx
Correlation and Regression.pptxCorrelation and Regression.pptx
Correlation and Regression.pptx
Jayaprakash985685
 
CORRELATION AND REGRESSION.pptx
CORRELATION AND REGRESSION.pptxCORRELATION AND REGRESSION.pptx
CORRELATION AND REGRESSION.pptx
Vitalis Adongo
 
Unit 1 Correlation- BSRM.pdf
Unit 1 Correlation- BSRM.pdfUnit 1 Correlation- BSRM.pdf
Unit 1 Correlation- BSRM.pdf
Ravinandan A P
 
Correlation _ Regression Analysis statistics.pptx
Correlation _ Regression Analysis statistics.pptxCorrelation _ Regression Analysis statistics.pptx
Correlation _ Regression Analysis statistics.pptx
krunal soni
 
11. simple regression and correlation analysis
11. simple regression and correlation analysis11. simple regression and correlation analysis
11. simple regression and correlation analysis
Yohanes Kevin
 
regression and correlation
regression and correlationregression and correlation
regression and correlation
Priya Sharma
 
Regression
RegressionRegression
Regression
Regent University
 
Correlation
CorrelationCorrelation
Correlation
CorrelationCorrelation
Correlation
Anjali Awasthi
 
correlation and regression
correlation and regressioncorrelation and regression
correlation and regression
Faiezah Zulkifli
 
12 rhl gta
12 rhl gta12 rhl gta
12 rhl gta
Nabhoneil Basu
 
Regression & correlation coefficient
Regression & correlation coefficientRegression & correlation coefficient
Regression & correlation coefficient
MuhamamdZiaSamad
 
Linear regression
Linear regressionLinear regression
Linear regression
Regent University
 
RANDOM SIGNALS ANALYSIS pdf.pdf
RANDOM SIGNALS ANALYSIS pdf.pdfRANDOM SIGNALS ANALYSIS pdf.pdf
RANDOM SIGNALS ANALYSIS pdf.pdf
DarshanAher5
 
Correlation
CorrelationCorrelation
Correlation
Shrayas Suryakumar
 

Similar to Correlation and regression (20)

Research Methodology-Chapter 14
Research Methodology-Chapter 14Research Methodology-Chapter 14
Research Methodology-Chapter 14
 
Regression and Co-Relation
Regression and Co-RelationRegression and Co-Relation
Regression and Co-Relation
 
Correlations
CorrelationsCorrelations
Correlations
 
Stat 1163 -correlation and regression
Stat 1163 -correlation and regressionStat 1163 -correlation and regression
Stat 1163 -correlation and regression
 
correlation.final.ppt (1).pptx
correlation.final.ppt (1).pptxcorrelation.final.ppt (1).pptx
correlation.final.ppt (1).pptx
 
Correlation and Regression.pptx
Correlation and Regression.pptxCorrelation and Regression.pptx
Correlation and Regression.pptx
 
CORRELATION AND REGRESSION.pptx
CORRELATION AND REGRESSION.pptxCORRELATION AND REGRESSION.pptx
CORRELATION AND REGRESSION.pptx
 
Unit 1 Correlation- BSRM.pdf
Unit 1 Correlation- BSRM.pdfUnit 1 Correlation- BSRM.pdf
Unit 1 Correlation- BSRM.pdf
 
Correlation _ Regression Analysis statistics.pptx
Correlation _ Regression Analysis statistics.pptxCorrelation _ Regression Analysis statistics.pptx
Correlation _ Regression Analysis statistics.pptx
 
11. simple regression and correlation analysis
11. simple regression and correlation analysis11. simple regression and correlation analysis
11. simple regression and correlation analysis
 
regression and correlation
regression and correlationregression and correlation
regression and correlation
 
Regression
RegressionRegression
Regression
 
Correlation
CorrelationCorrelation
Correlation
 
Correlation
CorrelationCorrelation
Correlation
 
correlation and regression
correlation and regressioncorrelation and regression
correlation and regression
 
12 rhl gta
12 rhl gta12 rhl gta
12 rhl gta
 
Regression & correlation coefficient
Regression & correlation coefficientRegression & correlation coefficient
Regression & correlation coefficient
 
Linear regression
Linear regressionLinear regression
Linear regression
 
RANDOM SIGNALS ANALYSIS pdf.pdf
RANDOM SIGNALS ANALYSIS pdf.pdfRANDOM SIGNALS ANALYSIS pdf.pdf
RANDOM SIGNALS ANALYSIS pdf.pdf
 
Correlation
CorrelationCorrelation
Correlation
 

Recently uploaded

MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
Celine George
 
Temple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation resultsTemple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation results
Krassimira Luka
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
Nguyen Thanh Tu Collection
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
Nicholas Montgomery
 
IGCSE Biology Chapter 14- Reproduction in Plants.pdf
IGCSE Biology Chapter 14- Reproduction in Plants.pdfIGCSE Biology Chapter 14- Reproduction in Plants.pdf
IGCSE Biology Chapter 14- Reproduction in Plants.pdf
Amin Marwan
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Fajar Baskoro
 
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
imrankhan141184
 
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
สมใจ จันสุกสี
 
Solutons Maths Escape Room Spatial .pptx
Solutons Maths Escape Room Spatial .pptxSolutons Maths Escape Room Spatial .pptx
Solutons Maths Escape Room Spatial .pptx
spdendr
 
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) CurriculumPhilippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
MJDuyan
 
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
EduSkills OECD
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
Jyoti Chand
 
How to deliver Powerpoint Presentations.pptx
How to deliver Powerpoint  Presentations.pptxHow to deliver Powerpoint  Presentations.pptx
How to deliver Powerpoint Presentations.pptx
HajraNaeem15
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
TechSoup
 
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching AptitudeUGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
S. Raj Kumar
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
adhitya5119
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Denish Jangid
 

Recently uploaded (20)

MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
 
Temple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation resultsTemple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation results
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
 
IGCSE Biology Chapter 14- Reproduction in Plants.pdf
IGCSE Biology Chapter 14- Reproduction in Plants.pdfIGCSE Biology Chapter 14- Reproduction in Plants.pdf
IGCSE Biology Chapter 14- Reproduction in Plants.pdf
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
 
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
 
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
 
Solutons Maths Escape Room Spatial .pptx
Solutons Maths Escape Room Spatial .pptxSolutons Maths Escape Room Spatial .pptx
Solutons Maths Escape Room Spatial .pptx
 
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) CurriculumPhilippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
 
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
 
How to deliver Powerpoint Presentations.pptx
How to deliver Powerpoint  Presentations.pptxHow to deliver Powerpoint  Presentations.pptx
How to deliver Powerpoint Presentations.pptx
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
 
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching AptitudeUGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
 

Correlation and regression

  • 1. CORRELATION AND LINEAR REGRESSION SIMPLE CORRELATION AND REGRESSION ANALYSIS AJENDRA SHARMA
  • 2. CONTENTS • WHAT IS CORRELATION • TYPE OF RELATIONSHIP AND STRENGTH OF ASSOCIATION • PROPERTIES OF CORRELATION • WHAT IS REGRESSION • SIMPLE LINEAR REGRESSION • REGRESSION LINE • COEFFICIENT OF DETERMINATION
  • 3. What is need of correlation?  What happens to Sweater sales with increase in temperature?  What is the strength of association between them?  Ice-cream sales vs temperature ?  What is the strength of association between them?  Which one of these two is stronger? How to quantify the association?
  • 4. What is Correlation  It is a measure of association (linear association only)  Formula for correlation coefficient  r is the ratio of variance together and product of separate variances  r= cov(XY)/sd(x)*sd(y)  r = [n(∑xy) – (∑ x)(∑ y)] / {[n(∑ x2 ) – (∑ x)2 ][n(∑ y2 ) – (∑ y)2 ]}1/2  Where n is the number of data pairs, x is the independent variable and y the dependent variable.
  • 8. STRENGTH OF ASSOCIATION  Correlation 0 - No linear association  Correlation 0 to 0.25 - Negligible positive association  Correlation 0.25-0.5 - Weak positive association  Correlation 0.5-0.75 - Moderate positive association  Correlation >0.75 - Very Strong positive association
  • 9. PROPERTIES OF CORRELATION • -1 ≤ r ≤ +1 • r=0 represents no linear relationship between the two Variables • Correlation is unit free Limitations: • Though r measures how closely the two variables approximate a straight line, it does not validly measures the strength of nonlinear relationship • When the sample size, n, is small we also have to be careful with the reliability of the correlation • Outliers could have a marked effect on r
  • 10. REGRESSION • Regression analysis is used to predict the value of one variable (the dependent variable) on the basis of other variables (the independent variables). • In correlation, the two variables are treated as equals. In regression, one variable is considered independent (=predictor) variable (X) and the other the dependent (=outcome) variable Y. • Dependent variable: denoted Y • Independent variables: denoted X1, X2, …, Xk Y=β0 + β1X + ε • Above model is referred to as simple linear regression. We would be interested in estimating β0 and β1 from the data we collect.
  • 11. SIMPLE LINEAR REGRESSION ANALYSIS • If you know something about X, this knowledge helps you predict something about Y. Y=β0 + β1X + ε Variables: • X = Independent Variable (we provide this) • Y = Dependent Variable (we observe this) Parameters: • β0 = Y-Intercept • β1 = Slope
  • 13. COEFFICIENT OF DETERMINATION  The coefficient of determination is the portion of the total variation in the dependent variable that is explained by variation in the independent variable  The coefficient of determination is also called R- squared and is denoted as R2