Mobile wallpaper 1Mobile wallpaper 2Mobile wallpaper 3Mobile wallpaper 4Mobile wallpaper 5Mobile wallpaper 6
170 words
1 minute
ARIMA Time Series Analysis Study

基于 ARIMA 模型的非平稳时间序列预测#

摘要:本文主要记录了在统计学课程中对 ARIMA(p,d,q) 模型的参数估计与检验过程。

1. 理论基础#

时间序列分析的核心在于提取数据中的趋势(Trend)与季节性(Seasonality)。对于非平稳序列,我们需要进行差分处理。

公式如下: ϕ(B)(1B)dXt=θ(B)ϵt\phi(B)(1-B)^d X_t = \theta(B)\epsilon_t

其中,BB 为滞后算子。

2. 数据预处理 (R Language)#

首先加载必要的库,并进行单位根检验 (ADF Test)。

library(tseries)
library(forecast)
data <- read.csv("data.csv")
ts_data <- ts(data$value, frequency=12)
# ADF 检验
adf.test(ts_data)
# p-value > 0.05,表明序列不平稳,需要进行一阶差分
diff_data <- diff(ts_data)
plot(diff_data)
ARIMA Time Series Analysis Study
https://github.com/posts/arima-study/
Author
Hachimi
Published at
2025-12-25
License
CC BY-NC-SA 4.0

Some information may be outdated

封面
Sample Song
Sample Artist
封面
Sample Song
Sample Artist
0:00 / 0:00