Prove Linear Correlation: m/sqrt(m^2) = sgn(m)

In summary, the conversation is about proving that the correlation between two random variables, X and Y, is equal to m/sqrt(m^2) = sgn(m) when Y=mX + b. The person is stuck on how to prove this and is questioning the validity of their approach. The expert confirms that their approach is correct, but points out an error in their arithmetic. The correct denominator is |m|Var(X).
  • #1
rwinston
36
0
I am going through some of the problems in a statistical physics book. I am stuck on the following question:

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 news on Phys.org
  • #2
Your approach is valid. Your arithmetic is wrong.

E(XY)-E(X)E(Y)=m(Var(X)). The b terms cancel when you do it right!

The denominator will be |m|Var(X).
 
  • #3
Thank you!
 

FAQ: Prove Linear Correlation: m/sqrt(m^2) = sgn(m)

What is the formula for calculating linear correlation?

The formula for calculating linear correlation is m/sqrt(m^2) = sgn(m), where m represents the slope of the line of best fit and sgn(m) represents the sign of the slope.

How do you interpret the value of linear correlation?

The value of linear correlation, represented by m/sqrt(m^2), indicates the strength and direction of the relationship between two variables. A positive value indicates a positive correlation, meaning that as one variable increases, the other variable also tends to increase. A negative value indicates a negative correlation, meaning that as one variable increases, the other variable tends to decrease. The closer the value is to 1 or -1, the stronger the correlation.

Can linear correlation be used to determine causality?

No, linear correlation does not imply causation. It only shows the strength and direction of the relationship between two variables. Other factors or variables may be influencing the relationship and causing the correlation.

How is linear correlation different from other types of correlation?

Linear correlation specifically measures the relationship between two variables that have a linear relationship, meaning that the relationship can be represented by a straight line. Other types of correlation, such as non-linear correlation, measure the relationship between variables that do not have a linear relationship.

How can linear correlation be used in scientific research?

Linear correlation can be used to analyze and identify patterns and relationships between variables in scientific research. It can also be used to make predictions and test hypotheses about the relationship between variables. However, it should always be considered in conjunction with other statistical methods and should not be used as the sole basis for drawing conclusions in research.

Similar threads

Replies
1
Views
829
Replies
1
Views
903
Replies
1
Views
879
Replies
1
Views
1K
Replies
3
Views
2K
Replies
43
Views
4K
Replies
58
Views
5K
Back
Top