




























































































Estude fácil! Tem muito documento disponível na Docsity
Ganhe pontos ajudando outros esrudantes ou compre um plano Premium
Esta página não é visível na pré-visualização
Não perca as partes importantes!





























































































3 Great Clarendon Street, Oxford ox2 6 DP Oxford University Press is a department of the University of Oxford. It furthers the University’s objective of excellence in research, scholarship, and education by publishing worldwide in Oxford New York Auckland Cape Town Dar es Salaam Hong Kong Karachi Kuala Lumpur Madrid Melbourne Mexico City Nairobi New Delhi Shanghai Taipei Toronto With offices in Argentina Austria Brazil Chile Czech Republic France Greece Guatemala Hungary Italy Japan Poland Portugal Singapore South Korea Switzerland Thailand Turkey Ukraine Vietnam Oxford is a registered trademark of Oxford University Press in the UK and in certain other countries Published in the United States by Oxford University Press Inc., New York © Jacques J.F. Commandeur and Siem Jan Koopman 2007 The moral rights of the authors have been asserted Database right Oxford University Press (maker) First published 2007 All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, without the prior permission in writing of Oxford University Press, or as expressly permitted by law, or under terms agreed with the appropriate reprographics rights organization. Enquiries concerning reproduction outside the scope of the above should be sent to the Rights Department, Oxford University Press, at the address above You must not circulate this book in any other binding or cover and you must impose the same condition on any acquirer British Library Cataloguing in Publication Data Data available Library of Congress Cataloging in Publication Data Data available Typeset by SPI Publisher Services, Pondicherry, India Printed in Great Britain on acid-free paper by Biddles Ltd., King’s Lynn, Norfolk
ISBN 978–0–19–922887–
1 3 5 7 9 10 8 6 4 2
Preface
methods was instrumental in stimulating JJFC to write this book. He was always willing to answer any questions JJFC had, and is a genius in exploiting the enormous flexibility that state space methods have to offer. The authors are grateful to a referee for his positive remarks on an earlier draft of the book. His many constructive comments have improved the book considerably. Any mistakes and omissions remain the sole responsi- bility of the authors. JJFC also wishes to thank members (some of them, former members) of the International Co-operation on Time Series Analysis (ICTSA): Peter Christens, Ruth Bergel, Joanna Zukowska, Filip Van den Bossche, Geert Wets, Stefan Hoeglinger, Ward Vanlaar, Phillip Gould, Max Cameron, and Stewart Newstead, for their inspiring contributions to our in-depth discussions on time series analysis, and for their encouraging response to earlier drafts of the book. SJK would like to thank his colleagues at the Department of Economet- rics, Vrije Universiteit Amsterdam, for giving him the opportunity to work on this book. The book was written in LATEX using the MiKTeX system (http://www.miktex.org). We thank Frits Bijleveld for his assistance in setting up the LATEX system. The Ox and SsfPack code for carrying out the analyses discussed in the book, as well as the data files, can be downloaded from http://staff.feweb.vu.nl/koopman and from http://www.ssfpack.com.
vi
List of Figures x
Contents
APPENDIX B. Road traffic fatalities in Norway and Finland 164 APPENDIX C. UK front and rear seat passengers KSI 165 APPENDIX D. UK price changes 167
Bibliography 171 Index 173
ix
List of Figures
8.3. Deterministic seasonal and its 90% confidence interval for stochastic level and deterministic seasonal model applied to the log of UK drivers KSI. 83 8.4. Stochastic level plus deterministic seasonal and its 90% confidence interval for stochastic level and deterministic seasonal model applied to the log of UK drivers KSI. 84 8.5. Smoothed and filtered state of the local level model applied to Norwegian road traffic fatalities. 86 8.6. Illustration of computation of the filtered state for the local level model applied to Norwegian road traffic fatalities. 86 8.7. One-step ahead prediction errors (top) and their variances (bottom) for the local level model applied to Norwegian road traffic fatalities. 88 8.8. Standardised one-step prediction errors of model in Section 7.3. 91 8.9. Correlogram of standardised one-step prediction errors in Figure 8.8, first 10 lags. 92 8.10. Histogram of standardised one-step prediction errors in Figure 8.8. 94 8.11. Standardised smoothed level disturbances (top) and standardised smoothed observation disturbances (bottom) for analysis of UK drivers KSI in Section 4.3. 95 8.12. Standardised smoothed level disturbances (top) and standardised smoothed observation disturbances (bottom) for analysis of UK drivers KSI in Section 7.3. 97 8.13. Filtered level, and five year forecasts for Norwegian fatalities, including their 90% confidence interval. 98 8.14. Filtered trend, and five-year forecasts for Finnish fatalities, including their 90% confidence limits. 99 8.15. Forecasts for t = 170,... , 192 including their 90% confidence interval. 102 8.16. Last four years (1981–1984) in the time series of the log of numbers of drivers KSI: observed series, forecasts obtained from the analysis up to February 1983, and modelled development for the complete series including an intervention variable for February 1983. 102 8.17. Stochastic level estimation error variance for log drivers KSI with observations at t = 48,... , 62 and t = 120,... , 140 treated as missing. 103
xii
List of Figures
8.18. Stochastic level and its 90% confidence interval for log drivers KSI with observations at t = 48,... , 62 and t = 120,... , 140 treated as missing. 104 8.19. Seasonal estimation error variance for log drivers KSI with observations missing at t = 48,... , 62 and t = 120,... , 140. 104 8.20. Deterministic seasonal and its 90% confidence interval for t = 25,... , 72. 105 8.21. Irregular component. 105 9.1. Log of monthly numbers of front seat passengers (top) and rear seat passengers (bottom) killed or seriously injured in the UK in the period 1969–1984. 114 9.2. Level disturbances for rear seat (horizontal) versus front seat KSI (vertical) in a seemingly unrelated model. 115 9.3. Levels of treatment and control series in the seemingly unrelated model. 116 9.4. Level of treatment against level of control series in the seemingly unrelated model. 116 9.5. Level disturbances for rear (horizontal) against front seat KSI (vertical), rank one model. 118 9.6. Level of treatment against level of control series in rank one model. 118 9.7. Levels of treatment and control series, rank one model. 119 9.8. Level of treatment series plus intervention, and level of control series, rank one model. 119 9.9. Deterministic seasonal of treatment and control series, rank one model. 120 10.1. Realisation of a random process. 124 10.2. Correlogram for lags 1 to 12 of data in Figure 10.1. 124 10.3. Example of a random walk with Ï 1 = 0. 125 10.4. Correlogram for lags 1 to 12 of the data in Figure 10.3. 126 10.5. Realisation of a MA(1) process with ‚ 0 = 1 and ‚ 1 = 0.5. 127 10.6. Correlogram for lags 1 to 12 of data in Figure 10.5. 127 10.7. Realisation of an AR(1) process with · 1 = 0.5. 128 10.8. Correlogram for lags 1 to 12 of time series in Figure 10.7. 129 10.9. Realisation of an ARMA(1, 1) process with · 1 = ‚ 1 = 0.5. 130
10.10. Correlogram for lags 1 to 12 of data in Figure 10.9. 130
xiii
1
Introduction
This book introduces time series analysis using state space methodology to readers who are neither familiar with time series analysis nor with state space methods. The only background required in order to understand the material in this book is a basic knowledge of classical linear regression models, of which a condensed review is provided first. A few sections also assume familiarity with matrix algebra. These starred sections may however be skipped without losing the flow of the exposition. In classical regression analysis a linear relationship is assumed between a criterion or dependent or endogenous variable y , and a predictor or independent or exogenous variable x. Deviations from this relationship are assumed to come from a random process (see Chapter 10 for the defin- ition of a random process) centred at zero. The standard regression model for n observations of y (denoted by yi for i = 1,... , n ) and x (denoted by xi for i = 1,... , n ) is formally written as
yi = a + b xi + ε i , ε i ∼ NID(0, Û^2 ε ) (1.1)
for i = 1,... , n. The statement
ε i ∼ NID(0, Û^2 ε ) (1.2)
in (1.1) is shorthand notation for the assumption that the disturbances or errors or residuals ε i are normally and independently distributed with mean equal to zero and variance equal to Û^2 ε. The regression model (1.1) has three unknown coefficients that can be estimated by least squares methods. In particular, the least squares estimates of a and b , denoted by ˆ a and ˆ b , respectively, are calculated by
ˆ b =
∑^ n
i =
( xi − ¯ x ) yi /
∑^ n
i =
( xi − ¯ x )^2 , ˆ a = ¯ y − ˆ b ¯ x ,
Introduction
where ¯ y and ¯ x are the sample means of yi and xi , respectively, for i = 1 ,... , n. The least squares estimate of the disturbance variance Û^2 ε , denoted by ˆÛ^2 ε , is calculated by
ˆÛ^2 ε =
∑^ n
i =
( yi − ˆ a − bx ˆ i )^2 / ( n − 2).
More detailed discussions on least squares methods can be found in many textbooks on statistics and econometrics. Suppose that the dependent variable yi in (1.1) refers to the log of the monthly number of drivers killed or seriously injured (KSI) in the United Kingdom (UK) for the period January 1969 to December 1984. Since the period spans 16 years, we have n = 16 × 12 = 192 observations and yi is observed for i = 1,... , 192. This set of observations for yi can be referred to as a time series because it consists of repeated measurements in time of the same phenomenon. Further, suppose that the independent variable xi in (1.1) is the index of time points in the series, that is xi = i = 1, 2 ,... , 192. A scatter plot of variable y on x together with the best fitting line according to classical linear regression are presented in Figure 1.1. The
0 20 40 60 80 100 120 140 160 180
log UK drivers KSI against time (in months) regression line
Figure 1.1. Scatter plot of the log of the number of UK drivers KSI against time (in months), including regression line.
Introduction
0 20 40 60 80 100 120 140 160 180
log UK drivers KSI
Figure 1.2. Log of the number of UK drivers KSI plotted as a time series.
−0.
−0.
−0.
0.4 (^) residuals
Figure 1.3. Residuals of classical linear regression of the log of the number of UK drivers KSI on time.
Introduction
Table 1.1. Shifting of residuals for computation of autocorrelations.
k = 0 1 2 3 i ˆÂ i ˆÂ i − k ˆÂ i − k ˆÂ i − k
1 0.2 — — — 2 −0.4 0.2 — — 3 0.0 −0.4 0.2 — 4 0.3 0.0 −0.4 0. 5 −0.2 0.3 0.0 −0. 6 0.1 −0.2 0.3 0.
correlations are computed between a variable and itself (albeit shifted in time), they are called autocorrelations. The correlogram of an independently distributed series of residuals is expected to consist of zeroes. In this case, the correlogram typically takes on the form shown in Figure 1.4. The two horizontal lines in the correlogram are the 95% confidence limits ± 2 /√ n = ± 2 /
If residuals are randomly distributed then they are independent of one another. In the correlogram, the independence between random normally distributed residuals is reflected in the fact that all autocorrelations (of
0 5 10 15
−0.
−0.
−0.
ACF−random residuals
Figure 1.4. Correlogram of random time series.