SlideShare a Scribd company logo
COVARIANCE & CORRELATION
How to understand the relation between two variables?
Scatter Diagram
Suppose we have two variables say:
Age of the rider
Speed of the motor cycle
Age (Years): 16 22 34 45 21 24 27 53 32 24 26 29
Speed(Km/hr): 62 60 45 46 50 55 54 30 36 39 48 50
Age Speed
16 62
22 60
34 45
45 46
21 50
24 55
27 54
53 30
32 36
24 39
26 48
29 50
(16, 62)
(22, 60)
Covariance :Test of Relationship
 Covariance is a measure of how much two random variables vary together.
 It's similar to variance, but where variance tells you how a single variable varies.
 Covariance tells you how two variables vary together.
 A positive value of covariance between two variables indicates a positive
relationship between them. This means that if one variable deviates from the
mean in one direction, the other variable will also deviate from its mean in
the same direction.
 A negative covariance between two variables indicates a negative relationship
between them.
 The problem of measuring the relationship between two variables by using
covariance is that it is not a standardized measure of relationship.
Covariance & Correlation
 Covariance is a measure of how much two random variables vary together from
its mean.
 Correlation is the degree of inter-relatedness among the two
or more variables.
 Correlation analysis is a process to find out the degree of relationship
between two or more variables by applying various statistical tools and
techniques.
 Term correlation coined by Karl Pearson in 1902.
 Denoted by r
 Value lies between -1 and+1
Formulas
Correlation
Correlation only measures the extent of relationship between
variables
Karl Pearson (1867 – 1936), a British Biometrician, developed the
formula for Correlation Coefficient.
The correlation coefficient between two variables X and Y are
denoted by r(X,Y) or rx,y.
Coefficient of Correlation
• The coefficient of correlation gives a mathematical value
for measuring the strength of the linear relationship between two
variables.
• A linear relationship (or linear association) is a statistical term used to
describe a straight-line relationship between a variable and a constant.
• It can take values from –1 to 1.
• r= +0.6 ……………………………………Positive
Correlation
• r= -0.7 …………………………………….Negative
Correlation
• Correlation is the concept of linear relationship between two variables.
Whereas correlation coefficient is a measure that measures linear relationship
between two variables
Assumptions of Pearson Product Moment Correlation
 Quantitative Measure
 Linearity:X andY should be linearly related
 Absence of Outliers:There Should be no outliers
 Normality
 Minimum 30Observations
Application
 Relationship between variables like Job satisfactionand
turnover intention.
 Market risk and ScripPrice
 Satisfaction and purchaseintention
 Yield of rice and rainfall
 ICT use and learning effectiveness
Methods of Studying Correlation
 Scatter Diagram Method
 Karl Pearson Coefficient of Correlation
 Spearman’s Rank Correlation Coefficient- Measure of the non-
parametric correlation between two ordinal variables. (Rank
Correlation)
Types of Correlation
On the basis
of degree of
correlation
Positive
correlation
Negative
correlation
On the basis
of number of
variables
Simple
correlation
Partial
correlation
Multiple
correlation
On the basis
of
linearity
Linear
correlation
Non –linear
correlation
Correlation on basis of number of variables
Simple Correlation – Sales & Expense , Income and Consumption
Partial Correlation – Height , Weight and Age – Effect of third variable “ Age” on height and weight
Multiple Correlation-Rainfall and temperature on the yield of wheat , Sales with Advertisement and No of Sales Persons
Types of Correlation : On the basis of degree of correlation
Linear and Non Linear Correlation
Height Weight
Age
0.
92
Correlation doesn’t imply causation
The consumption of ice-cream increases
during the summer months. There is a
strong correlation between the sales of ice-
cream units. In this particular example, we
see there is a causal relationship also as the
extreme summers do push the sale of ice-
creams up.
Ice-creams sales also have a strong
correlation with shark attacks. Now as
we can see very clearly here, the shark
attacks are most definitely not caused
due to ice-creams. So, there is no
causation here.
Hence, we can understand that the
correlation doesn't ALWAYS imply
causation!
Problem 1) Calculate Karl Pearson coeff of correlation for the following
data
Problem : Variance –Covariance Method
If Variance between X and Y variables is 12.5 and Variance of X and Y are
respectively 16.4 and 13.8 , find the coeficient of correlation between them
Problem 2) If covariance between X and Y variables is 12.5 and the variance
of X and Y are 16.4 and 13.8 , find coeff of correlation between them
Problem: Find coeff of correlation between X
and Y by square of values method /Product
Moment Method
Road Rash
The age of 12 motor cycle riders and their average speed while driving are as follows:
Age (Years): 16 22 34 45 21 24 27 53 32 24 26 29
Speed(Km/hr): 62 60 45 46 50 55 54 30 36 39 48 50
The Correlation Coefficient is -0.7281
Height and Weight Weight
(KG) Height (Cms)
56 149
78 164
66 157
63 155
49 159
48 156
52 169
50 163
72 176
79 177
82 175
48 144
56 164
68 169
59 165
Interpretation: The correlation is
positive and high i.e. Height and Weight
are positively related.
This indicates that as height of an
individual increases the weight shall
also increase and vice versa.
The Correlation Coefficient is 0.6551
Rank Correlation Coefficient
This correlation formula is used when relation between two variable are studied in
terms of the ranking of each case within each variable.
Mostly used when both the variables relate to some attribute.
Appropriate for data sets that are ordinal in nature.
The range is from [ -1, 1]
Spearman’s Rank Correlation
 The Spearman's rank-order correlation is thenonparametric version of
the Karl PearsonCoefficient ofCorrelation.
 Spearman's correlation coefficient (ρ, also signified byrs)
measures the strength and direction of association between two ranked
variables.
 This method is also called rank correlation. It works on the ranking of the
observed score of the variables(Variables can be Ordinal, Interval or Ratio
Scale).
 The ranking of the variables will be given as 1-highest,2-2nd
highest, 3, 4,…………………….N.
Formula
Relation between two attributes Beauty and Intelligence
Subject Score X Score Y
A 7.1 61
B 7.4 53
C 7.9 76
D 6.3 43
E 8.3 73
F 9.6 77
G 7.6 69
H 8.8 81
I 5.9 47
J 6.6 36
X represents beauty
Y represents intelligence
Are X and Y related?
)
1
(
6
1 2
2




n
n
di

Rank X Rank Y
7 6
6 7
4 3
9 8
3 4
1 2
5 5
2 1
10 9
8 10
Subject Rank X
(RX)
Rank Y
(RY )
di = RX – RY di
2
1 7 6 1 1
2 6 7 -1 1
3 4 3 1 1
4 9 8 1 1
5 3 4 -1 1
6 1 2 -1 1
7 5 5 0 0
8 2 1 1 1
9 10 9 1 1
10 8 10 -2 4
di
2 =12
98
.
0
)
1
10
(
10
12
6
1
)
1
(
6
1 2
2
2









n
n
di

Rank Correlation can be interpreted in the same fashion as
the Karl Pearson Correlation Coefficient
Movie Ranking by 3 Critics .Whats the correlation
Year Movie TOI Critic TOI User IMDB
2020Angrezi Medium 3.5 3.5 7.3
2020Baaghi 3 2.5 2.8 2
2020Thappad 4.5 4.1 6.9
2020
Shubh Mangal Zyada
Saavdhan 3.5 3.4 5.9
2020Bhoot - Part 1 2.5 3 5.5
2020Love aaj kal 3 3.1 5
2020Hacked 2 2.5 4.2
2020Shikara 3 3.2 3.3
2020Malang 3.5 3.4 6.5
2020Jawaani Janeman 3.5 3.4 6.7
2020Panga 4 3.9 7
2020Street Dancer 3D 3.5 3.4 3.6
2020Jai Mummy DI 2 2.5 3.5
2020Tanhji - The Unsung Warrior 4 4.3 7.7
2020Chhapaak 3.5 3.4 5

More Related Content

What's hot

Correlation and Simple Regression
Correlation  and Simple RegressionCorrelation  and Simple Regression
Correlation and Simple Regression
Venkata Reddy Konasani
 
Meaning and types of correlation
Meaning and types of correlationMeaning and types of correlation
Meaning and types of correlation
Higher Education Department JK
 
Simple linear regression
Simple linear regressionSimple linear regression
Simple linear regression
pankaj8108
 
Correlation
CorrelationCorrelation
Correlation
joshuarodrick
 
Simple linear regression
Simple linear regressionSimple linear regression
Simple linear regression
Avjinder (Avi) Kaler
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
Ravi shankar
 
Regression analysis.
Regression analysis.Regression analysis.
Regression analysis.
sonia gupta
 
Regression Analysis
Regression AnalysisRegression Analysis
Regression Analysis
Salim Azad
 
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 ppt
Correlation and Regression pptCorrelation and Regression ppt
Correlation and Regression ppt
Santosh Bhaskar
 
Histograms
HistogramsHistograms
Histograms
Steve Bishop
 
Statistics & probability
Statistics & probabilityStatistics & probability
Statistics & probability
Suzaan van Heerden
 
Correlation analysis notes
Correlation analysis notesCorrelation analysis notes
Correlation analysis notes
Japheth Muthama
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
Shameer P Hamsa
 
Regression
RegressionRegression
Regression
LavanyaK75
 
Simple Linear Regression: Step-By-Step
Simple Linear Regression: Step-By-StepSimple Linear Regression: Step-By-Step
Simple Linear Regression: Step-By-Step
Dan Wellisch
 
Chi-Square Test of Independence
Chi-Square Test of IndependenceChi-Square Test of Independence
Chi-Square Test of Independence
Ken Plummer
 
Bernoulli distribution
Bernoulli distributionBernoulli distribution
Bernoulli distribution
Suchithra Edakunni
 
Normal distribution
Normal distributionNormal distribution
Normal distribution
manzara arshad
 
Multiple linear regression
Multiple linear regressionMultiple linear regression
Multiple linear regression
James Neill
 

What's hot (20)

Correlation and Simple Regression
Correlation  and Simple RegressionCorrelation  and Simple Regression
Correlation and Simple Regression
 
Meaning and types of correlation
Meaning and types of correlationMeaning and types of correlation
Meaning and types of correlation
 
Simple linear regression
Simple linear regressionSimple linear regression
Simple linear regression
 
Correlation
CorrelationCorrelation
Correlation
 
Simple linear regression
Simple linear regressionSimple linear regression
Simple linear regression
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
 
Regression analysis.
Regression analysis.Regression analysis.
Regression analysis.
 
Regression Analysis
Regression AnalysisRegression 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 ppt
Correlation and Regression pptCorrelation and Regression ppt
Correlation and Regression ppt
 
Histograms
HistogramsHistograms
Histograms
 
Statistics & probability
Statistics & probabilityStatistics & probability
Statistics & probability
 
Correlation analysis notes
Correlation analysis notesCorrelation analysis notes
Correlation analysis notes
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
 
Regression
RegressionRegression
Regression
 
Simple Linear Regression: Step-By-Step
Simple Linear Regression: Step-By-StepSimple Linear Regression: Step-By-Step
Simple Linear Regression: Step-By-Step
 
Chi-Square Test of Independence
Chi-Square Test of IndependenceChi-Square Test of Independence
Chi-Square Test of Independence
 
Bernoulli distribution
Bernoulli distributionBernoulli distribution
Bernoulli distribution
 
Normal distribution
Normal distributionNormal distribution
Normal distribution
 
Multiple linear regression
Multiple linear regressionMultiple linear regression
Multiple linear regression
 

Similar to Topic 5 Covariance & Correlation.pptx

Class 9 Covariance & Correlation Concepts.pptx
Class 9 Covariance & Correlation Concepts.pptxClass 9 Covariance & Correlation Concepts.pptx
Class 9 Covariance & Correlation Concepts.pptx
CallplanetsDeveloper
 
Correlation Coefficient
Correlation CoefficientCorrelation Coefficient
Correlation Coefficient
SaadSaif6
 
Correlation and Regression
Correlation and Regression Correlation and Regression
Correlation and Regression
Dr. Tushar J Bhatt
 
Correlation
CorrelationCorrelation
Correlation
keerthi samuel
 
Correlation
CorrelationCorrelation
Correlation
HemamaliniSakthivel
 
Module 2_ Regression Models..pptx
Module 2_ Regression Models..pptxModule 2_ Regression Models..pptx
Module 2_ Regression Models..pptx
nikshaikh786
 
correlation.pptx
correlation.pptxcorrelation.pptx
correlation.pptx
KrishnaVamsiMuthinen
 
correlation.final.ppt (1).pptx
correlation.final.ppt (1).pptxcorrelation.final.ppt (1).pptx
correlation.final.ppt (1).pptx
ChieWoo1
 
correlation and regression
correlation and regressioncorrelation and regression
correlation and regression
Unsa Shakir
 
correlation_regression.ppt
correlation_regression.pptcorrelation_regression.ppt
correlation_regression.ppt
Richa Joshi
 
Study of Correlation
Study of Correlation Study of Correlation
Study of Correlation
Vikas Kumar Singh
 
CORRELATION-AND-REGRESSION.pdf for human resource
CORRELATION-AND-REGRESSION.pdf for human resourceCORRELATION-AND-REGRESSION.pdf for human resource
CORRELATION-AND-REGRESSION.pdf for human resource
Sharon517605
 
Unit 1 Correlation- BSRM.pdf
Unit 1 Correlation- BSRM.pdfUnit 1 Correlation- BSRM.pdf
Unit 1 Correlation- BSRM.pdf
Ravinandan A P
 
Co re
Co reCo re
Introduction to correlation and regression analysis
Introduction to correlation and regression analysisIntroduction to correlation and regression analysis
Introduction to correlation and regression analysis
Farzad Javidanrad
 
Biostatistics lecture notes 7.ppt
Biostatistics lecture notes 7.pptBiostatistics lecture notes 7.ppt
Biostatistics lecture notes 7.ppt
letayh2016
 
Correlation continued
Correlation continuedCorrelation continued
Correlation continued
Nelsie Grace Pineda
 
Correlation
CorrelationCorrelation
Correlation and Regression Analysis.pptx
Correlation and Regression Analysis.pptxCorrelation and Regression Analysis.pptx
Correlation and Regression Analysis.pptx
Unfold1
 
Biostatistics Lecture on Correlation.pptx
Biostatistics Lecture on Correlation.pptxBiostatistics Lecture on Correlation.pptx
Biostatistics Lecture on Correlation.pptx
Fantahun Dugassa
 

Similar to Topic 5 Covariance & Correlation.pptx (20)

Class 9 Covariance & Correlation Concepts.pptx
Class 9 Covariance & Correlation Concepts.pptxClass 9 Covariance & Correlation Concepts.pptx
Class 9 Covariance & Correlation Concepts.pptx
 
Correlation Coefficient
Correlation CoefficientCorrelation Coefficient
Correlation Coefficient
 
Correlation and Regression
Correlation and Regression Correlation and Regression
Correlation and Regression
 
Correlation
CorrelationCorrelation
Correlation
 
Correlation
CorrelationCorrelation
Correlation
 
Module 2_ Regression Models..pptx
Module 2_ Regression Models..pptxModule 2_ Regression Models..pptx
Module 2_ Regression Models..pptx
 
correlation.pptx
correlation.pptxcorrelation.pptx
correlation.pptx
 
correlation.final.ppt (1).pptx
correlation.final.ppt (1).pptxcorrelation.final.ppt (1).pptx
correlation.final.ppt (1).pptx
 
correlation and regression
correlation and regressioncorrelation and regression
correlation and regression
 
correlation_regression.ppt
correlation_regression.pptcorrelation_regression.ppt
correlation_regression.ppt
 
Study of Correlation
Study of Correlation Study of Correlation
Study of Correlation
 
CORRELATION-AND-REGRESSION.pdf for human resource
CORRELATION-AND-REGRESSION.pdf for human resourceCORRELATION-AND-REGRESSION.pdf for human resource
CORRELATION-AND-REGRESSION.pdf for human resource
 
Unit 1 Correlation- BSRM.pdf
Unit 1 Correlation- BSRM.pdfUnit 1 Correlation- BSRM.pdf
Unit 1 Correlation- BSRM.pdf
 
Co re
Co reCo re
Co re
 
Introduction to correlation and regression analysis
Introduction to correlation and regression analysisIntroduction to correlation and regression analysis
Introduction to correlation and regression analysis
 
Biostatistics lecture notes 7.ppt
Biostatistics lecture notes 7.pptBiostatistics lecture notes 7.ppt
Biostatistics lecture notes 7.ppt
 
Correlation continued
Correlation continuedCorrelation continued
Correlation continued
 
Correlation
CorrelationCorrelation
Correlation
 
Correlation and Regression Analysis.pptx
Correlation and Regression Analysis.pptxCorrelation and Regression Analysis.pptx
Correlation and Regression Analysis.pptx
 
Biostatistics Lecture on Correlation.pptx
Biostatistics Lecture on Correlation.pptxBiostatistics Lecture on Correlation.pptx
Biostatistics Lecture on Correlation.pptx
 

More from CallplanetsDeveloper

Deep Learning Basics.pptx
Deep Learning Basics.pptxDeep Learning Basics.pptx
Deep Learning Basics.pptx
CallplanetsDeveloper
 
Basics of Machine Learning.pptx
Basics of Machine Learning.pptxBasics of Machine Learning.pptx
Basics of Machine Learning.pptx
CallplanetsDeveloper
 
Artificial-Neural-Networks.pptx
Artificial-Neural-Networks.pptxArtificial-Neural-Networks.pptx
Artificial-Neural-Networks.pptx
CallplanetsDeveloper
 
Data Warehousing , Data Mining and BI.pptx
Data Warehousing , Data Mining and BI.pptxData Warehousing , Data Mining and BI.pptx
Data Warehousing , Data Mining and BI.pptx
CallplanetsDeveloper
 
Database Management Systems.pptx
Database Management Systems.pptxDatabase Management Systems.pptx
Database Management Systems.pptx
CallplanetsDeveloper
 
Regression.pptx
Regression.pptxRegression.pptx
Regression.pptx
CallplanetsDeveloper
 
Basics of Machine Learning.pptx
Basics of Machine Learning.pptxBasics of Machine Learning.pptx
Basics of Machine Learning.pptx
CallplanetsDeveloper
 
MIS.pptx
MIS.pptxMIS.pptx
Topic 13 Business Analytics.pptx
Topic 13 Business Analytics.pptxTopic 13 Business Analytics.pptx
Topic 13 Business Analytics.pptx
CallplanetsDeveloper
 
Topic 12 Miscellaneous Concepts in IT.pptx
Topic 12 Miscellaneous Concepts in IT.pptxTopic 12 Miscellaneous Concepts in IT.pptx
Topic 12 Miscellaneous Concepts in IT.pptx
CallplanetsDeveloper
 
Unit 11 AI , ML , DL and Expert Systems.pptx
Unit 11 AI , ML , DL and Expert Systems.pptxUnit 11 AI , ML , DL and Expert Systems.pptx
Unit 11 AI , ML , DL and Expert Systems.pptx
CallplanetsDeveloper
 
Unit 10 Business Intelligence.pptx
Unit 10 Business Intelligence.pptxUnit 10 Business Intelligence.pptx
Unit 10 Business Intelligence.pptx
CallplanetsDeveloper
 
9. Data Warehousing & Mining.pptx
9. Data Warehousing & Mining.pptx9. Data Warehousing & Mining.pptx
9. Data Warehousing & Mining.pptx
CallplanetsDeveloper
 
Class 12 Probability Distributions.pptx
Class 12 Probability Distributions.pptxClass 12 Probability Distributions.pptx
Class 12 Probability Distributions.pptx
CallplanetsDeveloper
 
Class 11 Basic Probability.pptx
Class 11 Basic Probability.pptxClass 11 Basic Probability.pptx
Class 11 Basic Probability.pptx
CallplanetsDeveloper
 
8.DBMS.pptx
8.DBMS.pptx8.DBMS.pptx
Claas 11 Basic Probability.pptx
Claas 11 Basic Probability.pptxClaas 11 Basic Probability.pptx
Claas 11 Basic Probability.pptx
CallplanetsDeveloper
 
5.Developing IT Solution.pptx
5.Developing IT Solution.pptx5.Developing IT Solution.pptx
5.Developing IT Solution.pptx
CallplanetsDeveloper
 
4. E Commerce Types.pptx
4. E Commerce Types.pptx4. E Commerce Types.pptx
4. E Commerce Types.pptx
CallplanetsDeveloper
 
Unit 7 Management Challenges in IT.pptx
Unit 7 Management Challenges in IT.pptxUnit 7 Management Challenges in IT.pptx
Unit 7 Management Challenges in IT.pptx
CallplanetsDeveloper
 

More from CallplanetsDeveloper (20)

Deep Learning Basics.pptx
Deep Learning Basics.pptxDeep Learning Basics.pptx
Deep Learning Basics.pptx
 
Basics of Machine Learning.pptx
Basics of Machine Learning.pptxBasics of Machine Learning.pptx
Basics of Machine Learning.pptx
 
Artificial-Neural-Networks.pptx
Artificial-Neural-Networks.pptxArtificial-Neural-Networks.pptx
Artificial-Neural-Networks.pptx
 
Data Warehousing , Data Mining and BI.pptx
Data Warehousing , Data Mining and BI.pptxData Warehousing , Data Mining and BI.pptx
Data Warehousing , Data Mining and BI.pptx
 
Database Management Systems.pptx
Database Management Systems.pptxDatabase Management Systems.pptx
Database Management Systems.pptx
 
Regression.pptx
Regression.pptxRegression.pptx
Regression.pptx
 
Basics of Machine Learning.pptx
Basics of Machine Learning.pptxBasics of Machine Learning.pptx
Basics of Machine Learning.pptx
 
MIS.pptx
MIS.pptxMIS.pptx
MIS.pptx
 
Topic 13 Business Analytics.pptx
Topic 13 Business Analytics.pptxTopic 13 Business Analytics.pptx
Topic 13 Business Analytics.pptx
 
Topic 12 Miscellaneous Concepts in IT.pptx
Topic 12 Miscellaneous Concepts in IT.pptxTopic 12 Miscellaneous Concepts in IT.pptx
Topic 12 Miscellaneous Concepts in IT.pptx
 
Unit 11 AI , ML , DL and Expert Systems.pptx
Unit 11 AI , ML , DL and Expert Systems.pptxUnit 11 AI , ML , DL and Expert Systems.pptx
Unit 11 AI , ML , DL and Expert Systems.pptx
 
Unit 10 Business Intelligence.pptx
Unit 10 Business Intelligence.pptxUnit 10 Business Intelligence.pptx
Unit 10 Business Intelligence.pptx
 
9. Data Warehousing & Mining.pptx
9. Data Warehousing & Mining.pptx9. Data Warehousing & Mining.pptx
9. Data Warehousing & Mining.pptx
 
Class 12 Probability Distributions.pptx
Class 12 Probability Distributions.pptxClass 12 Probability Distributions.pptx
Class 12 Probability Distributions.pptx
 
Class 11 Basic Probability.pptx
Class 11 Basic Probability.pptxClass 11 Basic Probability.pptx
Class 11 Basic Probability.pptx
 
8.DBMS.pptx
8.DBMS.pptx8.DBMS.pptx
8.DBMS.pptx
 
Claas 11 Basic Probability.pptx
Claas 11 Basic Probability.pptxClaas 11 Basic Probability.pptx
Claas 11 Basic Probability.pptx
 
5.Developing IT Solution.pptx
5.Developing IT Solution.pptx5.Developing IT Solution.pptx
5.Developing IT Solution.pptx
 
4. E Commerce Types.pptx
4. E Commerce Types.pptx4. E Commerce Types.pptx
4. E Commerce Types.pptx
 
Unit 7 Management Challenges in IT.pptx
Unit 7 Management Challenges in IT.pptxUnit 7 Management Challenges in IT.pptx
Unit 7 Management Challenges in IT.pptx
 

Recently uploaded

Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
Celine George
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
chanes7
 
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
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
taiba qazi
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
GeorgeMilliken2
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
RitikBhardwaj56
 
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
 
Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5
sayalidalavi006
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
TechSoup
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 

Recently uploaded (20)

Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
 
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” .
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
 
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
 
Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 

Topic 5 Covariance & Correlation.pptx

  • 2. How to understand the relation between two variables?
  • 3. Scatter Diagram Suppose we have two variables say: Age of the rider Speed of the motor cycle Age (Years): 16 22 34 45 21 24 27 53 32 24 26 29 Speed(Km/hr): 62 60 45 46 50 55 54 30 36 39 48 50
  • 4. Age Speed 16 62 22 60 34 45 45 46 21 50 24 55 27 54 53 30 32 36 24 39 26 48 29 50 (16, 62) (22, 60)
  • 5.
  • 6. Covariance :Test of Relationship  Covariance is a measure of how much two random variables vary together.  It's similar to variance, but where variance tells you how a single variable varies.  Covariance tells you how two variables vary together.  A positive value of covariance between two variables indicates a positive relationship between them. This means that if one variable deviates from the mean in one direction, the other variable will also deviate from its mean in the same direction.  A negative covariance between two variables indicates a negative relationship between them.  The problem of measuring the relationship between two variables by using covariance is that it is not a standardized measure of relationship.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12. Covariance & Correlation  Covariance is a measure of how much two random variables vary together from its mean.  Correlation is the degree of inter-relatedness among the two or more variables.  Correlation analysis is a process to find out the degree of relationship between two or more variables by applying various statistical tools and techniques.  Term correlation coined by Karl Pearson in 1902.  Denoted by r  Value lies between -1 and+1
  • 13.
  • 14.
  • 16. Correlation Correlation only measures the extent of relationship between variables Karl Pearson (1867 – 1936), a British Biometrician, developed the formula for Correlation Coefficient. The correlation coefficient between two variables X and Y are denoted by r(X,Y) or rx,y.
  • 17. Coefficient of Correlation • The coefficient of correlation gives a mathematical value for measuring the strength of the linear relationship between two variables. • A linear relationship (or linear association) is a statistical term used to describe a straight-line relationship between a variable and a constant. • It can take values from –1 to 1. • r= +0.6 ……………………………………Positive Correlation • r= -0.7 …………………………………….Negative Correlation • Correlation is the concept of linear relationship between two variables. Whereas correlation coefficient is a measure that measures linear relationship between two variables
  • 18. Assumptions of Pearson Product Moment Correlation  Quantitative Measure  Linearity:X andY should be linearly related  Absence of Outliers:There Should be no outliers  Normality  Minimum 30Observations
  • 19. Application  Relationship between variables like Job satisfactionand turnover intention.  Market risk and ScripPrice  Satisfaction and purchaseintention  Yield of rice and rainfall  ICT use and learning effectiveness
  • 20. Methods of Studying Correlation  Scatter Diagram Method  Karl Pearson Coefficient of Correlation  Spearman’s Rank Correlation Coefficient- Measure of the non- parametric correlation between two ordinal variables. (Rank Correlation)
  • 21. Types of Correlation On the basis of degree of correlation Positive correlation Negative correlation On the basis of number of variables Simple correlation Partial correlation Multiple correlation On the basis of linearity Linear correlation Non –linear correlation
  • 22. Correlation on basis of number of variables Simple Correlation – Sales & Expense , Income and Consumption Partial Correlation – Height , Weight and Age – Effect of third variable “ Age” on height and weight Multiple Correlation-Rainfall and temperature on the yield of wheat , Sales with Advertisement and No of Sales Persons
  • 23. Types of Correlation : On the basis of degree of correlation
  • 24. Linear and Non Linear Correlation
  • 26.
  • 27. Correlation doesn’t imply causation The consumption of ice-cream increases during the summer months. There is a strong correlation between the sales of ice- cream units. In this particular example, we see there is a causal relationship also as the extreme summers do push the sale of ice- creams up. Ice-creams sales also have a strong correlation with shark attacks. Now as we can see very clearly here, the shark attacks are most definitely not caused due to ice-creams. So, there is no causation here. Hence, we can understand that the correlation doesn't ALWAYS imply causation!
  • 28. Problem 1) Calculate Karl Pearson coeff of correlation for the following data
  • 29.
  • 30. Problem : Variance –Covariance Method If Variance between X and Y variables is 12.5 and Variance of X and Y are respectively 16.4 and 13.8 , find the coeficient of correlation between them
  • 31. Problem 2) If covariance between X and Y variables is 12.5 and the variance of X and Y are 16.4 and 13.8 , find coeff of correlation between them
  • 32.
  • 33. Problem: Find coeff of correlation between X and Y by square of values method /Product Moment Method
  • 34.
  • 35. Road Rash The age of 12 motor cycle riders and their average speed while driving are as follows: Age (Years): 16 22 34 45 21 24 27 53 32 24 26 29 Speed(Km/hr): 62 60 45 46 50 55 54 30 36 39 48 50 The Correlation Coefficient is -0.7281
  • 36. Height and Weight Weight (KG) Height (Cms) 56 149 78 164 66 157 63 155 49 159 48 156 52 169 50 163 72 176 79 177 82 175 48 144 56 164 68 169 59 165 Interpretation: The correlation is positive and high i.e. Height and Weight are positively related. This indicates that as height of an individual increases the weight shall also increase and vice versa. The Correlation Coefficient is 0.6551
  • 37. Rank Correlation Coefficient This correlation formula is used when relation between two variable are studied in terms of the ranking of each case within each variable. Mostly used when both the variables relate to some attribute. Appropriate for data sets that are ordinal in nature. The range is from [ -1, 1]
  • 38. Spearman’s Rank Correlation  The Spearman's rank-order correlation is thenonparametric version of the Karl PearsonCoefficient ofCorrelation.  Spearman's correlation coefficient (ρ, also signified byrs) measures the strength and direction of association between two ranked variables.  This method is also called rank correlation. It works on the ranking of the observed score of the variables(Variables can be Ordinal, Interval or Ratio Scale).  The ranking of the variables will be given as 1-highest,2-2nd highest, 3, 4,…………………….N.
  • 40. Relation between two attributes Beauty and Intelligence Subject Score X Score Y A 7.1 61 B 7.4 53 C 7.9 76 D 6.3 43 E 8.3 73 F 9.6 77 G 7.6 69 H 8.8 81 I 5.9 47 J 6.6 36 X represents beauty Y represents intelligence Are X and Y related? ) 1 ( 6 1 2 2     n n di  Rank X Rank Y 7 6 6 7 4 3 9 8 3 4 1 2 5 5 2 1 10 9 8 10
  • 41. Subject Rank X (RX) Rank Y (RY ) di = RX – RY di 2 1 7 6 1 1 2 6 7 -1 1 3 4 3 1 1 4 9 8 1 1 5 3 4 -1 1 6 1 2 -1 1 7 5 5 0 0 8 2 1 1 1 9 10 9 1 1 10 8 10 -2 4 di 2 =12 98 . 0 ) 1 10 ( 10 12 6 1 ) 1 ( 6 1 2 2 2          n n di  Rank Correlation can be interpreted in the same fashion as the Karl Pearson Correlation Coefficient
  • 42. Movie Ranking by 3 Critics .Whats the correlation Year Movie TOI Critic TOI User IMDB 2020Angrezi Medium 3.5 3.5 7.3 2020Baaghi 3 2.5 2.8 2 2020Thappad 4.5 4.1 6.9 2020 Shubh Mangal Zyada Saavdhan 3.5 3.4 5.9 2020Bhoot - Part 1 2.5 3 5.5 2020Love aaj kal 3 3.1 5 2020Hacked 2 2.5 4.2 2020Shikara 3 3.2 3.3 2020Malang 3.5 3.4 6.5 2020Jawaani Janeman 3.5 3.4 6.7 2020Panga 4 3.9 7 2020Street Dancer 3D 3.5 3.4 3.6 2020Jai Mummy DI 2 2.5 3.5 2020Tanhji - The Unsung Warrior 4 4.3 7.7 2020Chhapaak 3.5 3.4 5