from scipy import stats x = [2,1,5,8,10,12,20]y = [88,90,70,65,60,45,99] slope,intercept,r,p,std_err = stats.linregress(x,y) print(r)
Standard input is empty
-0.03673626304370705
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!