估计白噪声模型
本练习是课程的一部分
R 中的时间序列分析
练习说明
- 使用
arima()为y估计 WN 模型。请在指定数据后包含参数order = c(0, 0, 0)。 - 分别使用
mean()和var()计算y的均值与方差。将结果与arima()输出进行比较。
交互式实操练习
通过完成这段示例代码来试试这个练习。
# Fit the WN model to y using the arima command
# Calculate the sample mean and sample variance of y