SlideShare a Scribd company logo
1 of 15
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

F Distribution
F  DistributionF  Distribution
F Distribution
jravish
 

What's hot (20)

Regression ppt
Regression pptRegression ppt
Regression ppt
 
Simple linear regression
Simple linear regressionSimple linear regression
Simple linear regression
 
multiple regression
multiple regressionmultiple regression
multiple regression
 
Correlation and Regression ppt
Correlation and Regression pptCorrelation and Regression ppt
Correlation and Regression ppt
 
Analysis of Variance (ANOVA)
Analysis of Variance (ANOVA)Analysis of Variance (ANOVA)
Analysis of Variance (ANOVA)
 
Linear regression
Linear regressionLinear regression
Linear regression
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
 
F Distribution
F  DistributionF  Distribution
F Distribution
 
Correlation ppt...
Correlation ppt...Correlation ppt...
Correlation ppt...
 
Presentation On Regression
Presentation On RegressionPresentation On Regression
Presentation On Regression
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
 
Simple linear regression
Simple linear regressionSimple linear regression
Simple linear regression
 
Correlation Analysis
Correlation AnalysisCorrelation Analysis
Correlation Analysis
 
Regression
Regression Regression
Regression
 
Correlation analysis
Correlation analysisCorrelation analysis
Correlation analysis
 
Linear regression theory
Linear regression theoryLinear regression theory
Linear regression theory
 
Probability distribution
Probability distributionProbability distribution
Probability distribution
 
Correlation and regression analysis
Correlation and regression analysisCorrelation and regression analysis
Correlation and regression analysis
 
Regression Analysis
Regression AnalysisRegression Analysis
Regression Analysis
 
Multivariate analysis
Multivariate analysisMultivariate analysis
Multivariate analysis
 

Similar to Correlation and regression

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
 
correlation and regression
correlation and regressioncorrelation and regression
correlation and regression
Faiezah Zulkifli
 
RANDOM SIGNALS ANALYSIS pdf.pdf
RANDOM SIGNALS ANALYSIS pdf.pdfRANDOM SIGNALS ANALYSIS pdf.pdf
RANDOM SIGNALS ANALYSIS pdf.pdf
DarshanAher5
 

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

1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Recently uploaded (20)

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
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
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
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.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
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 

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