March 2019
Beginner to intermediate
448 pages
13h 14m
English
Whenever we refer to Spearman, we mean Spearman's rank statistic; and whenever we refer to Pearson, we mean the classical correlation coefficient.
In the following example, we will use a nonlinear example with no noise (in this case, Spearman's coefficient will be almost 1), and Pearson's coefficient will be high but lower. We will then introduce some noise and explain why Pearson's ends up being higher:
x = seq(1,100)y = 20/(1+exp(x-50))plot(x,y)
The preceding command displays the following output:

Read now
Unlock full access