Definition
The correlation coefficient (Pearson correlation) is the normalised covariance:
ρX,Y=σXσYCov(X,Y)
where σX=Var(X) and σY=Var(Y).
Properties
1. Unitless
Correlation has no units, making it comparable across different measurements.
2. Range
−1≤ρX,Y≤1
Proof (Cauchy-Schwarz): Consider E[(a(X−E[X])+b(Y−E[Y]))2]≥0.
3. Interpretation
| ρ | Relationship |
|---|
| ρ=1 | Perfect positive linear relationship |
| ρ=−1 | Perfect negative linear relationship |
| ρ=0 | No linear relationship |
| ρ>0 | Positive linear association |
| ρ<0 | Negative linear association |
ρaX+b,cY+d=sign(ac)⋅ρX,Y
Correlation doesn’t change if we scale or shift X and Y.
Visual Interpretation

- ρ≈1: points cluster along a line with positive slope
- ρ≈−1: points cluster along a line with negative slope
- ρ≈0: no linear pattern
Proof of Range
By Cauchy-Schwarz for random variables:
E[UV]2≤E[U2]E[V2]
Let U=X−E[X] and V=Y−E[Y]:
Cov(X,Y)2≤Var(X)⋅Var(Y)
ρ2=Var(X)Var(Y)Cov(X,Y)2≤1
Thus ∣ρ∣≤1.
When is ρ=±1?
ρ=1 if and only if Y=aX+b for some a>0 (perfect positive linear).
ρ=−1 if and only if Y=aX+b for some a<0 (perfect negative linear).
Independence vs Zero Correlation
- Independent ⇒ρ=0
- ρ=0 does NOT ⇒ independent
Counterexample
Let X be uniform on {−1,0,1}, and Y=X2.
Cov(X,Y)=E[X3]−E[X]E[X2]=0−0=0
ρ=0, but X and Y are clearly dependent (knowing X determines Y).
The issue: correlation measures linear dependence only. Y=X2 is a perfect nonlinear relationship.
Sample Correlation
From data (X1,Y1),…,(Xn,Yn):
r=∑(Xi−Xˉ)2∑(Yi−Yˉ)2∑(Xi−Xˉ)(Yi−Yˉ)
Example
From earlier: drawing cards, Cov(X,Y)=−2721.
Var(X)=41⋅43=163, same for Var(Y).
ρ=3/16⋅3/16−1/272=3/16−1/272=−272⋅316=−511
Small negative correlation.
Summary
| Property | Value |
|---|
| Definition | ρ=σXσYCov(X,Y) |
| Range | [−1,1] |
| ρ=1 | Perfect positive linear |
| ρ=−1 | Perfect negative linear |
| ρ=0 | No linear relationship |
| Limitation | Doesn’t capture nonlinear dependence |