Pearson correlation coefficient

What Pearson correlation coefficient is

The Pearson correlation coefficient (also known as the Pearson’s r or Pearson’s product-moment correlation coefficient) is a measure of the linear correlation between two variables. It is a numerical value between -1 and 1 that indicates the extent to which two variables are linearly related.

Steps for calculating the Pearson correlation coefficient:

  1. Calculate the mean of each variable.

  2. Calculate the difference between each data point and the mean of its respective variable.

  3. Square the differences from Step 2.

  4. Multiply the squares from Step 3 for each pair of data points.

  5. Sum all the products from Step 4.

  6. Calculate the standard deviation for each variable.

  7. Multiply the standard deviations from Step 6.

  8. Divide the sum from Step 5 by the product of the standard deviations from Step 7. This is the Pearson correlation coefficient.

Examples

  1. Pearson correlation coefficient can be used to measure the strength of linear relationships between two continuous variables. For example, one could measure the relationship between the height and weight of individuals.

  2. Pearson correlation coefficient can be used to compare the strength of the relationship between two variables in a bivariate dataset. For example, a researcher may wish to compare the strength of the relationship between gender and academic performance.

  3. Pearson correlation coefficient can be used to measure the strength of the linear relationship between stock prices and the returns of two companies. For example, the correlation between the stock price of Apple and the return of Microsoft could be measured.

Related Topics