import statsmodels.api as sm from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt import pandas as pd import numpy as np # 生成随机数据 def generateData2(): np.random.seed(4999) x1 = np.array(range(0, 20)) x2 = np.array(range(20, 40))/3 error = np.round(np...