The Pearson correlation coefficient, also known as the Pearson product-moment correlation coefficient, is a measure of the linear relationship between two quantitative variables. It ranges from -1 to 1, where:
- r: Pearson correlation coefficient - Cov(X,Y): Covariance between variables X and Y - SD(X): Standard deviation of variable X - SD(Y): Standard deviation of variable Y
Steps to Calculate:
1. Calculate the covariance using the formula: ``` Cov(X,Y) = Σ((X - μX) - (Y - μY)) / (n - 1) ``` where: - μX: Mean of variable X - μY: Mean of variable Y - n: Number of data points
2. Calculate the standard deviations using the formula: ``` SD(X) = √(Σ((X - μX)^2) / (n - 1)) SD(Y) = √(Σ((Y - μY)^2) / (n - 1)) ```
3. Substitute the values of covariance and standard deviations into the Pearson correlation coefficient formula: ``` r = (Cov(X,Y)) / (SD(X) - SD(Y)) ```