📜  python代码示例中的线性回归

📅  最后修改于: 2022-03-11 14:45:53.476000             🧑  作者: Mango

代码示例4
>>> from scipy import stats
>>> import numpy as np
>>> x = np.random.random(10)
>>> y = np.random.random(10)
>>> slope, intercept, r_value, p_value, std_err = stats.linregress(x,y)