โมเดล White Noise (WN)

การวิเคราะห์อนุกรมเวลาใน R

David S. Matteson

Associate Professor at Cornell University

White Noise

White Noise (WN) คือตัวอย่างที่ง่ายที่สุดของกระบวนการ stationary

กระบวนการ weak white noise มีคุณสมบัติดังนี้:

  • ค่าเฉลี่ยคงที่
  • ความแปรปรวนคงที่
  • ไม่มีความสัมพันธ์ตามเวลา
การวิเคราะห์อนุกรมเวลาใน R

White Noise

กราฟ time series ของ White Noise:

การวิเคราะห์อนุกรมเวลาใน R

White Noise

กราฟ time series ของ White Noise?

การวิเคราะห์อนุกรมเวลาใน 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

การประมาณค่า White Noise

# 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...