Docsity

Correlation of linear combinations, Cheat Sheet of Descriptive statistics

Toggle sidebar
bg1
Correlation of linear combinations
Standardized random variables are the keys
Problem. Let
X, Y
be standardized random variables, i.e.
E
[
X
] =
E
[
Y
] = 0 and
Var
(
X
) =
Var(Y) = 1. Let
U=aX +bY, V =bX +aY
for real constants a, b. It is given that
r(U, V ) = 1+2ab
a2+b2,
where r(·,·) denotes the Pearson correlation coefficient. Find r(X , Y ).
We will denote
ρ=r(X, Y ) = Cov(X , Y ) = E[XY ],
using the standardized assumptions E[X] = E[Y] = 0, E[X2] = E[Y2] = 1.
Variances of Uand V
Compute Var(U) using the bilinearity of covariance (or the usual expansion):
Var(U) = Var(aX +bY ) = a2Var(X) + b2Var(Y)+2ab Cov(X, Y )
=a2+b2+ 2abρ. (1)
By symmetry (swap aand b) we get the same for Var(V):
Var(V) = a2+b2+ 2abρ. (2)
Covariance Cov(U, V )
Since means are zero, Cov(U, V ) = E[U V ]. Expand the product:
Cov(U, V ) = E(aX +bY )(bX +aY )
=EabX2+ (a2+b2)X Y +abY 2
=ab E[X2]+(a2+b2)E[X Y ] + ab E[Y2]
=ab + (a2+b2)ρ+ab
= 2ab + (a2+b2)ρ. (3)
1
pf3

Partial preview of the text

Download Correlation of linear combinations and more Cheat Sheet Descriptive statistics in PDF only on Docsity!

Correlation of linear combinations

Standardized random variables are the keys

Problem. Let X, Y be standardized random variables, i.e. E[X] = E[Y ] = 0 and Var (X) = Var(Y ) = 1. Let U = aX + bY, V = bX + aY

for real constants a, b. It is given that

r(U, V ) =

1 + 2ab

a^2 + b^2

where r(·, ·) denotes the Pearson correlation coefficient. Find r(X, Y ).

We will denote

ρ = r(X, Y ) = Cov(X, Y ) = E[XY ],

using the standardized assumptions E[X] = E[Y ] = 0, E[X^2 ] = E[Y 2 ] = 1.

Variances of U and V

Compute Var(U ) using the bilinearity of covariance (or the usual expansion):

Var(U ) = Var(aX + bY ) = a 2 Var(X) + b 2 Var(Y ) + 2ab Cov(X, Y )

= a 2

  • b 2
  • 2abρ. (1)

By symmetry (swap a and b) we get the same for Var(V ):

Var(V ) = a 2

  • b 2
  • 2abρ. (2)

Covariance Cov(U, V )

Since means are zero, Cov(U, V ) = E[U V ]. Expand the product:

Cov(U, V ) = E

(aX + bY )(bX + aY )

= E

abX 2

  • (a 2
  • b 2 )XY + abY 2

= ab E[X 2 ] + (a 2

  • b 2 )E[XY ] + ab E[Y 2 ]

= ab + (a 2

  • b 2 )ρ + ab

= 2ab + (a 2

  • b 2 )ρ. (3)

Correlation r(U, V ) in terms of ρ

By the definition of Pearson correlation,

r(U, V ) =

Cov(U, V ) p Var(U ) Var(V )

Using (1), (2), and (3) (and noting the two variances are equal), we get

r(U, V ) =

2 ab + (a^2 + b^2 )ρ

a^2 + b^2 + 2abρ

Using the given value and solving for ρ

We are given that

r(U, V ) =

1 + 2ab

a^2 + b^2

Equate this with (5): 2 ab + (a^2 + b^2 )ρ

a^2 + b^2 + 2abρ

1 + 2ab

a^2 + b^2

Cross-multiply to eliminate fractions (multiply both sides by (a^2 + b^2 )

a^2 + b^2 + 2abρ

a 2

  • b 2

2 ab + (a 2

  • b 2 )ρ

= (1 + 2ab)

a 2

  • b 2
  • 2abρ

Now expand both sides and collect terms that contain ρ on the left and constant terms on the right. Left-hand side (LHS):

LHS = (a 2

  • b 2 ) · 2 ab + (a 2
  • b 2 ) 2 ρ

= 2ab(a 2

  • b 2 ) + (a 2
  • b 2 ) 2 ρ.

Right-hand side (RHS):

RHS = (1 + 2ab)(a 2

  • b 2 ) + (1 + 2ab)2ab ρ

= (a 2

  • b 2 ) + 2ab(a 2
  • b 2 ) + 2ab ρ + 4a 2 b 2 ρ.

Subtract the RHS from both sides to move all terms to the left:

(a 2

  • b 2 ) 2 ρ − (2ab ρ + 4a 2 b 2 ρ)

2 ab(a 2

  • b 2 ) − (a 2
  • b 2 ) − 2 ab(a 2
  • b 2 )

= ρ

(a 2

  • b 2 ) 2 − 2 ab − 4 a 2 b 2

− (a 2

  • b 2 ).

(The middle algebraic terms 2ab(a^2 + b^2 ) cancel.) Thus

ρ

(a 2

  • b 2 ) 2 − 2 ab − 4 a 2 b 2

= a 2

  • b 2 .