Point-and-click your way to easy forecasts using SAS/ETS Group Presentations/TASS... ·...

Post on 22-May-2020

6 views 0 download

transcript

Point-and-click your way to easy forecasts using SAS/ETS

Presented by c. battiston

December 9, 2016

Toronto area sas society

A really, really, ridiculously short introduction to Time Series Analysis

• According to Wikipedia:

• Time series is a series of data points indexed (or listed or graphed) in time order. Most commonly, a time series is a sequence taken at successive equally spaced points in time.

• Time series analysis comprises methods for analyzing time series data in order to extract meaningful statistics and other characteristics of the data

• Time series forecasting is the use of a model to predict future values based on previously observed values.

Features of the Time Series Forecasting System• Very briefly the Time Series Forecasting System provides the following:

• A wide variety of forecasting methods, including several kinds of exponential smoothing models, Winters method, and ARIMA models.

• Use predictor variables in forecasting models (including time trend curves, regressors, dummy variables, and adjustments you specify)

• View plots of the data, predicted versus actual values, prediction errors, and forecasts with confidence limits (all plots can be zoomed in on)

• Use hold out samples to select the best forecasting method

• Compare goodness of fit measures for any two forecasting methods side by side or list all models sorted by a particular fit statistic

• View the predictions and errors for each model in a spreadsheet or compare the fit of any two models in a spreadsheet

• Examine the fitted parameters of each forecasting model and their statistical significance

• Control the automatic model selection process

• Customise the system by adding forecasting models for the automatic model selection process and for point and click manual selection

• Save your work in a project catalog

• Print an audit trail of the forecasting process

• Show source statements for PROC ARIMA code

• Save and print system output including spreadsheets and graphs

• `

Some quick definitions….• The SAS Forecasting System can save forecasts in three different formats.

• Simple – The data set contains Time ID variables and the forecast variables, and it contains one observation per time period. Observations for earlier time periods contain actual values copied from the input data set; later observations contain the forecasts

• Interleaved – The data set contains Time ID variables, the variable TYPE, and the forecast variables. There are several observations per time period, with the meaning of each observation identified by the TYPE variable.

• Concatenated – The data set contains the varaiable SERIES, Time ID variables, and the variables ACTUAL, PREDICT, ERROR, UPPER, LOWER and STD. There is one observation per time period per forecast series. The variable SERIES contains the name of the forecast series, and the data set is sorted by SERIES and DATE.

Interleaved Data

Concatenated Data

Forecast to 1995:1

http://www.tradingeconomics.com/united-states/disposable-personal-income

References & (Highly) Recommended Reading

• SAS/ETS User’s Guide (specifically Chapters 54 and 55)

• Practical Time Series Analysis Using SAS by Anders Milhøj

• Longitudinal Data and SAS by Ron Cody

• SAS for Forecasting Time Series by John Brocklebank PhD & David Dickey PhD

• Forecasting Examples for Business and Economics using SAS by SAS Institute

• Elements of Forecasting by Francis Diebold

• Applied Predictive Modelling by Max Kuhn and Kjell Johnson

• Introduction to Time Series Analysis and Forecasting with Applications of SAS and SPSS by Robert Yaffee