I am going through some of the problems in a statistical physics book. I am stuck on the following question:(adsbygoogle = window.adsbygoogle || []).push({});

If we have two random variables X and Y, related by Y=mX + b => y(i) = mx(i) + b, where b and m are deterministic, prove that corr(X,Y) = m/sqrt(m^2) = sgn(m), where sgn(m) is the sign function of m.

I can see that this is perfect linear correlation, but I am not sure as to what is the obvious proof....I know that corr(X,Y) = (E(XY) - E(X)E(Y))/sd(X)*sd(Y)....

Is the following derivation even logically valid?

E(XY)-E(X)E(Y)

= E(X(mX+b)) - E(X)E(mX+b)

=E(mX^2 + bX)-E(X)E(mX+b)

=mE(X^2)+bE(X)-mE(X)E(X)+b

=m(E(X^2)-E(X)E(X))+bE(X)+b

=m(Var(X))+bE(X) +b

Thanks!

**Physics Forums - The Fusion of Science and Community**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Linear Correlation

Loading...

Similar Threads - Linear Correlation | Date |
---|---|

A Error estimation in linear regression | Mar 12, 2018 |

I ANOVA and Linear Regression Resource | Mar 2, 2018 |

Gaussian process with linear correlation | Jan 28, 2012 |

Linear regression and high correlation problems | Jun 13, 2010 |

Correlation, linear or curvilinear | Aug 30, 2009 |

**Physics Forums - The Fusion of Science and Community**