Correlation

Let X1, X2 and X3 be the three different vectors and each one has 6 samples.
Find the correlations between the variable vectors: X1 and X2, X1 and X3, X2 and X3 using correlation coefficient approach.

The sample values of three vectors are given as
X1 = {2.5, 3.6, 1.2, 0.8, 4.0, 3.4}
X2 = {1.2, 1.0, 1.8, 0.9, 3.0, 2.2}
X3 = {8.0, 15.0, 12.0, 6.0, 8.0, 10.0}

Equations

If your data is given in (x,y) pairs, then compute the following quantities:

where

Correlation between X1 and X2

X1 = {2.5, 3.6, 1.2, 0.8, 4.0, 3.4}
X2 = {1.2, 1.0, 1.8, 0.9, 3.0, 2.2}

Correlation between X1 and X3

X1 = {2.5, 3.6, 1.2, 0.8, 4.0, 3.4}
X3 = {8.0, 15.0, 12.0, 6.0, 8.0, 10.0}

Correlation between X2 and X3

X2 = {1.2, 1.0, 1.8, 0.9, 3.0, 2.2}
X3 = {8.0, 15.0, 12.0, 6.0, 8.0, 10.0}