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