I am trying to write a math notation to select between two variables based on whichever has the highest correlation with another variable. Let
$$ X = \begin{pmatrix} a\\ b\\ c \end{pmatrix} \qquad\&\qquad Y = \begin{pmatrix} a1\\ b1\\ c1 \end{pmatrix}$$
I want a matrix $e$ that contain either $a$ or $a1$, $b$ or $b1$ and $c$ or $c1$ based on whichever has the highest correlation with $v$.
The output matrix may look like
$$ e = \begin{pmatrix} a1\\ b\\ c1 \end{pmatrix}$$
My first trial results in something like that:
Let $G \subset X$ and $D \subset Y$, $e= max\{\rho(G,\;v),\; \rho(D,\;v)\}$
But I have strong feeling that it is a way from being correct.