SlideShare une entreprise Scribd logo
1  sur  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.

Contenu connexe

Tendances

Regression analysis
Regression analysisRegression analysis
Regression analysis
Ravi shankar
 
Spearman Rank Correlation Presentation
Spearman Rank Correlation PresentationSpearman Rank Correlation Presentation
Spearman Rank Correlation Presentation
cae_021
 

Tendances (20)

Partial correlation
Partial correlationPartial correlation
Partial correlation
 
Regression
RegressionRegression
Regression
 
Correlation Analysis
Correlation AnalysisCorrelation Analysis
Correlation Analysis
 
Correlation in Statistics
Correlation in StatisticsCorrelation in Statistics
Correlation in Statistics
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
 
Correlation
CorrelationCorrelation
Correlation
 
The spearman rank order correlation coefficient
The spearman rank order correlation coefficientThe spearman rank order correlation coefficient
The spearman rank order correlation coefficient
 
Regression Analysis
Regression AnalysisRegression Analysis
Regression Analysis
 
Correlation and Regression
Correlation and RegressionCorrelation and Regression
Correlation and Regression
 
Regression Analysis
Regression AnalysisRegression Analysis
Regression Analysis
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
 
Pearson's correlation
Pearson's  correlationPearson's  correlation
Pearson's correlation
 
Correlation and Regression
Correlation and Regression Correlation and Regression
Correlation and Regression
 
Regression ppt
Regression pptRegression ppt
Regression ppt
 
Correlation
CorrelationCorrelation
Correlation
 
Spearman Rank Correlation - Thiyagu
Spearman Rank Correlation - ThiyaguSpearman Rank Correlation - Thiyagu
Spearman Rank Correlation - Thiyagu
 
Correlation and Regression ppt
Correlation and Regression pptCorrelation and Regression ppt
Correlation and Regression ppt
 
Spearman Rank Correlation Presentation
Spearman Rank Correlation PresentationSpearman Rank Correlation Presentation
Spearman Rank Correlation Presentation
 
Simple linear regression
Simple linear regressionSimple linear regression
Simple linear regression
 
Correlation and regression
Correlation and regressionCorrelation and regression
Correlation and regression
 

En vedette (10)

Correlation and Simple Regression
Correlation  and Simple RegressionCorrelation  and Simple Regression
Correlation and Simple Regression
 
Correlation and regression
Correlation and regressionCorrelation and regression
Correlation and regression
 
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
 

Similaire à 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
 

Similaire à 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 and Regression
Correlation and RegressionCorrelation and Regression
Correlation and Regression
 
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 and Regression
Correlation and RegressionCorrelation and Regression
Correlation and Regression
 

Dernier

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 

Dernier (20)

Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . 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
 
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
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
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
 
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
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
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
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
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
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.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