
- •Table of Contents
- •Foreword
- •Chapter 1. A Quick Walk Through
- •Workfile: The Basic EViews Document
- •Viewing an individual series
- •Looking at different samples
- •Generating a new series
- •Looking at a pair of series together
- •Estimating your first regression in EViews
- •Saving your work
- •Forecasting
- •What’s Ahead
- •Chapter 2. EViews—Meet Data
- •The Structure of Data and the Structure of a Workfile
- •Creating a New Workfile
- •Deconstructing the Workfile
- •Time to Type
- •Identity Noncrisis
- •Dated Series
- •The Import Business
- •Adding Data To An Existing Workfile—Or, Being Rectangular Doesn’t Mean Being Inflexible
- •Among the Missing
- •Quick Review
- •Appendix: Having A Good Time With Your Date
- •Chapter 3. Getting the Most from Least Squares
- •A First Regression
- •The Really Important Regression Results
- •The Pretty Important (But Not So Important As the Last Section’s) Regression Results
- •A Multiple Regression Is Simple Too
- •Hypothesis Testing
- •Representing
- •What’s Left After You’ve Gotten the Most Out of Least Squares
- •Quick Review
- •Chapter 4. Data—The Transformational Experience
- •Your Basic Elementary Algebra
- •Simple Sample Says
- •Data Types Plain and Fancy
- •Numbers and Letters
- •Can We Have A Date?
- •What Are Your Values?
- •Relative Exotica
- •Quick Review
- •Chapter 5. Picture This!
- •A Simple Soup-To-Nuts Graphing Example
- •A Graphic Description of the Creative Process
- •Picture One Series
- •Group Graphics
- •Let’s Look At This From Another Angle
- •To Summarize
- •Categorical Graphs
- •Togetherness of the Second Sort
- •Quick Review and Look Ahead
- •Chapter 6. Intimacy With Graphic Objects
- •To Freeze Or Not To Freeze Redux
- •A Touch of Text
- •Shady Areas and No-Worry Lines
- •Templates for Success
- •Point Me The Way
- •Your Data Another Sorta Way
- •Give A Graph A Fair Break
- •Options, Options, Options
- •Quick Review?
- •Chapter 7. Look At Your Data
- •Sorting Things Out
- •Describing Series—Just The Facts Please
- •Describing Series—Picturing the Distribution
- •Tests On Series
- •Describing Groups—Just the Facts—Putting It Together
- •Chapter 8. Forecasting
- •Just Push the Forecast Button
- •Theory of Forecasting
- •Dynamic Versus Static Forecasting
- •Sample Forecast Samples
- •Facing the Unknown
- •Forecast Evaluation
- •Forecasting Beneath the Surface
- •Quick Review—Forecasting
- •Chapter 9. Page After Page After Page
- •Pages Are Easy To Reach
- •Creating New Pages
- •Renaming, Deleting, and Saving Pages
- •Multi-Page Workfiles—The Most Basic Motivation
- •Multiple Frequencies—Multiple Pages
- •Links—The Live Connection
- •Unlinking
- •Have A Match?
- •Matching When The Identifiers Are Really Different
- •Contracted Data
- •Expanded Data
- •Having Contractions
- •Two Hints and A GotchYa
- •Quick Review
- •Chapter 10. Prelude to Panel and Pool
- •Pooled or Paneled Population
- •Nuances
- •So What Are the Benefits of Using Pools and Panels?
- •Quick (P)review
- •Chapter 11. Panel—What’s My Line?
- •What’s So Nifty About Panel Data?
- •Setting Up Panel Data
- •Panel Estimation
- •Pretty Panel Pictures
- •More Panel Estimation Techniques
- •One Dimensional Two-Dimensional Panels
- •Fixed Effects With and Without the Social Contrivance of Panel Structure
- •Quick Review—Panel
- •Chapter 12. Everyone Into the Pool
- •Getting Your Feet Wet
- •Playing in the Pool—Data
- •Getting Out of the Pool
- •More Pool Estimation
- •Getting Data In and Out of the Pool
- •Quick Review—Pools
- •Chapter 13. Serial Correlation—Friend or Foe?
- •Visual Checks
- •Testing for Serial Correlation
- •More General Patterns of Serial Correlation
- •Correcting for Serial Correlation
- •Forecasting
- •ARMA and ARIMA Models
- •Quick Review
- •Chapter 14. A Taste of Advanced Estimation
- •Weighted Least Squares
- •Heteroskedasticity
- •Nonlinear Least Squares
- •Generalized Method of Moments
- •Limited Dependent Variables
- •ARCH, etc.
- •Maximum Likelihood—Rolling Your Own
- •System Estimation
- •Vector Autoregressions—VAR
- •Quick Review?
- •Chapter 15. Super Models
- •Your First Homework—Bam, Taken Up A Notch!
- •Looking At Model Solutions
- •More Model Information
- •Your Second Homework
- •Simulating VARs
- •Rich Super Models
- •Quick Review
- •Chapter 16. Get With the Program
- •I Want To Do It Over and Over Again
- •You Want To Have An Argument
- •Program Variables
- •Loopy
- •Other Program Controls
- •A Rolling Example
- •Quick Review
- •Appendix: Sample Programs
- •Chapter 17. Odds and Ends
- •How Much Data Can EViews Handle?
- •How Long Does It Take To Compute An Estimate?
- •Freeze!
- •A Comment On Tables
- •Saving Tables and Almost Tables
- •Saving Graphs and Almost Graphs
- •Unsubtle Redirection
- •Objects and Commands
- •Workfile Backups
- •Updates—A Small Thing
- •Updates—A Big Thing
- •Ready To Take A Break?
- •Help!
- •Odd Ending
- •Chapter 18. Optional Ending
- •Required Options
- •Option-al Recommendations
- •More Detailed Options
- •Window Behavior
- •Font Options
- •Frequency Conversion
- •Alpha Truncation
- •Spreadsheet Defaults
- •Workfile Storage Defaults
- •Estimation Defaults
- •File Locations
- •Graphics Defaults
- •Quick Review
- •Index
- •Symbols

Forecasting—327
0.9eT, 0.81eT, 0.729eT… in the first three forecasting periods. As you can see, the ARMA effect gradually declines to zero.
You can see that two elements determine the contribution of ARMA errors to the forecast: the value of the last residual and how quickly the weights decline. The value of the last residual depends on the starting date for the forecast, but the weights can be plotted using ARMA Structure…/Impulse Response.
The weights are multiplied either by the standard error of the regression, if you choose
One standard deviation, or by a value of your own choosing. Here’s the plot for our AR(1) model set to User specified:
1.0. Even after two years, 28 percent of the final residual will remain in the forecast.
Forecasting
When we discussed forecasting in Chapter 8, “Forecasting,” we put off the discussion of forecasting with ARMA errors—because we hadn’t yet discussed ARMA errors. Now we have! The intuition about forecasting with ARMA errors is straightforward. Since errors persist in part from one period to the next, forecasts of the left-hand side variable can be improved by including a forecast of the error term.
EViews makes it very easy to include the contribution of ARMA errors in

328—Chapter 13. Serial Correlation—Friend or Foe?
forecasts. Once you push the button all you have to do is not do anything—in other words, the default procedure is to include ARMA errors in the forecast. Just don’t check the
Structural (ignore ARMA) checkbox.
Static Versus Dynamic Forecasting With ARMA errors
When you include ARMA errors in your forecast, you still need to decide between “static” and “dynamic” forecasting. The difference is best illustrated with an example. We have data on NYSE volume through the first quarter of 2004. Let’s forecast volume for the last eight quarters of our sample, based on the model including an AR(1) error. Since we know what actually happened in that period, we can compare our forecast with reality to see how well we’ve done.
Nomenclature hint: This is sometimes called in-sample forecasting, see Chapter 8, “Forecasting.”
The first quarter of our forecast period is 2002q2. First, EViews will multiply the right hand
side variables for 2002q2 by their respective estimated coefficients. Then EViews adds in the contribution of the AR(1) term: 0.8365 times the residual from 2002q1 (the final period
before the forecast began).
The second period of our forecast is 2002q3. Now EViews will multiply the right hand side
variables for 2002q3 by their respective estimated coefficients. Then there’s a choice: should we add in 0.8365 times the residual from 2002q2, or should we use times the
residual from 2002q1? The former is called a static forecast and the latter a dynamic forecast. The static forecast uses all information in our data set, while the dynamic forecast uses only information through the start of the estimation sample. The static forecast uses the best available information, so it’s likely to be more accurate. On the other hand, if we were truly forecasting into an unknown future, dynamic forecasting would be the only option. Static forecasting requires calculation of residuals during the forecast period. If you don’t know the true values of the left-hand side variable, you can’t do that. Therefore dynamic forecasting is generally a better test of how well multi-period forecasts would work when forecasting for real.

ARMA and ARIMA Models—329
Using our AR(1) model, we’ve constructed three forecasts: dynamic, static, and structural (ignore ARMA), this last forecast leaving out the contribution of the ARMA terms entirely. The static and dynamic forecasts are identical for the first period; they’re supposed to be, of course. In general, the static forecast tracks the actual data best, followed by the dynamic forecast, with the structural forecast coming in last.
ARMA and ARIMA Models
The basic approach of regression analysis is to model the dependent variable as a function of the independent variables. The addition of ARMA errors augments the regression model with additional information about the persistence of errors over time. A widely used alterna- tive—variously called Time Series Analysis or Box-Jenkens analysis, or ARMA or ARIMA modeling—directly models the persistence of the dependent variable. Estimation of ARMA or ARIMA models in EViews is very easy. We begin with a short digression into the “unit root problem” and then work through a pure time series model of NYSE volume.
Who Put the I in ARIMA?
Series that explode over time can be statistically problematic. Most of statistical theory requires that time series be stationary (non-explosive), as opposed to nonstationary
(explosive). This is an oversimplification of some fairly complex issues. But looking at a graph of LOGVOL, it’s clear that volume has exploded over time. This suggests—but doesn’t prove—that a time series model of the level of LOGVOL might be dicey. A
standard solution to this problem is to build a model of the first difference of the variable

330—Chapter 13. Serial Correlation—Friend or Foe?
instead of modeling the level directly. Given such a differenced model, we then need to “integrate” the first differences to recover the levels. So an ARMA model of the first difference is an AR-Integrated-MA, or ARIMA, model of the level.
Hint: If you know dy1 ≡ y1 – y0 , dy2 ≡ y2 – y1 , etc., then you can find y1 by adding dy1 to y0 . You can find y2 by adding dy2 and dy1 to y0 , and so forth. Adding up the first differences is the source of the term “integrated.”
Unit Root Tests
A series that’s stationary in first differences is said to possess a unit root. EViews provides a battery of unit root tests from the View/Unit Root Test… menu. For our purposes, the default test suffices. (The User’s Guide has an extended discussion of both EViews options and of the different tests available.)
For this test, the null hypothesis is that there is a unit root. An excerpt of our test results are shown to the right. Because the hypothesis of a unit root is not rejected, we’ll build a model of first differences.
Hint: The first difference of LOGVOL can be written in two ways: D(LOGVOL) or LOGVOL-LOGVOL(-1). The two are equivalent.

ARMA and ARIMA Models—331
Hint: Once in a great while, it’s necessary to difference the first difference in order to get a stationary time series. If it’s necessary to difference the data d times to achieve stationarity, then the original series is said to be “integrated of order d,” or to be an I(d) series. The complete specification of the order of an ARIMA model is ARIMA(p, d, q), where a plain old ARMA model is the special case ARIMA(p, 0, q).
By the way, the d() function generalizes in EViews so that d(y,d) is the dth difference of Y.
ARIMA Estimation
Here’s a plot of D(LOGVOL). No more exploding.
Building an ARIMA model of LOGVOL boils down to building an ARMA model of D(LOGVOL). It’s traditional to treat the dependent variable in an ARMA model as having mean zero. One way to do this is to use the expression “D(LOGVOL)-@MEAN(D(LOGV OL))” as the dependent variable, but it’s just as easy to include a constant in the estimate.
So with that build up, here’s
how to estimate an ARIMA(1,1,1) model in EViews:
ls d(logvol) c ar(1) ma(1)

332—Chapter 13. Serial Correlation—Friend or Foe?
That wasn’t very hard. The results are shown to the right. Both ARMA coefficients are off-the-scale significant. The R2 isn’t very high, but remember that we’re explaining changes—not levels—of volume.
To estimate higher order ARIMA models, just include more AR and MA terms in the command line.
ARIMA Forecasting
Forecasting from an ARIMA model pretty much consists of pushing the button and then setting the options in the Forecast dialog as you would for any other equation. You’ll notice one new twist: The dependent variable is D(LOGVOL), but EViews defaults to forecasting the level variable, LOGVOL.