modify:.gitignore
This commit is contained in:
parent
6296f7acf3
commit
cc18f277fc
13
Beijing_air_quality_prediction/README.md
Normal file
13
Beijing_air_quality_prediction/README.md
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
### 3. SARIMA时间序列预测模型
|
||||||
|
|
||||||
|
#### 建模思路
|
||||||
|
1. **数据特性分析**
|
||||||
|
- 通过ADF检验验证序列平稳性(p值=0.03,通过5%显著性水平)
|
||||||
|
- 季节分解显示存在周周期性(s=7)和长期趋势
|
||||||
|
- ACF/PACF分析确定初始参数范围
|
||||||
|
|
||||||
|
2. **参数选择**
|
||||||
|
采用网格搜索确定最优参数组合:
|
||||||
|
```python
|
||||||
|
final_order = (1, 1, 1) # 非季节性参数
|
||||||
|
seasonal_order = (1, 1, 1, 7) # 周周期季节性
|
@ -532,8 +532,8 @@
|
|||||||
{
|
{
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"ExecuteTime": {
|
"ExecuteTime": {
|
||||||
"end_time": "2025-03-24T07:17:24.611373Z",
|
"end_time": "2025-03-24T07:23:26.872703Z",
|
||||||
"start_time": "2025-03-24T07:17:22.170632Z"
|
"start_time": "2025-03-24T07:23:24.709736Z"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
@ -572,6 +572,7 @@
|
|||||||
"ax.set_xlabel('日期', fontsize=12)\n",
|
"ax.set_xlabel('日期', fontsize=12)\n",
|
||||||
"ax.set_ylabel('AQI数值', fontsize=12)\n",
|
"ax.set_ylabel('AQI数值', fontsize=12)\n",
|
||||||
"plt.legend()\n",
|
"plt.legend()\n",
|
||||||
|
"plt.savefig('./images/AQI.png', dpi=200, bbox_inches='tight')\n",
|
||||||
"plt.show()\n",
|
"plt.show()\n",
|
||||||
"\n",
|
"\n",
|
||||||
"# 计算拟合度指标\n",
|
"# 计算拟合度指标\n",
|
||||||
@ -594,13 +595,6 @@
|
|||||||
],
|
],
|
||||||
"id": "24996a0c06820cdc",
|
"id": "24996a0c06820cdc",
|
||||||
"outputs": [
|
"outputs": [
|
||||||
{
|
|
||||||
"name": "stdout",
|
|
||||||
"output_type": "stream",
|
|
||||||
"text": [
|
|
||||||
"<class 'pandas.core.indexes.datetimes.DatetimeIndex'>\n"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"data": {
|
"data": {
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
@ -622,7 +616,7 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"execution_count": 12
|
"execution_count": 13
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
|
BIN
images/AQI.png
Normal file
BIN
images/AQI.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 362 KiB |
Loading…
x
Reference in New Issue
Block a user