# correlation for three variables? [closed]

suppose we have three variables here, x,y, z

now, what we know is that the correlation between x and z is 0.6, the correlation between y and z is 0.65. Here is the question, is there any formula to combine x and y , say combine(x,y), and there is stronger correlation between combine(x,y) and z

-

## closed as off topic by Did, Carlo Beenakker, Steven Landsburg, Noah Stein, Benoît KloecknerMay 8 '13 at 15:33

Questions on MathOverflow are expected to relate to research level mathematics within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

Hardly MO stuff, please try more adapted fora. – Did May 8 '13 at 11:13

Sometimes, it is possible to combine $X$ and $Y$ to get stronger correlation with $Z$. For example, if $Z=X+Y$, then $\mathrm{corr}(X,Y)$ and $\mathrm{corr}(X,Z)$ might be small, but $\mathrm{corr}(X+Y,Z)=1$. However, sometimes no combination $f(X,Y)$ will be better correlated with $Z$ than $Y$.
To see this, suppose $U$, $X$ and $Z$ are all random variables over $\{0,1\}$, and consider all functions $\{0,1\}\times\{0,1\}\rightarrow\{0,1\}$, of which there are $2^4$. Take the function $f$ such that $f(U,X)$ is maximally correlated with $Z$, and define $Y:=f(U,X)$. Since every combination of $X$ and $Y$ can be viewed as a combination of $U$ and $X$, we know that $Y$ is the combination that's most correlated with $Z$.