In statistics, the Pearson correlation coefficient measures how well two sets of data are linearly correlated. is computed as the average of the products of the z-scores of each data point:

where are the arithmetic means and are the standard deviations. The right formula is easiest to hand compute.

The correlation coefficient is defined in the interval: . Strongly correlated sets of data will produce values with a greater absolute value. For , we have a positive association. For , we have a negative association. If , we have no correlation.

In most cases, is computed on a sample of the population, i.e., it is a sample correlation and estimates the actual population correlation.

See also