ホワイトノイズ(WN)モデル

Rで学ぶ時系列分析

David S. Matteson

Associate Professor at Cornell University

ホワイトノイズ

ホワイトノイズ(WN)は、定常過程の最も単純な例です。

弱ホワイト ノイズ過程の特徴:

  • 一定の平均値。
  • 一定の分散。
  • 時間的な相関がない。
Rで学ぶ時系列分析

ホワイトノイズ

ホワイトノイズの時系列プロット:

Rで学ぶ時系列分析

ホワイトノイズ

これはホワイトノイズの時系列プロットでしょうか?

Rで学ぶ時系列分析
# Simulate n = 50 observations from the WN model
WN_1 <- arima.sim(model = list(order = c(0, 0, 0)), n = 50)
head(WN_1)
-0.005052984  0.042669765  3.261154066  
 2.486431235  0.283119322  1.543525773
ts.plot(WN_1)

Rで学ぶ時系列分析
# Simulate from the WN model with mean = 4, sd = 2
WN_2 <- arima.sim(model = list(order = c(0, 0, 0)), 
                  n = 50, mean = 4, sd = 2)
ts.plot(WN_2)

Rで学ぶ時系列分析

ホワイトノイズの推定

# Fit the WN model with 
# arima()
arima(WN_2, 
      order = c(0, 0, 0))
Coefficients:
      intercept
         4.0739
s.e.     0.2698
sigma^2 estimated as 3.639
# Calculate the sample 
# mean and sample variance
# of WN
mean(WN_2)
4.0739
var(WN_2)
3.713
Rで学ぶ時系列分析

練習しましょう!

Rで学ぶ時系列分析

Preparing Video For Download...