SlideShare una empresa de Scribd logo
1 de 23
Correlation(Pearson & spearman) 
&Linear Regression
Correlation 
 Semantically, Correlation means Co-together and 
Relation. 
 Statistical correlation is a statistical technique which 
tells us if two variables are related.
PEARSON CORRELATION 
 measures the degree of linear association between 
two interval scaled variables analysis of the 
relationship between two quantitative outcomes, 
e.g., height and weight
Assumption under Pearson’s 
Correlation Coefficient 
 Assumption 1: The correlation coefficient r assumes 
that the two variables measured 
form a bivariate normal distribution population. 
 Assumption 2: The correlation coefficient r measures 
only linear associations: how nearly the data 
falls on a straight line. It is not a good summary of 
the association if the scatterplot has a nonlinear 
(curved) pattern.
Assumptions Contd. 
 Assumption 3: The correlation coefficient r is not a 
good summary of association if the data are 
heteroscedastic.(when random variables have the 
same finite variance. It is also known as homogenity 
of variance) 
 Assumption 4: The correlation coefficient r is not a 
good summary of association if the data have 
outliers.
Strength of Relationship 
 r lies between -1 and 1. Values near 0 means no (linear) 
correlation and values near ± 1 means very strong 
correlation. 

Interpretation of the value of r
Coefficient of Determination 
 Pearson's r can be squared , r 2, to derive a 
coefficient of determination. 
 Coefficient of determination - the portion of 
variability in one of the variables that can be 
accounted for by variability in the second 
variable
Example 
 Pearson's r can be squared , r 2 
 If r=0.5, then r2=0.25 If r=0.7 then r2=0.49 
 Thus while r=0.5 versus 0.7 might not look so 
different in terms of strength, r2 tells us that r=0.7 
accounts for about twice the variability relative to 
r=0.5
Spearman’s Rank Correlation 
 Spearman's rank correlation coefficient 
or Spearman's rho, is a measure of statistical 
dependence between two variables.
Interpretation 
 The sign of the Spearman correlation indicates the 
direction of association between X (the independent 
variable) and Y (the dependent variable). If Y tends to 
increase when X increases, the Spearman correlation 
coefficient is positive. If Y tends to decrease when X 
increases, the Spearman correlation coefficient is 
negative. A Spearman correlation of zero indicates 
that there is no tendency for Y to either increase or 
decrease when X increases
Repeated Ranks 
 If there is more 
than one item with 
the same value , 
then they are 
given a common 
rank which is 
average of their 
respective ranks 
as shown in the 
table.
 The raw data in the 
table below is used to 
calculate the 
correlation between 
the IQ of an with the 
number of hours 
spent in front 
of TV per week. 
Example
Example Contd.
Regression 
 One variable is a direct cause of the other or if the 
value of one variable is changed, then as a direct 
consequence, the other variable also change or if the 
main purpose of the analysis is prediction of one 
variable from the other 

Regression 
 Regression: the dependence of dependent variable Y 
on the independent variable X. 
 Relationship is summarized by a regression equation. 
y = a + bx 
 A=intercept at y axis 
 B=regression coefficient
The Least Squares Method 
 The line of regression is the line which gives the best 
estimate to the value of one variable for any specific 
value of the other variable. Thus the line of regression 
is the line of “best fit” and is Obtained by the principle 
of least squares. 
 This principle consists in minimizing the sum of the 
squares of the deviations of the actual values of y 
from their estimate values given by the line of best fit
Formulas to be used
Example 
 Fit a least square line to the following data
Solution
THANK YOU.

Más contenido relacionado

La actualidad más candente

La actualidad más candente (20)

Correlation Analysis
Correlation AnalysisCorrelation Analysis
Correlation Analysis
 
Regression
RegressionRegression
Regression
 
2.4 Scatterplots, correlation, and regression
2.4 Scatterplots, correlation, and regression2.4 Scatterplots, correlation, and regression
2.4 Scatterplots, correlation, and regression
 
correlation and regression
correlation and regressioncorrelation and regression
correlation and regression
 
Simple linear regression
Simple linear regressionSimple linear regression
Simple linear regression
 
Pearson's correlation
Pearson's  correlationPearson's  correlation
Pearson's correlation
 
Linear regression and correlation analysis ppt @ bec doms
Linear regression and correlation analysis ppt @ bec domsLinear regression and correlation analysis ppt @ bec doms
Linear regression and correlation analysis ppt @ bec doms
 
Regression analysis.
Regression analysis.Regression analysis.
Regression analysis.
 
Regression Analysis
Regression AnalysisRegression Analysis
Regression Analysis
 
Chapter 10
Chapter 10Chapter 10
Chapter 10
 
Regression
RegressionRegression
Regression
 
Presentation On Regression
Presentation On RegressionPresentation On Regression
Presentation On Regression
 
Correlation and Regression
Correlation and RegressionCorrelation and Regression
Correlation and Regression
 
Simple Correlation : Karl Pearson’s Correlation co- efficient and Spearman’s ...
Simple Correlation : Karl Pearson’s Correlation co- efficient and Spearman’s ...Simple Correlation : Karl Pearson’s Correlation co- efficient and Spearman’s ...
Simple Correlation : Karl Pearson’s Correlation co- efficient and Spearman’s ...
 
Correlation and Regression
Correlation and Regression Correlation and Regression
Correlation and Regression
 
Regression
RegressionRegression
Regression
 
Correlation IN STATISTICS
Correlation IN STATISTICSCorrelation IN STATISTICS
Correlation IN STATISTICS
 
Correlations using SPSS
Correlations using SPSSCorrelations using SPSS
Correlations using SPSS
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
 

Destacado (8)

regression and correlation
regression and correlationregression and correlation
regression and correlation
 
Chi square test final
Chi square test finalChi square test final
Chi square test final
 
Chi Square Worked Example
Chi Square Worked ExampleChi Square Worked Example
Chi Square Worked Example
 
Contingency Table Test, M. Asad Hayat, UET Taxila
Contingency Table Test, M. Asad Hayat, UET TaxilaContingency Table Test, M. Asad Hayat, UET Taxila
Contingency Table Test, M. Asad Hayat, UET Taxila
 
Correlation
CorrelationCorrelation
Correlation
 
Chi – square test
Chi – square testChi – square test
Chi – square test
 
Regression analysis ppt
Regression analysis pptRegression analysis ppt
Regression analysis ppt
 
Chi square test
Chi square testChi square test
Chi square test
 

Similar a Correlation and regression

Hph7310week2winter2009narr
Hph7310week2winter2009narrHph7310week2winter2009narr
Hph7310week2winter2009narr
Sarah
 
Dependance Technique, Regression & Correlation
Dependance Technique, Regression & Correlation Dependance Technique, Regression & Correlation
Dependance Technique, Regression & Correlation
Qasim Raza
 
Correlation and Regression
Correlation and RegressionCorrelation and Regression
Correlation and Regression
Shubham Mehta
 

Similar a Correlation and regression (20)

correlation.ppt
correlation.pptcorrelation.ppt
correlation.ppt
 
Correlation analysis notes
Correlation analysis notesCorrelation analysis notes
Correlation analysis notes
 
Correlation
CorrelationCorrelation
Correlation
 
correlationppt-111222215110-phpapp02.pdf
correlationppt-111222215110-phpapp02.pdfcorrelationppt-111222215110-phpapp02.pdf
correlationppt-111222215110-phpapp02.pdf
 
Correlation and regression impt
Correlation and regression imptCorrelation and regression impt
Correlation and regression impt
 
Correlation.pdf
Correlation.pdfCorrelation.pdf
Correlation.pdf
 
CORRELATION ( srm1) - Copy.pptx
CORRELATION ( srm1) - Copy.pptxCORRELATION ( srm1) - Copy.pptx
CORRELATION ( srm1) - Copy.pptx
 
Simple correlation & Regression analysis
Simple correlation & Regression analysisSimple correlation & Regression analysis
Simple correlation & Regression analysis
 
Correlation analysis in Biostatistics .pptx
Correlation analysis in Biostatistics .pptxCorrelation analysis in Biostatistics .pptx
Correlation analysis in Biostatistics .pptx
 
5 regressionand correlation
5 regressionand correlation5 regressionand correlation
5 regressionand correlation
 
9. parametric regression
9. parametric regression9. parametric regression
9. parametric regression
 
Correlation Analysis for MSc in Development Finance .pdf
Correlation Analysis for MSc in Development Finance .pdfCorrelation Analysis for MSc in Development Finance .pdf
Correlation Analysis for MSc in Development Finance .pdf
 
PPT Correlation.pptx
PPT Correlation.pptxPPT Correlation.pptx
PPT Correlation.pptx
 
Hph7310week2winter2009narr
Hph7310week2winter2009narrHph7310week2winter2009narr
Hph7310week2winter2009narr
 
Correlation and regression
Correlation and regressionCorrelation and regression
Correlation and regression
 
2-20-04.ppt
2-20-04.ppt2-20-04.ppt
2-20-04.ppt
 
Dependance Technique, Regression & Correlation
Dependance Technique, Regression & Correlation Dependance Technique, Regression & Correlation
Dependance Technique, Regression & Correlation
 
12943625.ppt
12943625.ppt12943625.ppt
12943625.ppt
 
Correlation
CorrelationCorrelation
Correlation
 
Correlation and Regression
Correlation and RegressionCorrelation and Regression
Correlation and Regression
 

Último

Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
MateoGardella
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
SanaAli374401
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
MateoGardella
 
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
negromaestrong
 

Último (20)

Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
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
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.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
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
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
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
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.
 
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
 

Correlation and regression

  • 1. Correlation(Pearson & spearman) &Linear Regression
  • 2. Correlation  Semantically, Correlation means Co-together and Relation.  Statistical correlation is a statistical technique which tells us if two variables are related.
  • 3. PEARSON CORRELATION  measures the degree of linear association between two interval scaled variables analysis of the relationship between two quantitative outcomes, e.g., height and weight
  • 4. Assumption under Pearson’s Correlation Coefficient  Assumption 1: The correlation coefficient r assumes that the two variables measured form a bivariate normal distribution population.  Assumption 2: The correlation coefficient r measures only linear associations: how nearly the data falls on a straight line. It is not a good summary of the association if the scatterplot has a nonlinear (curved) pattern.
  • 5. Assumptions Contd.  Assumption 3: The correlation coefficient r is not a good summary of association if the data are heteroscedastic.(when random variables have the same finite variance. It is also known as homogenity of variance)  Assumption 4: The correlation coefficient r is not a good summary of association if the data have outliers.
  • 6.
  • 7. Strength of Relationship  r lies between -1 and 1. Values near 0 means no (linear) correlation and values near ± 1 means very strong correlation. 
  • 8.
  • 10. Coefficient of Determination  Pearson's r can be squared , r 2, to derive a coefficient of determination.  Coefficient of determination - the portion of variability in one of the variables that can be accounted for by variability in the second variable
  • 11. Example  Pearson's r can be squared , r 2  If r=0.5, then r2=0.25 If r=0.7 then r2=0.49  Thus while r=0.5 versus 0.7 might not look so different in terms of strength, r2 tells us that r=0.7 accounts for about twice the variability relative to r=0.5
  • 12. Spearman’s Rank Correlation  Spearman's rank correlation coefficient or Spearman's rho, is a measure of statistical dependence between two variables.
  • 13. Interpretation  The sign of the Spearman correlation indicates the direction of association between X (the independent variable) and Y (the dependent variable). If Y tends to increase when X increases, the Spearman correlation coefficient is positive. If Y tends to decrease when X increases, the Spearman correlation coefficient is negative. A Spearman correlation of zero indicates that there is no tendency for Y to either increase or decrease when X increases
  • 14. Repeated Ranks  If there is more than one item with the same value , then they are given a common rank which is average of their respective ranks as shown in the table.
  • 15.  The raw data in the table below is used to calculate the correlation between the IQ of an with the number of hours spent in front of TV per week. Example
  • 17. Regression  One variable is a direct cause of the other or if the value of one variable is changed, then as a direct consequence, the other variable also change or if the main purpose of the analysis is prediction of one variable from the other 
  • 18. Regression  Regression: the dependence of dependent variable Y on the independent variable X.  Relationship is summarized by a regression equation. y = a + bx  A=intercept at y axis  B=regression coefficient
  • 19. The Least Squares Method  The line of regression is the line which gives the best estimate to the value of one variable for any specific value of the other variable. Thus the line of regression is the line of “best fit” and is Obtained by the principle of least squares.  This principle consists in minimizing the sum of the squares of the deviations of the actual values of y from their estimate values given by the line of best fit
  • 21. Example  Fit a least square line to the following data