2023-07-08 16:23:44 +08:00
|
|
|
{
|
|
|
|
"cells": [
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-07-10 14:47:23 +08:00
|
|
|
"execution_count": 7,
|
2023-07-08 16:23:44 +08:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"text/html": [
|
|
|
|
"<div>\n",
|
|
|
|
"<style scoped>\n",
|
|
|
|
" .dataframe tbody tr th:only-of-type {\n",
|
|
|
|
" vertical-align: middle;\n",
|
|
|
|
" }\n",
|
|
|
|
"\n",
|
|
|
|
" .dataframe tbody tr th {\n",
|
|
|
|
" vertical-align: top;\n",
|
|
|
|
" }\n",
|
|
|
|
"\n",
|
|
|
|
" .dataframe thead th {\n",
|
|
|
|
" text-align: right;\n",
|
|
|
|
" }\n",
|
|
|
|
"</style>\n",
|
|
|
|
"<table border=\"1\" class=\"dataframe\">\n",
|
|
|
|
" <thead>\n",
|
|
|
|
" <tr style=\"text-align: right;\">\n",
|
|
|
|
" <th></th>\n",
|
|
|
|
" <th>自变量</th>\n",
|
|
|
|
" <th>level</th>\n",
|
2023-07-10 14:47:23 +08:00
|
|
|
" <th>产业-企业边的中断累计次数</th>\n",
|
|
|
|
" <th>产业-企业边的中断最大传导次数</th>\n",
|
|
|
|
" <th>产业-企业边断裂总数</th>\n",
|
|
|
|
" <th>系统恢复用时</th>\n",
|
2023-07-08 16:23:44 +08:00
|
|
|
" </tr>\n",
|
|
|
|
" </thead>\n",
|
|
|
|
" <tbody>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <th>8</th>\n",
|
2023-07-10 14:47:23 +08:00
|
|
|
" <td>单一供应商断供对企业运营的影响P3</td>\n",
|
2023-07-08 16:23:44 +08:00
|
|
|
" <td>低</td>\n",
|
|
|
|
" <td>1.915</td>\n",
|
|
|
|
" <td>0.7324</td>\n",
|
|
|
|
" <td>0.6919</td>\n",
|
|
|
|
" <td>2.111</td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <th>9</th>\n",
|
2023-07-10 14:47:23 +08:00
|
|
|
" <td>单一供应商断供对企业运营的影响P3</td>\n",
|
2023-07-08 16:23:44 +08:00
|
|
|
" <td>中</td>\n",
|
|
|
|
" <td>2.219</td>\n",
|
|
|
|
" <td>0.9477</td>\n",
|
|
|
|
" <td>0.7478</td>\n",
|
|
|
|
" <td>2.242</td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <th>10</th>\n",
|
2023-07-10 14:47:23 +08:00
|
|
|
" <td>单一供应商断供对企业运营的影响P3</td>\n",
|
2023-07-08 16:23:44 +08:00
|
|
|
" <td>高</td>\n",
|
|
|
|
" <td>2.708</td>\n",
|
|
|
|
" <td>1.1902</td>\n",
|
|
|
|
" <td>0.8713</td>\n",
|
|
|
|
" <td>2.469</td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <th>5</th>\n",
|
2023-07-10 14:47:23 +08:00
|
|
|
" <td>新供应关系构成概率P8</td>\n",
|
2023-07-08 16:23:44 +08:00
|
|
|
" <td>低</td>\n",
|
|
|
|
" <td>2.367</td>\n",
|
|
|
|
" <td>1.0258</td>\n",
|
|
|
|
" <td>0.8611</td>\n",
|
|
|
|
" <td>2.515</td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <th>6</th>\n",
|
2023-07-10 14:47:23 +08:00
|
|
|
" <td>新供应关系构成概率P8</td>\n",
|
2023-07-08 16:23:44 +08:00
|
|
|
" <td>中</td>\n",
|
|
|
|
" <td>2.228</td>\n",
|
|
|
|
" <td>0.9255</td>\n",
|
|
|
|
" <td>0.7274</td>\n",
|
|
|
|
" <td>2.195</td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <th>7</th>\n",
|
2023-07-10 14:47:23 +08:00
|
|
|
" <td>新供应关系构成概率P8</td>\n",
|
2023-07-08 16:23:44 +08:00
|
|
|
" <td>高</td>\n",
|
|
|
|
" <td>2.247</td>\n",
|
|
|
|
" <td>0.9191</td>\n",
|
|
|
|
" <td>0.7226</td>\n",
|
|
|
|
" <td>2.111</td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" <tr>\n",
|
2023-07-10 14:47:23 +08:00
|
|
|
" <th>1</th>\n",
|
|
|
|
" <td>是否规模偏好P2</td>\n",
|
|
|
|
" <td>不倾向</td>\n",
|
|
|
|
" <td>2.393</td>\n",
|
|
|
|
" <td>1.0197</td>\n",
|
|
|
|
" <td>0.7709</td>\n",
|
|
|
|
" <td>2.334</td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <th>0</th>\n",
|
|
|
|
" <td>是否规模偏好P2</td>\n",
|
|
|
|
" <td>倾向</td>\n",
|
|
|
|
" <td>2.168</td>\n",
|
|
|
|
" <td>0.8939</td>\n",
|
|
|
|
" <td>0.7698</td>\n",
|
|
|
|
" <td>2.214</td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" <tr>\n",
|
2023-07-08 16:23:44 +08:00
|
|
|
" <th>13</th>\n",
|
2023-07-10 14:47:23 +08:00
|
|
|
" <td>采购策略P1</td>\n",
|
2023-07-08 16:23:44 +08:00
|
|
|
" <td>单供应商</td>\n",
|
|
|
|
" <td>2.523</td>\n",
|
|
|
|
" <td>1.1081</td>\n",
|
|
|
|
" <td>0.8349</td>\n",
|
|
|
|
" <td>2.402</td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <th>12</th>\n",
|
2023-07-10 14:47:23 +08:00
|
|
|
" <td>采购策略P1</td>\n",
|
2023-07-08 16:23:44 +08:00
|
|
|
" <td>双供应商</td>\n",
|
|
|
|
" <td>2.253</td>\n",
|
|
|
|
" <td>0.9342</td>\n",
|
|
|
|
" <td>0.7568</td>\n",
|
|
|
|
" <td>2.230</td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <th>11</th>\n",
|
2023-07-10 14:47:23 +08:00
|
|
|
" <td>采购策略P1</td>\n",
|
2023-07-08 16:23:44 +08:00
|
|
|
" <td>三供应商</td>\n",
|
|
|
|
" <td>2.066</td>\n",
|
|
|
|
" <td>0.8281</td>\n",
|
|
|
|
" <td>0.7193</td>\n",
|
|
|
|
" <td>2.189</td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <th>4</th>\n",
|
2023-07-10 14:47:23 +08:00
|
|
|
" <td>额外产能分布参数P7</td>\n",
|
2023-07-08 16:23:44 +08:00
|
|
|
" <td>低</td>\n",
|
|
|
|
" <td>2.322</td>\n",
|
|
|
|
" <td>0.9941</td>\n",
|
|
|
|
" <td>0.8553</td>\n",
|
|
|
|
" <td>2.442</td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <th>3</th>\n",
|
2023-07-10 14:47:23 +08:00
|
|
|
" <td>额外产能分布参数P7</td>\n",
|
2023-07-08 16:23:44 +08:00
|
|
|
" <td>中</td>\n",
|
|
|
|
" <td>2.323</td>\n",
|
|
|
|
" <td>0.9772</td>\n",
|
|
|
|
" <td>0.7891</td>\n",
|
|
|
|
" <td>2.330</td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <th>2</th>\n",
|
2023-07-10 14:47:23 +08:00
|
|
|
" <td>额外产能分布参数P7</td>\n",
|
2023-07-08 16:23:44 +08:00
|
|
|
" <td>高</td>\n",
|
|
|
|
" <td>2.197</td>\n",
|
|
|
|
" <td>0.8991</td>\n",
|
|
|
|
" <td>0.6667</td>\n",
|
|
|
|
" <td>2.050</td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" </tbody>\n",
|
|
|
|
"</table>\n",
|
|
|
|
"</div>"
|
|
|
|
],
|
|
|
|
"text/plain": [
|
2023-07-10 14:47:23 +08:00
|
|
|
" 自变量 level 产业-企业边的中断累计次数 产业-企业边的中断最大传导次数 产业-企业边断裂总数 \\\n",
|
|
|
|
"8 单一供应商断供对企业运营的影响P3 低 1.915 0.7324 0.6919 \n",
|
|
|
|
"9 单一供应商断供对企业运营的影响P3 中 2.219 0.9477 0.7478 \n",
|
|
|
|
"10 单一供应商断供对企业运营的影响P3 高 2.708 1.1902 0.8713 \n",
|
|
|
|
"5 新供应关系构成概率P8 低 2.367 1.0258 0.8611 \n",
|
|
|
|
"6 新供应关系构成概率P8 中 2.228 0.9255 0.7274 \n",
|
|
|
|
"7 新供应关系构成概率P8 高 2.247 0.9191 0.7226 \n",
|
|
|
|
"1 是否规模偏好P2 不倾向 2.393 1.0197 0.7709 \n",
|
|
|
|
"0 是否规模偏好P2 倾向 2.168 0.8939 0.7698 \n",
|
|
|
|
"13 采购策略P1 单供应商 2.523 1.1081 0.8349 \n",
|
|
|
|
"12 采购策略P1 双供应商 2.253 0.9342 0.7568 \n",
|
|
|
|
"11 采购策略P1 三供应商 2.066 0.8281 0.7193 \n",
|
|
|
|
"4 额外产能分布参数P7 低 2.322 0.9941 0.8553 \n",
|
|
|
|
"3 额外产能分布参数P7 中 2.323 0.9772 0.7891 \n",
|
|
|
|
"2 额外产能分布参数P7 高 2.197 0.8991 0.6667 \n",
|
|
|
|
"\n",
|
|
|
|
" 系统恢复用时 \n",
|
|
|
|
"8 2.111 \n",
|
|
|
|
"9 2.242 \n",
|
|
|
|
"10 2.469 \n",
|
|
|
|
"5 2.515 \n",
|
|
|
|
"6 2.195 \n",
|
|
|
|
"7 2.111 \n",
|
|
|
|
"1 2.334 \n",
|
|
|
|
"0 2.214 \n",
|
|
|
|
"13 2.402 \n",
|
|
|
|
"12 2.230 \n",
|
|
|
|
"11 2.189 \n",
|
|
|
|
"4 2.442 \n",
|
|
|
|
"3 2.330 \n",
|
|
|
|
"2 2.050 "
|
2023-07-08 16:23:44 +08:00
|
|
|
]
|
|
|
|
},
|
2023-07-10 14:47:23 +08:00
|
|
|
"execution_count": 7,
|
2023-07-08 16:23:44 +08:00
|
|
|
"metadata": {},
|
|
|
|
"output_type": "execute_result"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
|
|
|
"import pandas as pd\n",
|
|
|
|
"import matplotlib.pyplot as plt\n",
|
|
|
|
"import seaborn as sns\n",
|
|
|
|
"\n",
|
|
|
|
"config = {\"figure.dpi\": 300,\n",
|
|
|
|
" \"font.family\": 'serif',\n",
|
|
|
|
" \"font.serif\": ['SimSun']}\n",
|
|
|
|
"df = pd.read_csv('analysis/anova_visualization.csv', encoding='utf-8-sig')\n",
|
|
|
|
"df['sort_index'] = df['level'].map({'不倾向':0,\n",
|
|
|
|
" '倾向':1,\n",
|
|
|
|
" '低':0,\n",
|
|
|
|
" '中':1,\n",
|
|
|
|
" '高':2,\n",
|
|
|
|
" '单供应商':0,\n",
|
|
|
|
" '双供应商':1,\n",
|
|
|
|
" '三供应商':2})\n",
|
|
|
|
"df.sort_values(['自变量', 'sort_index'], inplace=True)\n",
|
|
|
|
"df.drop(columns='sort_index', inplace=True)\n",
|
|
|
|
"df"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-07-10 14:47:23 +08:00
|
|
|
"execution_count": 8,
|
2023-07-08 16:23:44 +08:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"text/plain": [
|
2023-07-10 14:47:23 +08:00
|
|
|
"Text(0.5, 1.0, '是否规模偏好P2')"
|
2023-07-08 16:23:44 +08:00
|
|
|
]
|
|
|
|
},
|
2023-07-10 14:47:23 +08:00
|
|
|
"execution_count": 8,
|
2023-07-08 16:23:44 +08:00
|
|
|
"metadata": {},
|
|
|
|
"output_type": "execute_result"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"data": {
|
2023-07-10 14:47:23 +08:00
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAABrcAAAViCAYAAACoEKf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nqwffvihE6tv2hNPPKFrrrlG+fn5bTovKipK7777rsaNG6eVK1d2UXWt++yzz3TxxRfr+uuv18aNGwNWBwAAAOAPU6ALAAAAABA6bDabHnnkES1dulS33HKLjjzyyA5d7z//+Y+ef/55SdIf//hHPfHEExo4cGAnVBp4LpdLd999t15//XXvvmuuuabD142MjFRxcbEWLFigZ555RvPnz9cZZ5zR4ev6w+FwyGg0dvg6ERERkqRVq1Zpx44d6tOnj0444QS/zo2KipIkFRcXa9GiRYqNjdUVV1zR5PUlacWKFbJYLHriiSeUmJjY4dqb88UXXygnJ0e//e1vdfPNN+vyyy9XWFjrf08aHh6uhQsX6sILL9TVV1+tiy66SHfeeadiY2O7rNam7N27V5K0fPlyLV++XHfddZcuv/zybq0BAAAA8BfhFgAAAAC/hYeHS5Ly8/N16623duq1c3JyNHPmTL322mvtDlAcDodKSko6ta72euyxxxoFWw899JCkjgdcnq+BJF1xxRV+BVvr1q1TdXW1xowZ0+77lpSU6KqrrtK1116rCy+8sN3XkRrCp6ysLL366qtKTk72+9zIyEjv9qxZsw4JtqTGn6NzzjlH8+bN65RQrjnbt29XTk6OJKm6ulrPPfecjjvuOB177LF+nd+3b1/dd999mj59ut5++21t3LhRr776arcGXLt37/ZuT548WRMmTOjye65fv14vvfSS/vnPfzb6mgEAAACtIdwCAAAA4DffF6DHjx+vOXPmdOh6b7/9tu644w5J0tixY/Xoo492KIQwGo16+umn9fLLL3eorq7SGQGX2Wz2bvsbQBQUFOimm27SKaecoilTprQpTJLcXWh33HGHtm7dqttuu015eXmaPn16m67hy2Ry/yrar1+/Ntfi+z2YkJDQ6jGDBw9u8ntq48aNGjBgQKcESB9++KF3u1evXlq6dKnS0tLadI1f//rXOuWUU/TNN99oy5Ytmjt3ru69994O1+YPh8PhHadoMBg0adIkGQyGLr3nzp07NXnyZJWWlqqkpESPP/64tysPAAAAaA3hFgAAAAC/dWV3xbhx4xQXF9fh6/ztb39TSkqKJGn48OHq27evEhMTvYGKP1wul66//nqtWbN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O+4dbw4cPbfR1/WK1WzZ49W5KUnJysxx9/XKNGjWr1vDvuuENTpkzR+vXrde+998rhcEhyj1H861//qtTUVO+xtbW1qqio0Pbt27Vq1SotWbJEL7zwggYNGqS7775bJ510kt/1rl+/Xv/4xz+0fft2XXDBBZo+fbr69esnm82mvXv36uuvv9b777+vd99917tO2llnndXGzwoAAADainALAAAAgN98w63KysomR8K1RVFRkXfb5XJ16Fod5XA4dPPNN3tHzA0YMEC7du3Se++9p+XLl+uOO+5o1zi/ztbaml0ul+uQY1rrJvn3v/+tE088sdW1ljpLcyGpxWLRunXrdMopp+jss89u8hi73d6me/kGlZ1t2bJlqqqqkqRmu9l8w60///nPmj59eofvm5OTo/POO0+SdM0113Qo2JKkrVu3SnLX2tXjN//1r39p9+7d6tOnj5YsWaKBAwf6dV5qaqpSU1N15JFH6s0339T69eslSVdeeaVOP/30Js859dRTdfXVVys/P1+33367Vq1apYkTJ+qWW25pceyjx0svvaTZs2dr1KhR+vjjjw8JWkeOHKnzzjtPkydP1uTJk7Vr1y7dcMMNuvvuu3XZZZf59XEBAACgfQi3AAAAAPjNN5T49NNP9emnn3batQMdbs2ZM0fffPONJOnoo4/WX/7yF1199dW
|
2023-07-08 16:23:44 +08:00
|
|
|
"text/plain": [
|
|
|
|
"<Figure size 1920x1440 with 1 Axes>"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "display_data"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
2023-07-10 14:47:23 +08:00
|
|
|
"x_name = '是否规模偏好P2'\n",
|
2023-07-08 16:23:44 +08:00
|
|
|
"df_x = df.loc[df['自变量']==x_name, 'level':].set_index('level').stack().reset_index().rename(columns={'level':'水平','level_1':'响应变量',0:'均值'})\n",
|
|
|
|
"sns.set_theme(style=\"whitegrid\", rc=config)\n",
|
|
|
|
"ax = sns.pointplot(data=df_x, x=\"水平\", y=\"均值\", hue=\"响应变量\")\n",
|
|
|
|
"ax.set_title(x_name)"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-07-10 14:47:23 +08:00
|
|
|
"execution_count": 9,
|
2023-07-08 16:23:44 +08:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"text/plain": [
|
2023-07-10 14:47:23 +08:00
|
|
|
"Text(0.5, 1.0, '额外产能分布参数P7')"
|
2023-07-08 16:23:44 +08:00
|
|
|
]
|
|
|
|
},
|
2023-07-10 14:47:23 +08:00
|
|
|
"execution_count": 9,
|
2023-07-08 16:23:44 +08:00
|
|
|
"metadata": {},
|
|
|
|
"output_type": "execute_result"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"data": {
|
2023-07-10 14:47:23 +08:00
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAABs4AAAViCAYAAACiTAm1AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjMuNCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8QVMy6AAAACXBIWXMAAC4jAAAuIwF4pT92AAEAAElEQVR4nOzdd3hTZf/H8U+a7k0nLVM2Kg8yBBkK4gYREREFURGQjTgQQUUFFwgiIAjKUFQE588BIjgQFWQoKLI3lEL3oDNtkt8fpaGlK51p5f26rufqSc459/mmTVqf8+F73war1WoVAAAAAAAAAAAAcIlzcnQBAAAAAAAAAAAAQHVAcAYAAAAAAAAAAACI4AwAAAAAAAAAAACQRHAGAAAAAAAAAAAASCI4AwAAAAAAAAAAACQRnAEAAAAAAAAAAACSCM4AAAAAAAAAAAAASQRnAAAAAAAAAAAAgCSCMwAAAAAAAAAAAEASwRkAAAAAAAAAAAAgieAMAAAAAAAAAAAAkERwBgAAAAAAAAAAAEgiOAMAAAAAAAAAAAAkEZwBAAAAAAAAAAAAkgjOAAAAAAAAAAAAAEkEZwAAAAAAAAAAAIAkgjMAAAAAAAAAAABAEsEZAAAAAAAAAAAA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vu0YsUKTZw4UUajUT179iz02HfeeafSpkCbPXu2vL29NXDgwDKdv2/fPtu21WrV77//rq5du6pBgwalGsfd3T3f43bt2snPz69MNVWWhx56SN9884327dunAwcOaNCgQfriiy8UFBTk6NIkSTNmzLDdvHd2dlZiYqLi4+MVGBho1/m5gcKOHTu0Y8cOtW7dWh9++KFcXV0rrWZ7/frrr9q5c6eGDBmiMWPGaNSoUXJyKvzfk1511VWSpJtvvllPPPFEFVZZej/88INtOysrS4sXL5azs7PGjBnjwKrsEx8fr1GjRmnXrl2SJBcXF913333q0aOH2rVr57C6jh07phkzZmjatGm66aabCux3cXGxbQ8bNkx169bNtz8yMlJbt27Vli1b9P333+vVV1/VZZddZtt/8OBBpaWl2R4//vjjGjFiRCW8EgAAAJQWwRkAAABQww0bNkwffvihLBaLpk+fru7du8vT07PAcY888ogkac+ePbrqqqvUqFEj+fr6ysfHRwaDwXbcF198oSVLlkjK6ZCaNm2aXXUUFUDYY/v27fkeL168WG3bti31OM7OF/4vzlNPPaV77rmnzDVVFqPRqGeeeUb333+/JCkqKkrz5s2z+/t8sezs7Hyvuzy+/fZb/f7775KkRo0aac6cOWrRokWpxshbS4MGDTRr1qxiQ7P09HR5eHiUreBS+vjjjyXldPvMmzdPO3bs0IIFCwr9vISHhys0NFQnT56U0WiskvrKasOGDbbtkJAQffjhh6UOnR3h33//1bhx4xQZGSlJuuaaa/T888+rUaNGRZ6zZMkShYeH64YbbsjX9VXRxowZozVr1mjs2LEaOHCgnnnmmXzv7ZI+cx988IEtgE5ISNDhw4fzBWd5f+c1atRIw4YNq+BXAAAAgLIiOAMAAABqgJMnT8pgMKhevXoF9oWGhqp169bauXOn4uPjtXnzZt14440FjrNYLLbwrDh5pwobNWqUGjduXL7i7ZB36ryWLVuWKTSTlC/g8Pb2LnddleXqq69W8+bNdeDAAUlSYmJimcY5ceKEHnnkEb3wwgvq1KlTuWqKjY3V9OnTJUmdO3fWvHnz5OPjU+px8gYKAwYMUP369Ys8dufOnXrssc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Uk6X3IMPPiip6OAsIiJCH330kerVq6clS5bI19e3wDGHDh2yBcW9e/eusO7Y8ePH6/v
|
2023-07-08 16:23:44 +08:00
|
|
|
"text/plain": [
|
|
|
|
"<Figure size 1920x1440 with 1 Axes>"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "display_data"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
2023-07-10 14:47:23 +08:00
|
|
|
"x_name = '额外产能分布参数P7'\n",
|
2023-07-08 16:23:44 +08:00
|
|
|
"df_x = df.loc[df['自变量']==x_name, 'level':].set_index('level').stack().reset_index().rename(columns={'level':'水平','level_1':'响应变量',0:'均值'})\n",
|
|
|
|
"sns.set_theme(style=\"whitegrid\", rc=config)\n",
|
|
|
|
"ax = sns.pointplot(data=df_x, x=\"水平\", y=\"均值\", hue=\"响应变量\")\n",
|
|
|
|
"ax.set_title(x_name)"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-07-10 14:47:23 +08:00
|
|
|
"execution_count": 10,
|
2023-07-08 16:23:44 +08:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"text/plain": [
|
2023-07-10 14:47:23 +08:00
|
|
|
"Text(0.5, 1.0, '新供应关系构成概率P8')"
|
2023-07-08 16:23:44 +08:00
|
|
|
]
|
|
|
|
},
|
2023-07-10 14:47:23 +08:00
|
|
|
"execution_count": 10,
|
2023-07-08 16:23:44 +08:00
|
|
|
"metadata": {},
|
|
|
|
"output_type": "execute_result"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"data": {
|
2023-07-10 14:47:23 +08:00
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAABs4AAAVjCAYAAABpENoQAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjMuNCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8QVMy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du7yWZHaenp6p7me0xtbEiRO1Y8cO3bt3T1evXlX//v21adMmubi45Esd2fm7cHBwME6JOX/+/Ay3u3z5snr27Kn169crIiJCffr0UXBwcI7q2bt3rwYMGKAFCxaoSJEiOdo3N9q2batp06bJYDCobdu2uTrG77//rtGjR6tBgwb66quvUv2wAQAA4GH1YPw/VgAAAOABZGtrq9atW2v16tXy9vZW6dKlUz0fExOjIUOG6ODBg/riiy/UrFmzVM8bDAbNmzdPW7Zs0aOPPqr9+/crJCRExYsXV6VKldS1a1dVrFhRFStWVIUKFVSqVKl8C6UMBoN++OEH4/2hQ4em6rS5X05CpYLsDvrzzz917949dezYMc/HatCggZydnRUZGakuXbpk+70NDw9X//79jR1hBoMhw069vKhYsaL69u1rXE9u2bJlevzxx9WmTZtM99uwYYPx9sSJEws0NLv/fDlx/fp1zZkzR5J05MgRvf7666pbt67ee++9VNMCmltOPuvp+fXXX423e/fu/UAGFe7u7rK1tTUG9xkFZ+7u7ho4cKA++ugjSdKNGze0a9euLD+j2ZXZd1IK0/f3jz/+SNOFO378eG3YsEGVK1fWpEmTVKxYMRU
|
2023-07-08 16:23:44 +08:00
|
|
|
"text/plain": [
|
|
|
|
"<Figure size 1920x1440 with 1 Axes>"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "display_data"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
2023-07-10 14:47:23 +08:00
|
|
|
"x_name = '新供应关系构成概率P8'\n",
|
2023-07-08 16:23:44 +08:00
|
|
|
"df_x = df.loc[df['自变量']==x_name, 'level':].set_index('level').stack().reset_index().rename(columns={'level':'水平','level_1':'响应变量',0:'均值'})\n",
|
|
|
|
"sns.set_theme(style=\"whitegrid\", rc=config)\n",
|
|
|
|
"ax = sns.pointplot(data=df_x, x=\"水平\", y=\"均值\", hue=\"响应变量\")\n",
|
|
|
|
"ax.set_title(x_name)"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-07-10 14:47:23 +08:00
|
|
|
"execution_count": 11,
|
2023-07-08 16:23:44 +08:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"text/plain": [
|
2023-07-10 14:47:23 +08:00
|
|
|
"Text(0.5, 1.0, '单一供应商断供对企业运营的影响P3')"
|
2023-07-08 16:23:44 +08:00
|
|
|
]
|
|
|
|
},
|
2023-07-10 14:47:23 +08:00
|
|
|
"execution_count": 11,
|
2023-07-08 16:23:44 +08:00
|
|
|
"metadata": {},
|
|
|
|
"output_type": "execute_result"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"data": {
|
2023-07-10 14:47:23 +08:00
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAABs4AAAVjCAYAAABpENoQAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjMuNCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8QVMy6AAAACXBIWXMAAC4jAAAuIwF4pT92AAEAAElEQVR4nOzdd3hUReP28TsVEgiEDtJrQEXpUqRIsyBNqjQpUqWoVJUOPvRepIP0JogI0nuTXqWGHnoNIT277x95s78EUnaT3WwC3891eXk2O+fM7GbP2TD3mRkHo9FoFAAAAAAAAAAAAPCWc7R3AwAAAAAAAAAAAICkgOAMAAAAAAAAAAAAEMEZAAAAAAAAAAAAIIngDAAAAAAAAAAAAJBEcAYAAAAAAAAAAABIIjgDAAAAAAAAAAAAJBGcAQAAAAAAAAAAAJIIzgAAAAAAAAAAAABJBGcAAAAAAAAAAACAJIIzAAAAAAAAAAAAQBLBGQAAAAAAAAAAACCJ4AwAAAAAAAAAAACQRHAGAAAAAAAAAAAASCI4AwAAAAAAAAAAACQRnAEAAAAAAAAAAACSCM4AAAAAAAAAAAAASQRnAAAAAAAAAAAAgCSCMwAAAAAAAAAAAEASwRkAAAAAAAAAAAAgieAMAAAAAAAAAAAAkERwBgAAAAAAAAA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PTwIEDTY/Tp0+vQYMG6bPPPotXO6wtLCxM27Ztk4uLi8aMGWP1EX8AACQ1SetfRwAAAEnIl19+qQkTJpjWuohrzYt58+bJ19d
|
2023-07-08 16:23:44 +08:00
|
|
|
"text/plain": [
|
|
|
|
"<Figure size 1920x1440 with 1 Axes>"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "display_data"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
2023-07-10 14:47:23 +08:00
|
|
|
"x_name = '单一供应商断供对企业运营的影响P3'\n",
|
2023-07-08 16:23:44 +08:00
|
|
|
"df_x = df.loc[df['自变量']==x_name, 'level':].set_index('level').stack().reset_index().rename(columns={'level':'水平','level_1':'响应变量',0:'均值'})\n",
|
|
|
|
"sns.set_theme(style=\"whitegrid\", rc=config)\n",
|
|
|
|
"ax = sns.pointplot(data=df_x, x=\"水平\", y=\"均值\", hue=\"响应变量\")\n",
|
|
|
|
"ax.set_title(x_name)"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-07-10 14:47:23 +08:00
|
|
|
"execution_count": 12,
|
2023-07-08 16:23:44 +08:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"text/plain": [
|
2023-07-10 14:47:23 +08:00
|
|
|
"Text(0.5, 1.0, '采购策略P1')"
|
2023-07-08 16:23:44 +08:00
|
|
|
]
|
|
|
|
},
|
2023-07-10 14:47:23 +08:00
|
|
|
"execution_count": 12,
|
2023-07-08 16:23:44 +08:00
|
|
|
"metadata": {},
|
|
|
|
"output_type": "execute_result"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"data": {
|
2023-07-10 14:47:23 +08:00
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAABs4AAAVjCAYAAABpENoQAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjMuNCwg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V///d/qqysVGVlpS677DK99NJLCg8P32PeefPmafLkyR2Wcq0tXLhQjY2N7X4fbty4UUuXLpUknXbaaZ2aprKurk5XXHGFVq5cqU2bNmnGjBmdzuMvGhoaNHnyZM2aNUu5ublGxwEAAMBeiuIMAAAAAHzkjTfeUFNTky688ELvyK+u8Hg8evvtt1VWVqbPPvtMDzzwgAYOHNilY3TnvK3FxMTomGOO2e1769evV0lJiSTp+OOPV3R0dJeP7/F4uj1K7ZtvvtGXX37pff7kk0/qySef7PT+zz77rMLDw3XUUUd5R5s5nU5dd911Xc7y66+/6qqrrtILL7ygkJCQPZ5z3rx5evDBB5WWltbhccvLyzV9+nRVV1drxowZux1N9tFHH3kfv/fee23We2uPx+PxFo5z5sxRbW2tZs2aJbPZ3O4+119/vT799NMOj71TWFiYIiIi1L9/fx144IE64ogjNG7cuE7vvyfbt2/XzTffrHXr1vXK8QAAALD/ojgDAAAAgG7aunVrl9ayOuqoo3T66afrnXfe0b333qsxY8Z06XxLlixRWVmZpJYpEU855RQ98MADOv744zt9jICAvvs1sHVpde6553Z5/+rqal1++eW64oordPTRR3dp39raWt19992SpJSUFL3++utKTk6WJN12221av369Zs+erQEDBnR4rEsvvVQOh0Pjxo3Tc889p+DgYDU3N+vMM8/UhAkTdN111yksLKzLH9/uBAYGaunSpfrjH//Y5X0feOABhYSE6Jxzzmnz+vz58yVJ0dHRmjRpkqZOndrhsV566SVvwRYQECCXy6Wampo9TnN522236aqrrtKvv/6qe++9Vy6XS1LL2na333679/MvSU1NTdq+fbvWrl2rvLw8vf7663r55ZeVlZWlu+++W4ceemiXPnaPx6Pq6mpt3rxZX331lebNm6fNmzd36RgAAADA7lCcAQAAAEA3TZ8+XQcddJCuvfbaTq1PlpiYqNmzZ+uSSy7RBRdcoAsuuEA333yzgoODO3W+348cmjx5siZOnNilzDvXY3O73V3arzM+/PBDSS3FVURERLtTJO6Ow+HQLbfcotWrV+v//u//9PDDD+vYY4/t9P733XefbDabkpOT9corr7Qpbe68804de+yxOv300/Xiiy9q5MiR7R7n7bff1vfff6+JEyfqiSee8H5tgoODdf/992vKlCn67LPP9NRTT2nYsGGdzteend83Rx55pG6++eY2OV566SUlJCTo5Zdf9r6+evVq73SSkydP1hlnnNHmeKtWrVJhYaEkafbs2frb3/6mwYMH77Ew3bJliz7//HNJksVi0euvv67Ro0d3mD05OVnJyckaPny45s2bp19//VWSNHXq1Ha/LydMmKCLL75YZWVluvXWW5WXl6dLLrlEN954o/70pz91eM733ntPt99+u9xutzweT4fbAwAAAF1FcQYAAAAA3fSXv/xFp556qr766ivNnj27U0XK+PHjNWXKFL311lt67bXX9PPPP+uFF17ocORaVVWVPvjgA+/z8847T/fcc0+3cgcEBMhut+/yellZmeLj4ztVAv5eUVGR8vPzJbWssXXCCSd0K5vUUqLddNNNysrK0qBBgzrc/q233tL777+vhIQEvfLKK0pJSWnzvtVq1RVXXKG//OUvuvjii/Xmm29q8ODBuxynoKBA9913n8444wzde++9u0xrOWrUKJ144omaP3++zj33XP3zn//UwQcf3O2PU5J3bbP
|
2023-07-08 16:23:44 +08:00
|
|
|
"text/plain": [
|
|
|
|
"<Figure size 1920x1440 with 1 Axes>"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "display_data"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
2023-07-10 14:47:23 +08:00
|
|
|
"x_name = '采购策略P1'\n",
|
2023-07-08 16:23:44 +08:00
|
|
|
"df_x = df.loc[df['自变量']==x_name, 'level':].set_index('level').stack().reset_index().rename(columns={'level':'水平','level_1':'响应变量',0:'均值'})\n",
|
|
|
|
"sns.set_theme(style=\"whitegrid\", rc=config)\n",
|
|
|
|
"ax = sns.pointplot(data=df_x, x=\"水平\", y=\"均值\", hue=\"响应变量\")\n",
|
|
|
|
"ax.set_title(x_name)"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"metadata": {
|
|
|
|
"kernelspec": {
|
|
|
|
"display_name": "iiabm_py3.8.8",
|
|
|
|
"language": "python",
|
|
|
|
"name": "python3"
|
|
|
|
},
|
|
|
|
"language_info": {
|
|
|
|
"codemirror_mode": {
|
|
|
|
"name": "ipython",
|
|
|
|
"version": 3
|
|
|
|
},
|
|
|
|
"file_extension": ".py",
|
|
|
|
"mimetype": "text/x-python",
|
|
|
|
"name": "python",
|
|
|
|
"nbconvert_exporter": "python",
|
|
|
|
"pygments_lexer": "ipython3",
|
|
|
|
"version": "3.8.8"
|
|
|
|
},
|
|
|
|
"orig_nbformat": 4
|
|
|
|
},
|
|
|
|
"nbformat": 4,
|
|
|
|
"nbformat_minor": 2
|
|
|
|
}
|