λ

线性回归

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)
# slope 斜率
# intercept 截距

 

 

 

 

posted on 2013-08-30 19:18  maxc01  阅读(255)  评论(0)    收藏  举报