摘要:
import numpy as np import statsmodels.formula.api as smf import pylab as plt x = np.arange(17, 30, 2); a = np.loadtxt('data10_3.txt') plt.rc('text', u 阅读全文
摘要:
import numpy as np import statsmodels.api as sm import pylab as plt a = np.loadtxt('data10_2.txt') plt.rc('text', usetex=True); plt.rc('font', size=16 阅读全文
摘要:
import numpy as np import statsmodels.api as sm import pylab as plt def check(d): x0 = d[0]; y0 = d[1]; d ={'x':x0, 'y':y0} re = sm.formula.ols('y~x', 阅读全文