📜  python 线性回归 - Python 代码示例

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

代码示例5
>>> 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)