SlideShare a Scribd company logo
1 of 15
Download to read offline
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
correlationandregression-180119033043.pdf

More Related Content

Similar to correlationandregression-180119033043.pdf

Similar to correlationandregression-180119033043.pdf (20)

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
 
Regression & correlation
Regression & correlationRegression & correlation
Regression & correlation
 
regression
regressionregression
regression
 
correlation.pptx
correlation.pptxcorrelation.pptx
correlation.pptx
 
STATISTICAL REGRESSION MODELS
STATISTICAL REGRESSION MODELSSTATISTICAL REGRESSION MODELS
STATISTICAL REGRESSION MODELS
 
Statistics ppt
Statistics pptStatistics ppt
Statistics ppt
 
Simple correlation & Regression analysis
Simple correlation & Regression analysisSimple correlation & Regression analysis
Simple correlation & Regression analysis
 
IDS.pdf
IDS.pdfIDS.pdf
IDS.pdf
 
Correlation and regression
Correlation and regressionCorrelation and regression
Correlation and regression
 

Recently uploaded

Dr. Admir Softic_ presentation_Green Club_ENG.pdf
Dr. Admir Softic_ presentation_Green Club_ENG.pdfDr. Admir Softic_ presentation_Green Club_ENG.pdf
Dr. Admir Softic_ presentation_Green Club_ENG.pdfAdmir Softic
 
Call Girls Pune Just Call 9907093804 Top Class Call Girl Service Available
Call Girls Pune Just Call 9907093804 Top Class Call Girl Service AvailableCall Girls Pune Just Call 9907093804 Top Class Call Girl Service Available
Call Girls Pune Just Call 9907093804 Top Class Call Girl Service AvailableDipal Arora
 
Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...
Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...
Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...Lviv Startup Club
 
VIP Call Girls In Saharaganj ( Lucknow ) 🔝 8923113531 🔝 Cash Payment (COD) 👒
VIP Call Girls In Saharaganj ( Lucknow  ) 🔝 8923113531 🔝  Cash Payment (COD) 👒VIP Call Girls In Saharaganj ( Lucknow  ) 🔝 8923113531 🔝  Cash Payment (COD) 👒
VIP Call Girls In Saharaganj ( Lucknow ) 🔝 8923113531 🔝 Cash Payment (COD) 👒anilsa9823
 
7.pdf This presentation captures many uses and the significance of the number...
7.pdf This presentation captures many uses and the significance of the number...7.pdf This presentation captures many uses and the significance of the number...
7.pdf This presentation captures many uses and the significance of the number...Paul Menig
 
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779Best VIP Call Girls Noida Sector 40 Call Me: 8448380779
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779Delhi Call girls
 
Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...
Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...
Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...anilsa9823
 
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...lizamodels9
 
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...amitlee9823
 
Monte Carlo simulation : Simulation using MCSM
Monte Carlo simulation : Simulation using MCSMMonte Carlo simulation : Simulation using MCSM
Monte Carlo simulation : Simulation using MCSMRavindra Nath Shukla
 
Boost the utilization of your HCL environment by reevaluating use cases and f...
Boost the utilization of your HCL environment by reevaluating use cases and f...Boost the utilization of your HCL environment by reevaluating use cases and f...
Boost the utilization of your HCL environment by reevaluating use cases and f...Roland Driesen
 
Famous Olympic Siblings from the 21st Century
Famous Olympic Siblings from the 21st CenturyFamous Olympic Siblings from the 21st Century
Famous Olympic Siblings from the 21st Centuryrwgiffor
 
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...Aggregage
 
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...lizamodels9
 
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...Dipal Arora
 
Organizational Transformation Lead with Culture
Organizational Transformation Lead with CultureOrganizational Transformation Lead with Culture
Organizational Transformation Lead with CultureSeta Wicaksana
 
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...amitlee9823
 
Insurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageInsurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageMatteo Carbone
 

Recently uploaded (20)

Dr. Admir Softic_ presentation_Green Club_ENG.pdf
Dr. Admir Softic_ presentation_Green Club_ENG.pdfDr. Admir Softic_ presentation_Green Club_ENG.pdf
Dr. Admir Softic_ presentation_Green Club_ENG.pdf
 
Call Girls Pune Just Call 9907093804 Top Class Call Girl Service Available
Call Girls Pune Just Call 9907093804 Top Class Call Girl Service AvailableCall Girls Pune Just Call 9907093804 Top Class Call Girl Service Available
Call Girls Pune Just Call 9907093804 Top Class Call Girl Service Available
 
Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...
Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...
Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...
 
VIP Call Girls In Saharaganj ( Lucknow ) 🔝 8923113531 🔝 Cash Payment (COD) 👒
VIP Call Girls In Saharaganj ( Lucknow  ) 🔝 8923113531 🔝  Cash Payment (COD) 👒VIP Call Girls In Saharaganj ( Lucknow  ) 🔝 8923113531 🔝  Cash Payment (COD) 👒
VIP Call Girls In Saharaganj ( Lucknow ) 🔝 8923113531 🔝 Cash Payment (COD) 👒
 
7.pdf This presentation captures many uses and the significance of the number...
7.pdf This presentation captures many uses and the significance of the number...7.pdf This presentation captures many uses and the significance of the number...
7.pdf This presentation captures many uses and the significance of the number...
 
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779Best VIP Call Girls Noida Sector 40 Call Me: 8448380779
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779
 
Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...
Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...
Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...
 
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabiunwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
 
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
 
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
 
Forklift Operations: Safety through Cartoons
Forklift Operations: Safety through CartoonsForklift Operations: Safety through Cartoons
Forklift Operations: Safety through Cartoons
 
Monte Carlo simulation : Simulation using MCSM
Monte Carlo simulation : Simulation using MCSMMonte Carlo simulation : Simulation using MCSM
Monte Carlo simulation : Simulation using MCSM
 
Boost the utilization of your HCL environment by reevaluating use cases and f...
Boost the utilization of your HCL environment by reevaluating use cases and f...Boost the utilization of your HCL environment by reevaluating use cases and f...
Boost the utilization of your HCL environment by reevaluating use cases and f...
 
Famous Olympic Siblings from the 21st Century
Famous Olympic Siblings from the 21st CenturyFamous Olympic Siblings from the 21st Century
Famous Olympic Siblings from the 21st Century
 
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
 
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
 
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
 
Organizational Transformation Lead with Culture
Organizational Transformation Lead with CultureOrganizational Transformation Lead with Culture
Organizational Transformation Lead with Culture
 
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
 
Insurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageInsurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usage
 

correlationandregression-180119033043.pdf

  • 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