# Simple Maths Help A Lot !!

**or two standardized variables (0 mean and 1 std), the correlation is equivalent to their inner product**. Thus, for two large sample matrices X and Y, the sample correlation matrix is R=X'Y/(n-1), where n is the number of samples. See my implementation in MATLAB File Exchange or OpenConnectome Project. See below for a brain connectome matrix at 4mm spatial resolution generated by using these codes: