Pearson correlation coefficient is a statistic calculated from sample data, which is used to measure the strength of the linear relationship between two variables. Sometimes Pearson correlation is also called product moment correlation or product moment correlation. The basic principle is that if there are two variables X and Y, the Pearson correlation coefficient of these two variables can be calculated by the following formula:
Where e is the mathematical expectation and n is the sample size. Pearson correlation coefficient can be calculated above.
The range of Pearson correlation coefficient is [- 1, 1]. The closer the absolute value is to 1, the stronger the correlation is, and the closer the absolute value is to 0, the weaker the correlation is. When the correlation coefficient is less than 0, the two variables are negatively correlated, and when it is greater than 0, it is positively correlated. For correlation strength, please refer to the following table:
Prerequisites for applying Pearson correlation:
(1) Two variables are quantitative variables.
(2) Both variables are normally distributed.
(3) The observed values of the two variables are independent of each other.
You can use SPSSAU to quickly obtain the correlation coefficient:
The results are as follows: