r-value, p-value and standard deviation to inform about non-linear relationship Is it possible, through the output of the following code, to state that these two variables have a non-linear relationship?
I found this code on the internet along with a statement that there is no linear relationship between these two variables, but I can't understand how to interpret these values to reach the respective conclusion.
xi = df['duration']
y = df['next_count']

slope, intercept, r_value, p_value, std_err = stats.linregress(xi,y)

print('r-value', r_value)
print('p-value', p_value)
print('standard deviation', std_err)


r-value 0.051538264501807575
p-value 0.0
standard deviation 1.742321464486595e-05

EDIT 1:
line = slope*xi + intercept
plot(xi,line,'r-',xi,y,'o')
show()



No, it's not possible. Any values that these statistics can take can be achieved with linear as well as non-linear relationships (so in fact a non-linear relationship is indeed possible, but it's not possible to say with any certainty that the relationship is non-linear). None of these statistics tests linearity, they all assume linearity.
