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