Homepage Solution manuals Kevin P. Murphy Machine Learning: a Probabilistic Perspective Exercise 4.4 - Correlation coefficient for linearly related variables is 1 or -1

Exercise 4.4 - Correlation coefficient for linearly related variables is 1 or -1

Answers

When Y = 𝑎𝑋 + b :

𝔼 ( Y ) = a 𝔼 ( x ) + b ,

var ( Y ) = a 2 var ( X ) .

Therefore:

𝑐𝑜𝑣 ( X , Y ) = 𝔼 ( 𝑋𝑌 ) 𝔼 ( X ) 𝔼 ( Y ) = a 𝔼 ( X 2 ) + b 𝔼 ( X ) a 𝔼 2 ( X ) b 𝔼 ( X ) = a var ( X ) .

Meanwhile:

var ( X ) var ( Y ) = a 2 var ( X ) .

These two are sufficient to derive:

ρ ( X , Y ) = a | a | .

User profile picture
2021-03-24 13:42
Comments