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