940 likes | 1.15k Views
Forecasting. JY Le Boudec. Contents. What is forecasting ? Linear Regression Avoiding Overfitting Differencing ARMA models Sparse ARMA models Case Studies. 1. What is forecasting ?. Assume you have been able to define the nature of the load
E N D
Forecasting JY Le Boudec 1
Contents • What is forecasting ? • Linear Regression • Avoiding Overfitting • Differencing • ARMA models • Sparse ARMA models • Case Studies 2
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 • The rest is outside our control 3
2. Linear Regression • Simple, for simple cases • Based on extrapolating the explanatory variables 5
Estimation and Forecasting • In practice we estimate from y, …, yt • When computing the forecast, we pretend is known, and thus make an estimation error • It is hoped that the estimation error is much less than the confidence interval for forecast • In the case of linear regression, the theorem gives the global error exactly • In general, we won’t have this luxury 9
We saw this already • A case where estimation error versus prediction uncertainty can be quantified • Prediction interval if model is known • Prediction interval accounting for estimation (t = 100 observed points) 11
3. The Overfitting Problem • The best model is not necessarily the one that fits best 12
Prediction for the better model • This is the overfitting problem 13
How to avoid overfitting • Method 1: use of test data • Method 2: information criterion 14
Best Model for Internet Data, polynomial of degree up to 2 17
d = 1 18
Best Model for Internet Data, polynomial of degree up to 10 19
Background On Filters (Appendix B) • We need to understand how to use discrete filters. • Example: write the Matlab command for 24
A simple filter • Q: compute X back from Y 26
How is this prediction done ? • This is all very intuitive 34
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
Compare the Two Linear Regression with 3 parameters + variance Assuming differenced data is iid 40
5. Using ARMA Models • When the differenced data appears stationary but not iid 42
ARMA Process 45