fork(1) download
  1. from scipy import stats
  2.  
  3. x = [2,1,5,8,10,12,20]
  4. y = [88,90,70,65,60,45,99]
  5.  
  6. slope,intercept,r,p,std_err = stats.linregress(x,y)
  7.  
  8. print(r)
Success #stdin #stdout 0.54s 64892KB
stdin
Standard input is empty
stdout
-0.03673626304370705