Current location - Training Enrollment Network - Mathematics courses - Difference between Pearson correlation coefficient and Spearman correlation coefficient
Difference between Pearson correlation coefficient and Spearman correlation coefficient
Difference:

1. Continuous data, normal distribution, linear relationship, pearson correlation coefficient is the most suitable, of course, spearman correlation coefficient can also be used, and the efficiency is not as high as pearson correlation coefficient.

2. If any of the above conditions are not met, use spearman correlation coefficient instead of pearson correlation coefficient.

3.spearman correlation coefficient is also used between two ordered measurement data, but pearson correlation coefficient cannot be used.

Expand knowledge:

Pearson correlation is usually used to calculate the correlation between equidistant data or continuous data. The value of this data is not limited to integers. For example, Pearson correlation applies to the correlation of the previous two exam results.

Spearman correlation is specially used to calculate the relationship between grade data. The characteristic of this kind of data is that the data has continuous grades, but the specific score difference between two continuous grades is not necessarily equal. For example, the difference in scores between the first and second places may not be equal to the difference in scores between the second and third places. The ranking data of the two exams are applicable to spearman correlation.

Spearman correlation can only calculate hierarchical data, while pearson correlation can calculate both hierarchical correlation and continuous data correlation, but pearson correlation is generally used to calculate the correlation of continuous data by default.

Are you online? In statistics, Spearman correlation coefficient named after charles spearman is Spearman correlation coefficient. Usually represented by the Greek letter ρ. It is a nonparametric index to measure the correlation between two variables. It uses monotone equation to evaluate the correlation between two statistical variables. If there are no duplicate values in the data and the two variables are completely monotonically correlated, the Spearman correlation coefficient is+1 or? 1。

Pearson CorrelationCoefficient is used to measure whether two data sets are on the same straight line, and to measure the linear relationship between fixed-distance variables.

For example, the linear correlation between national income and residents' savings deposits, height and weight, high school scores and college entrance examination scores is calculated. When two variables are normal continuous variables and there is a linear relationship between them, the product moment correlation coefficient is used to express the degree of correlation between the two variables, mainly Pearson simple correlation coefficient.

References:

Spearman correlation coefficient _ Baidu Encyclopedia

Pearson correlation coefficient _ Baidu Encyclopedia