摘要:
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', 阅读全文
摘要:
import pandas as pd import statsmodels.api as sm from statsmodels.formula.api import ols from statsmodels.stats.anova import anova_lm file_path = '9.4 阅读全文
摘要:
import pandas as pd import matplotlib.pyplot as plt import seaborn as sns from scipy import stats file_path = '9.3.xlsx' data = pd.read_excel(file_pat 阅读全文
摘要:
程序文件ex8_7.py from scipy.integrate import odeint import numpy as np import pylab as plt import sympy as sp dy = lambda y, x: -2y+2x2+2x #自变量在后面 xx = np 阅读全文