MRV2
MRV2
1. Covariance1 and Correlation Coefficient (Recall sample COV and sample corr. coeff.)
y y y
x x x
[ ] [ ] [ ]
(g) Correlation coefficient can be used as a relative measure of the strength of statistical
( )
y y y
x x x
[ ] [ ] [ ]
1
The correlation covered in this course is also called ‘linear coefficient of correlation’ or ‘Pearon’s correlation.’
Please note that a rank-based correlation termed ‘Spearman’s rank correlation’ is also often used.
1
Seoul National University Instructor: Junho Song
Dept. of Civil and Environmental Engineering [email protected]
(h) “Correlation is NOT causality”: correlation does not necessarily represent the “cause
and effect” relationship.
or
2. Example of joint PDF ~ two normal random variables (bi-variate joint PDF)
→ See Supplement # 2
Example 1:
Create 1,000 pairs of bivariate standard normal random variables with correlation
coefficient 0 and 0.95 respectively. Compare their scatter plots and sample correlation
coefficients.
install.packages('mvtnorm')
library(mvtnorm)
2
Seoul National University Instructor: Junho Song
Dept. of Civil and Environmental Engineering [email protected]
0.5
(x,y)
x
XY
0.4
1 2
Joint PMF, p
y 0.3
0.1
5 0.1 0.6 0
x p X (x) y pY ( y )x
x p X |Y ( x | 3)
3
Seoul National University Instructor: Junho Song
Dept. of Civil and Environmental Engineering [email protected]
2 x
(f) Find the correlation coefficient between X and Y . Does the sign make sense to you?
Why (not)?