官术网_书友最值得收藏!

How it works...

In the first step, we generate a simple toy time series. The series consists of values on a line sprinkled with some added noise. Next, we plot our time series in step 2. You can see that it is very close to a straight line and that a sensible prediction for the value of the time series at time  is . To create a forecast of the value of the time series, we consider three different schemes (step 3) for predicting the future values of the time series. In an autoregressive model, the basic idea is that the value of the time series at time t is a linear function of the values of the time series at the previous times. More precisely, there are some constants, , and a number, , such that:

As a hypothetical example, may be 3, meaning that the value of the time series can be easily computed from knowing its last 3 values.

In the moving-average model, the time series is modeled as fluctuating about a mean. More precisely, let be a sequence of i.i.d normal variables and let be a constant. Then, the time series is modeled by the following formula:

For that reason, it performs poorly in predicting the noisy linear time series we have generated.

Finally, in simple exponential smoothing, we propose a smoothing parameter, . Then, our model's estimate, , is computed from the following equations:

In other words, we keep track of an estimate, , and adjust it slightly using the current time series value, . How strongly the adjustment is made is regulated by the  parameter.

主站蜘蛛池模板: 三明市| 昔阳县| 龙门县| 寻甸| 茌平县| 闽侯县| 托里县| 资阳市| 封丘县| 靖边县| 邵阳县| 嘉义市| 霸州市| 广宁县| 合作市| 合水县| 栖霞市| 资阳市| 息烽县| 睢宁县| 蓬溪县| 成安县| 门头沟区| 上高县| 无棣县| 三江| 华池县| 闸北区| 梁河县| 信丰县| 河津市| 离岛区| 黑龙江省| 嘉义市| 泽库县| 西城区| 收藏| 积石山| 定兴县| 福海县| 上蔡县|