Uploaded by mabdullah.bse21s3h

correlation

advertisement
Correlation Analysis
Muhammad Irfan Malik
PhD (Econometrics)
School of Social Sciences and Humanities,
National University of Sciences and Technology, Islamabad
Email: irfanmalik@s3h.nust.edu.pk
Outline
β—ˆ
β—ˆ
β—ˆ
β—ˆ
Correlation
Correlation Coefficient
Application
Interpretation of correlation coefficient
2
What is Correlation?
Correlation is a statistical measure that expresses the extent to
which two variables are linearly related.
It’s a common tool for describing simple relationships without
making a statement about cause and effect.
3
Correlation Coefficient
The correlation coefficient is a descriptive measure of the
strength and direction of the linear (straight-line) relationship
between two variables.
There are several statistics that can be used to measure the
correlation between the variables. The most commonly used
measure is Karl Pearson Product Moment correlation
coefficient.
4
Pearson Correlation Coefficient
π‘Ÿ=
(π‘₯ − π‘₯)(𝑦 − 𝑦)
(π‘₯ − π‘₯)2 (𝑦 − 𝑦)2
5
Pearson Correlation Coefficient
π‘Ÿ=
(π‘₯ − π‘₯)(𝑦 − 𝑦)
− π‘₯)2
(𝑦
π‘₯𝑦 −
π‘₯ 𝑦
𝑛
(π‘₯
=
π‘₯2 −
πΆπ‘œπ‘£π‘Žπ‘Ÿπ‘–π‘Žπ‘›π‘π‘’ (π‘₯, 𝑦)=
π‘₯
𝑛
2
1
𝑆π‘₯𝑦 =𝑛−1
=
− 𝑦)2
𝑦2 −
π‘₯𝑦 −
π‘₯𝑦 − 𝑛π‘₯𝑦
𝑦
𝑛
π‘₯ 𝑦
𝑛
[ π‘₯ 2 − 𝑛π‘₯ 2 ] [ 𝑦 2 − 𝑛𝑦 2 ]
2
𝑆π‘₯𝑦
πΆπ‘œπ‘£π‘Žπ‘Ÿπ‘–π‘Žπ‘›π‘π‘’ (π‘₯, 𝑦)
=
=
𝑆π‘₯ 𝑆𝑦
𝑆𝐷 π‘₯ 𝑆𝐷(𝑦)
𝑆𝐷 π‘₯ = 𝑆π‘₯ =
6
(π‘₯−π‘₯)2
𝑛−1
𝑆𝐷 𝑦 = 𝑆𝑦 =
(𝑦−𝑦)2
𝑛−1
Understanding the Linear Correlation Coefficient
 r reflects the slope of the scatterplot.
 The magnitude of r indicates the strength of the
linear relationship.
 The sign of r suggests the type of linear relationship
 The sign of r and the sign of the slope of the
regression line are identical
7
8
big concept
Bring the attention of your audience over a key
concept using icons or illustrations
9
4000
3000
2000
1000
0
You can insert graphs from Excel or Google Sheets
10
Download