# Statistics - Cross Product (of X and Y) (CP|SP)

The cross product is a calculation used in order to define the correlation coefficient between two variables.

SP is the sum of all cross products between two variables.

$$\text{Cross Product}=(\href{raw_score}{X}_i-\href{mean}{\bar{X}}).(\href{raw_score}{Y}_i-\href{mean}{\bar{Y}})$$
SP is the sum of cross product between two variables (X and Y) for all observations. $$\begin{array}{rrl} \text{Sum of Cross Product (SP)} & = & \sum_{i=1}^{\href{sample_size}{N}}{\href{cross_product}{\text{Cross Product of X & Y}}} \\ & = & \sum_{i=1}^{\href{sample_size}{N}}{(\href{raw_score}{X}_i-\href{mean}{\bar{X}}).(\href{raw_score}{Y}_i-\href{mean}{\bar{Y}})} \\ \end{array}$$