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

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.

主站蜘蛛池模板: 长兴县| 夏邑县| 湖州市| 平果县| 景宁| 侯马市| 盘山县| 富阳市| 开远市| 肃南| 台东县| 灵寿县| 永顺县| 涟水县| 开鲁县| 南川市| 开封县| 班戈县| 绍兴市| 万宁市| 沧州市| 屏南县| 华亭县| 连州市| 天峻县| 抚远县| 南澳县| 双峰县| 息烽县| 射洪县| 灵川县| 鄂州市| 兴业县| 左云县| 青海省| 越西县| 云浮市| 长阳| 德化县| 南京市| 麻江县|