1,738 research outputs found

    A Type System for First-Class Layers with Inheritance, Subtyping, and Swapping

    Get PDF
    Context-Oriented Programming (COP) is a programming paradigm to encourage modularization of context-dependent software. Key features of COP are layers---modules to describe context-dependent behavioral variations of a software system---and their dynamic activation, which can modify the behavior of multiple objects that have already been instantiated. Typechecking programs written in a COP language is difficult because the activation of a layer can even change objects' interfaces. Inoue et al. have informally discussed how to make JCop, an extension of Java for COP by Appeltauer et al., type-safe. In this article, we formalize a small COP language called ContextFJ<:_{<:} with its operational semantics and type system and show its type soundness. The language models main features of the type-safe version of JCop, including dynamically activated first-class layers, inheritance of layer definitions, layer subtyping, and layer swapping

    Bagging Time Series Models

    Get PDF
    A common problem in out-of-sample prediction is that there are potentially many relevant predictors that individually have only weak explanatory power. We propose bootstrap aggregation of pre-test predictors (or bagging for short) as a means of constructing forecasts from multiple regression models with local-to-zero regression parameters and errors subject to possible serial correlation or conditional heteroskedasticity. Bagging is designed for situations in which the number of predictors (M) is moderately large relative to the sample size (T). We show how to implement bagging in the dynamic multiple regression model and provide asymptotic justification for the bagging predictor. A simulation study shows that bagging tends to produce large reductions in the out-of-sample prediction mean squared error and provides a useful alternative to forecasting from factor models when M is large, but much smaller than T. We also find that bagging indicators of real economic activity greatly redcues the prediction mean squared error of forecasts of U.S. CPI inflation at horizons of one month and one yearforecasting; bootstrap; model selection; pre-testing; forecast aggregation; factor models; inflation.

    A Portmanteau Test for Serially Correlated Errors in Fixed Effects Models

    Get PDF
    We propose a portmanteau test for serial correlation of the error term in a fixed effects model. The test is derived as a conditional Lagrange multiplier test, but it also has a straightforward Wald test interpretation. In Monte Carlo experiments, the test displays good size and power properties.

    Out-of-sample forecast tests robust to the choice of window size

    Get PDF
    This paper proposes new methodologies for evaluating out-of-sample forecasting performance that are robust to the choice of the estimation window size. The methodologies involve evaluating the predictive ability of forecasting models over a wide range of window sizes. The authors show that the tests proposed in the literature may lack the power to detect predictive ability and might be subject to data snooping across different window sizes if used repeatedly. An empirical application shows the usefulness of the methodologies for evaluating exchange rate models' forecasting ability.Forecasting

    Which Structural Parameters Are "Structural"? Identifying the Sources of Instabilities in Economic Models

    Get PDF
    The objective of this paper is to identify which parameters of a model are stable over time. Existing procedures can only be used to test whether a given subset of parameters is stable, and cannot be used to find which subset of parameters is stable. We propose a new procedure that is informative on the nature of instabilities affecting economic models, and sheds light on the economic interpretation and causes of such instabilities. Furthermore, our procedure provides clear guidelines on which parts of the model are reliable for policy analysis and which are possibly mis-specified. Our empirical findings suggest that instabilities during the Great Moderation were mainly concentrated in Euler and IS equations as well as in monetary policy. Such results offer important insights to guide the future theoretical development of macroeconomic models.Instability, Model Evaluation, Great Moderation

    Bootstrapping Autoregressive Processes with Possible Unit Roots

    Get PDF
    An important question in applied work is how to bootstrap autoregressive processes involving highly persistent time series of unknown order of integration. In this paper, we show that in many cases of interest in applied work the standard bootstrap algorithm for unrestricted autoregressions remains valid for processes with exact unit roots; no pre-tests are required, at least asymptotically, and applied researchers may proceed as in the stationary case. Specifically, we prove the first-order asymptotic validity of bootstrapping any linear combination of the slope parameters in autoregressive models with drift. We also establish the bootstrap validity for the marginal distribution of slope parameters and for most linear combinations of slope parameters in higher-order autoregressions without drift. The latter result is in sharp contrast to the well-known bootstrap invalidity result for the random walk without drift. A simulation study examines the finite-sample accuracy of the bootstrap approximation both for integrated and for near-integrated processes. We find that in many, but not all circumstances, the bootstrap distribution closely approximates the exact finite- sample distribution.

    Two-Sample Instrumental Variables Estimators

    Get PDF
    Following an influential article by Angrist and Krueger (1992) on two-sample instrumental variables (TSIV) estimation, numerous empirical researchers have applied a computationally convenient two-sample two-stage least squares (TS2SLS) variant of Angrist and Krueger's estimator. In the two-sample context, unlike the single-sample situation, the IV and 2SLS estimators are numerically distinct. Our comparison of the properties of the two estimators demonstrates that the commonly used TS2SLS estimator is more asymptotically efficient than the TSIV estimator and also is more robust to a practically relevant type of sample stratification.

    Recursive Predictability Tests for Real-Time Data

    Get PDF
    We propose a sequential test for predictive ability. The test is designed for recursive regressions in which the researcher is interested in recursively assessing whether some economic variables have predictive or explanatory content for another variable. It is common in the forecasting literature to assess predictive ability by using "one-shot" tests at each estimation period. We show that this practice: (i) leads to size distortions; (ii) selects overfitted models and provides spurious evidence of in-sample predictive ability; (iii) may lower the accuracy of the model selected by the test. The usefulness of the proposed test is shown in well-know empirical applications to the real-time predictive content of money for output, and the selection between linear and non-linear models.
    • 

    corecore