Forecasting: JY Le Boudec
Forecasting: JY Le Boudec
JY Le Boudec
Contents
1. What is forecasting ? 2. Linear Regression 3. Avoiding Overfitting 4. Differencing 5. ARMA models 6. Sparse ARMA models 7. Case Studies
1. What is forecasting ?
Assume you have been able to define the nature of the load It remains to have an idea about its intensity It is impossible to forecast without error The good engineer should
Forecast what can be forecast
Give uncertainty intervals
2. Linear Regression
Simple, for simple cases Based on extrapolating the explanatory variables
10
Prediction interval if model is known Prediction interval accounting for estimation (t = 100 observed points)
11
12
14
15
16
17
d=1
18
19
20
21
22
23
24
25
A simple filter
26
27
28
29
Impulse Response
30
31
32
33
34
35
36
Prediction Intervals
A prediction without prediction intervals is only a small part of the story
The financial crisis might have been avoided if investors had been aware of prediction intervals
37
38
39
40
41
42
Test of iid-ness
43
44
ARMA Process
45
46
47
48
49
ARIMA Process
50
51
Fitting an ARMA model Pb is : given orders p,q given (x1, xn) (transformed data) compute the parameters of an ARMA (p,q) model that maximizes the likelihood
Q:What are the parameters ? A: the mean , the polynomial coefficients k and k , the noise variance 2
52
Usually solved by iterative, heuristic algorithms, may converge to a local maximum may not converge
Common practice is to bootstrap the optimization procedure by starting with a best guess
AR or MA fit, using heuristic above
53
54
55
56
Example
57
58
The prediction problem is: given Y1=y1,,Yt=yt find the conditional distribution of Yt+h
We know it is normal, with a mean that depends on (y1,,yt) and a variance that depends only on the fitted parameters of the ARMA process There are many ways to compute this; it is readily done by Matlab
59
60
61
There are several other methods, but they may have numerical problems. See comments in the lecture notes after prop 6.5.2
62
63
Improve Confidence Interval If Residuals are not Gaussian (but appear to be iid)
Assume residuals are not gaussian but are iid How can we get confidence intervals ?
64
65
66
67
68
69
70
71
72
73
74
75
76
77
Constrained ARIMA
Sparse models give less accurate predictions but have much fewer parameters and are simple to fit.
(corrected or not)
78
7. Case Studies
79
80
81
82
83
84
85
86
87
h=1
88
89
h=2
90
91
log h=1
92
Conclusion
Forecasting is useful when savings matter; for example
Save money on server space rental Save energy
Capturing determinism is perhaps most important and easiest Prediction intervals are useful to avoid gross mistakes Re-scaling the data may help
vous de jouer.
93