fork(1) download
  1. from scipy import stats
  2.  
  3. x = [1,2,5,8,10,12,20,19]
  4. y = [105,100,80,75,60,50,100,99]
  5.  
  6. slope,intercept,r,p,std_err = stats.linregress(x,y)
  7.  
  8. print(r)
Success #stdin #stdout 0.41s 64908KB
stdin
Standard input is empty
stdout
-0.05122097066773321