Sample correlation coefficient (source code)

= Sample correlation coefficient
{title2=$r_{XY}$}

= Sample correlation
{synonym}

The sample correlation coefficient is the centered sample covariance divided by the product of sample standard deviations. It is the normalized inner product of centered data vectors and is undefined when either vector is constant.