Preview

MFE Toolbox Documentation

Powerful Essays
Open Document
Open Document
28829 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
MFE Toolbox Documentation
MFE MATLAB Function Reference
Financial Econometrics
Kevin Sheppard
October 30, 2009

2

c

2001-2009 Kevin Sheppard

Contents

Notes

v

1

Included but not documented functions

1

2

Cross Sectional Analysis

5

2.1

Regression . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5

2.1.1
3

Regression: ols

Stationary Time Series
3.1

ARMA Simulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

9

Simulation: armaxfilter_simulate . . . . . . . . . . . . . . . . . . . . . . . . . . .

9

ARMA Estimation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

13

3.2.1

Estimation: armaxfilter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

13

3.2.2

Heterogeneous Autoregression: heterogeneousar . . . . . . . . . . . . . . . . . . . .

19

3.2.3

Residual Plotting: tsresidualplot . . . . . . . . . . . . . . . . . . . . . . . . . . . .

23

3.2.4

Characteristic Roots: armaroots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

26

3.2.5

Information Criteria: aicsbic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

29

ARMA Forecasting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

31

Forecasting: arma_forecaster . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

31

Sample autocorrelation and partial autocorrelation . . . . . . . . . . . . . . . . . . . . . . . . . .

33

3.4.1

Sample Autocorrelations: sacf . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

33

3.4.2

Sample Partial Autocorrelations: spacf . . . . . . . . . . . . . . . . . . . . . . . . . . .

35

Theoretical autocorrelation and partial autocorrelation . . . . . . . . . . . . . . . . . . . . . . . .

37

3.5.1

ARMA Autocorrelations: acf . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .



Bibliography: Baxter, M. & King, R. G. (1999), ‘Measuring Business Cycles: Approximate Band-Pass Filters For Economic Time Series’, The Review of Economics and Statistics 81(4), 575–593 Berkowitz, J. (2001), ‘Testing density forecasts, with applications to risk management’, Journal of Business and Economic Statistics 19, 465–474 Hansen, P. R. (2005), ‘A Test for Superior Predictive Ability’, Journal of Business and Economic Statistics 23(4), 365–380 Hansen, P. R., Lunde, A. & Nason, J. M. (2005), Model confidence sets for forecasting models. Federal Reserve Bank of Atlanta Working Paper 2005-7 Hodrick, R. J. & Prescott, E. C. (1997), ‘Postwar U.S. Business Cycles: An Empirical Investigation’, Journal of Money, Credit and Banking 29(1), 1–16 White, H. (2000), ‘A Reality Check for Data Snooping’, Econometrica 68(5), 1097–1126. 116 Index

You May Also Find These Documents Helpful

  • Satisfactory Essays

    ‎Sub-figures (a) and (b) in Figure \ref{redfig1} show the plot of the proposed control chart based on these 30 samples‎. ‎\\‎…

    • 358 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    | 19 | | Output - Forecast | 0 | 4 | –4 | 0 | 0 | 3 | –3 | | | Inventory | | | | | | | | | | Beginning | 0 | 0…

    • 972 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    2176951 EstimateDetail

    • 387 Words
    • 7 Pages

    the estimate based on the information collected. Please let me know if any changes occur that could impact the estimate…

    • 387 Words
    • 7 Pages
    Satisfactory Essays
  • Satisfactory Essays

    BUSI 405 Research Paper

    • 404 Words
    • 2 Pages

    The best model should be the one with the smallest error. Among these three time-series models, the decomposition with exponential smoothing trend has the smallest MAPE and RMSE for both historical period and holdout period. Therefore, we use this model and the data from January 2001 to October 2011 to perform the ex-ante point and interval forecasts for the next 14 months as shown in table 2 and figure 4.…

    • 404 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Stat 231 Course Notes

    • 7029 Words
    • 29 Pages

    Probability Theory Statistical Models 4.1 4.2 Generalities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Types of Models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .…

    • 7029 Words
    • 29 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Week 6 Lab

    • 313 Words
    • 2 Pages

    * Use <Alt><PrtSc> to capture a copy of the Simulation Execution dialog shown below and paste it into your lab document.…

    • 313 Words
    • 2 Pages
    Satisfactory Essays
  • Better Essays

    Demand Estimation

    • 927 Words
    • 4 Pages

    According to our Textbooks and given information, When P = 8000, A = 64, PX = 9000, I = 5000, we can use regression equation,…

    • 927 Words
    • 4 Pages
    Better Essays
  • Satisfactory Essays

    My Solar System

    • 1668 Words
    • 5 Pages

    Activity 1: Look over the start screen. The simulations controls and settings are on the right and simulation inputs are at the bottom. Click on Start to see the outputs in the center and lower right. The paths of the objects in the simulation are displayed along with elapsed time. Click Stop and move the cursor over each object. Its current position and velocity are displayed under the time. Click Start again and write down at least 2 observations about this simulation below.…

    • 1668 Words
    • 5 Pages
    Satisfactory Essays
  • Powerful Essays

    6. Determine the best-fit straight line as a method to examine linear relationships and to use this relationship as a…

    • 14806 Words
    • 86 Pages
    Powerful Essays
  • Satisfactory Essays

    Sas Lecture

    • 676 Words
    • 3 Pages

    First, we will obtain the residuals of the model and obtain graphs that can provide informal evidence of serial correlation in the model. A possible graph is one of the residuals plotted against time. Another possibility is a graph of the residuals plotted against the one-period lagged residuals. Any obvious patterns in these graphs could provide informal evidence of serial correlation in the underlying data. We will also perform the Durbin Watson test, the Breusch-Godfrey serial correlation LM test, and some other techniques to look for formal evidence of serial correlation in the model.…

    • 676 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    tsa solution manual

    • 55080 Words
    • 1025 Pages

    Exercise 1.1 Use software to produce the time series plot shown in Exhibit (1.2), page 2. The following R code will…

    • 55080 Words
    • 1025 Pages
    Good Essays
  • Powerful Essays

    Autocorrelation: ..................................................................................................... 13 Normality: .............................................................................................................. 16 Coefficient stability: ............................................................................................... 17 Multicollinearity: ....................................................................................................…

    • 5976 Words
    • 24 Pages
    Powerful Essays
  • Powerful Essays

    Variables identification .......................................................................................................................... 3 Scatter Plots .......................................................................................................................................... 4 Correlation ............................................................................................................................................. 4 Regression ............................................................................................................................................ 4 Answers to Questions ................................................................................................ 6…

    • 1919 Words
    • 8 Pages
    Powerful Essays
  • Powerful Essays

    Lecture 9 Autocorrelation

    • 1312 Words
    • 14 Pages

    • True model, however, is MC = α + β1 output + β2 output2 +v…

    • 1312 Words
    • 14 Pages
    Powerful Essays
  • Powerful Essays

    Ba3(Moody's)BB-(S&P)91-days182-days364-daysT-Bills5-year10-year15-year20-yearT-BondsriskfreelinearBa3 interpolation method Bootstrapping yieldcurves risk free Duration Convexit subordinated25%convertib7yrbondBBracbank limited scatter plotserialcorr correlationmulticollinearyBa3(Moody's)BB-(S&P)91-days182-days364-days T-Bills5-year10-year15-year20-yearT-BondsriskfreelinearBa3 interpolation method Bootstrapping yieldcurves risk freeDurationConvexitysubordinated25%convertib7yrbondBBracbanklimitedscatterplotriskfreeBootstrappingmultipecorrelationmulticollineary serialcr correlation and multicollineary serial correlation and multicollineary…

    • 1575 Words
    • 7 Pages
    Powerful Essays