Introduction to Time Series Analysis of Macroeconomic- and Financial-Data. Lecture 5: Trends, Model Selection, and Summary

Size: px
Start display at page:

Download "Introduction to Time Series Analysis of Macroeconomic- and Financial-Data. Lecture 5: Trends, Model Selection, and Summary"

Transcription

1 Introduction Introduction to Time Series Analysis of Macroeconomic- and Financial-Data Felix Pretis Programme for Economic Modelling Oxford Martin School, University of Oxford Lecture 5: Trends, Model Selection, and Summary Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

2 Re-Cap So far: Auto-regressive Models Forecasting works well if nothing changes over time...(i.e. world is stationary) But...things change all the time! (think back 10, 20, 100 years) World is non-stationary!...how to model? Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

3 Today AR(1) model has three elements: (1) Where Y t was the last time period. (2) The unexpected event ɛ t. (3) Constant term allowing mean of Y t to be non-zero. Y t = β }{{} 1 + β 2 Y }{{ t 1 } (3) (1) + ɛ t }{{} (2), ɛ t N0, σ 2. (1) Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

4 Do things remain the same, or change through time? We expect Y t to change through time (hence ɛ t ). But we expect it to revert to its equilibrium over time: Equilibrium value = mean value. But what about structural change? Financial crises? Does economic progress mean that equilibria change? Stationarity: Underlying distribution of Y t is time invariant. All aspects of distribution: Mean, variance, skewness, kurtosis. In practice we focus on Mean and variance. Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

5 A Stationary Series Always has the same data generating process: No structural change taking place. Model as: Y t = β 1 + β 2 Y t 1 + ɛ t, iid(0, σ 2 ). (2) Stationarity implies that β 2 < 1: Shocks die away. Stationarity implies that: E(Y t ) = µ y = β 1 1 β 2. (3) Long-run equilibrium that economic variable returns to. Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

6 Stationary Series Forecasts DLCPI US Inflation Without shocks we expect series to settle down to equilibrium. For US inflation that mean is (EY t ) = ˆβ 0 /(1 ˆβ 1 ) = Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

7 Forms of Non-Stationarity Stationary is the exception not the norm! Types of Non-stationarity: like going to zoo to look at non-elephants 1... Many many forms... = Three common forms encountered and tame-able: 1: Linear Trends 2: Structural Breaks (sudden change in parameters) 3: Unit-roots/Stochastic trends (Advanced) 1 with thanks to Anders Rahbek Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

8 1: Linear Trends 750 Wheat Price Index UK Example: Price of Wheat in the UK from Series trending downwards - need to account for trend Can include a linear trend as regressor Y t = β 1 + β 2 t + ɛ t (4) Can treat as normal regressor (standard inference applies) Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

9 Model Fit: Trend vs. Constant Wheat Fitted r:wheat (scaled) Wheat Fitted 2 r:wheat (scaled) Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

10 Spurious Correlation What happens if we use non-stationary trending variables in our regression models? Y t = β 1 + β 2 X t + ɛ t (5) Suppose β 2 = 0 (no relationship between Y t and X t : if: Y t and X t are stationary (stable) no problem if Y t is trending and X t is trending risk of spurious relationship! Find more spurious correlations: Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

11 Spurious Relationship: Example Japanese GDP and Cumulative Rainfall in Fortaleza (NE Brazil) Japan RGDP 6000 Cumulative Rainfall Fortaleza Brazil Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

12 Model RGDP using Rainfall Japan RGDP Model Fit Residuals Model Jap.RDGP t = (4938) (1.45) cumrainfall Brazil t R 2 =0.98, F(1,36) = 2206 [0.000]** Cumulative Rainfall highly significant, explains 98% of variation in Japanese GDP! Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

13 Taming the trend Need to account for the trend - two options: Model the trend: include a trend variable Remove the trend: difference the data, use Y t, X t DJapan GDP DCumulativeRainfall_Brazil Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

14 Option 1: Model the Trend Jap.RGDP = 9467 (8497) + 11 (28.9) cumrainfall Brazil t (4679) Trend t ˆβ 2 = 11 with (se = 28.9) not statistically significant anymore! The estimation sample is: Coefficient Std.Error t-value t-prob Constant cumrainfall_brazil Trend Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

15 Option 2: Remove the Trend by Differencing By taking differences we can remove the trend: Subtract Y t 1 from both sides: Y t = β 1 + β 2 X t + β 3 t + ɛ t (6) Y t Y t 1 = β 1 + β 2 X t + β 3 t + ɛ t Y t 1 This is equal to: Y t = β 1 + β 2 X t + β 3 t + ɛ t (β 1 + β 2 X t 1 + β 3 (t 1) + ɛ t 1 ) and simplifies to: The trend is gone! Y t = β 2 X t + β 3 + ɛ t 1 Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

16 Option 2: Differencing Japanese RGDP and Brazilian Rainfall Japan RGDP 5000 Cumulative Rainfall D Japan RGDP D Cumulative Rainfall Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

17 Option 2: Differencing Model in differences: Jap.RGDP = (2976) (18.3) cumrainfall Brazil t Coefficient Std.Error t-value t-prob Constant DcumRainfall_Brazil D Japan RGDP Fitted No significant relationship! Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

18 Model Building How to build a model: 1 Come up with an interesting question (hard!) 2 Collect the data 3 Plot the data! relationship and functional forms Over time: trending? stable? Scatter plots: relationship? linear? non-linear? Time series properties: PACF 4 Build general model estimate Diagnostic tests satisfied? Can the model explain the data? Yes? Hooray! (very very rare...) No? Modify model and repeat. Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

19 Automatic Model Selection Build general model estimate modify: labour intensive! Automatic Model Selection Start with very general model ( General Unrestricted Model ) Drop variables through path search General to Specific Making sure diagnostic tests satisfied Finds simplest possible econometric model that is well specified Autometrics in OxMetrics Note: Does not replace you: garbage in, garbage out! Reduces hard work selecting correct model. Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

20 Autometrics in Practice 1 Start with general model: All possibly important variables and lags (can fix by setting as U - fixed ). 2 At next menu select Autometrics box; choose p-value. Drops variables until all significant at chosen p α (e.g. 0.05) 3 Click OK and OK and wait for OxMetrics to select final model. Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

21 What does Autometrics do? Tree-Search drop variables and make sure models well specified. Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

22 Autometrics General Model Many lags, many potentially important variables Search Algorithm Estimates many models starting from the general model Tests model diagnostics Tests variables for significance Final Model Smallest, well-specified model Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

23 Automatic Model Selection So far: Japanese Kuznets curve model mis-specified: Coefficient Std.Error t-value t-prob Lco2_pc_ Constant Lrgdp_pc Lrgdp_pc_sq AR 1-2 test: F(2,44) = [0.0310]* ARCH 1-1 test: F(1,48) = [0.3590] Normality test: Chiˆ2(2) = [0.9730] Hetero test: F(5,44) = [0.0762] Hetero-X test: F(8,41) = [0.0128]* RESET23 test: F(2,44) = [0.0050]** How can we fix it? let the data speak: automatic model selection. Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

24 Automatic Model Selection Start with general model for log(co2): log(co2) t 1 (for auto-correlation) log(rgdp) t, log(rgdp) t 1 log(rgdp) 2 t, log(rgdp)2 t 1 log(rgdp) t, log(rgdp) t 1 (economic growth?) General Model: log(co2) t = β 1 + β 2 log(co2) t 1 + β 3 log(gdp) t +β 4 log(gdp) t 1 + β 5 log(gdp) 2 t +β 6 log(gdp) 2 t 1 + β 7 log(gdp) t +β 8 log(gdp) t 1 + ɛ t using Autometrics... Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

25 Automatic Model Selection Autometrics Selection at p = 0.01 (1%): General Model: log(co2) t = β 1 + β 2 log(co2) t 1 + β 3 log(gdp) t +β 4 log(gdp) t 1 + β 5 log(gdp) 2 t +β 6 log(gdp) 2 t 1 + β 7 log(gdp) t +β 8 log(gdp) t 1 + ɛ t Estimated 14 different models until reduced to Specific Model: log(co2) t = β 1 + β 2 log(co2) t 1 + β 7 log(gdp) t + ɛ t What is left? Persistence and Economic growth! Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

26 Automatic Model Selection Coefficient Std.Error t-value t-prob Lco2_pc_ DLrgdp_pc Constant U AR 1-2 test: F(2,44) = [0.1448] ARCH 1-1 test: F(1,47) = [0.3569] Normality test: Chiˆ2(2) = [0.2452] Hetero test: F(4,44) = [0.4854] Hetero-X test: F(5,43) = [0.6360] RESET23 test: F(2,44) = [0.1415] log(co2) Fitted scaled residual Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

27 Specific Model log(co2) = (0.0219) T=49 R 2 =0.987 log(co2) t (0.206) AR 1-2 test: F(2,44) = [0.1448] ARCH 1-1 test: F(1,47) = [0.3569] Normality test: Chiˆ2(2) = [0.2452] Hetero test: F(4,44) = [0.4854] Hetero-X test: F(5,43) = [0.6360] RESET23 test: F(2,44) = [0.1415] Maybe no Kuznets curve? High persistence: ˆβ 1 =0.99 Economic Growth Effect: log(rgdp) t, ˆβ 7 =1.21 increased CO2 emissions during boom decreased emission during recession log(rgdp) t (0.0495) Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

28 CO2 Emissions and Economic Growth kg CO2 Real GDP CO2 Real GDP Real GDP 0.1 D log(real GDP) log(usd) 0.0 Recession Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

29 Autometrics has more uses Automatic Model Selection to detect which variables matter to find well-specified models to detect when changes/structural breaks happen? Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

30 Structural Breaks Parameters not constant: β β e.g. Temporary shift in mean Already encountered two potential examples: Japanese Exports 0.5 D12LJapanExports Fitted Residuals Baseball Attendance %Attendance Fitted Residuals (scaled) Large Residual! Large Residual! Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

31 Correcting for Breaks Dummy Variable: = 1 during break = 0 otherwise accounts for all variation of these observations = as if removed from the sample and model estimated outside of the break period E.g. Dummy: 2008:6 2011: D12LJapanExports Dummy: 2008: : Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

32 Detection of Breaks How can we detect and control for breaks? Presence of breaks affects parameter estimates Parameter estimates affect whether we can detect a break simultaneity problem, must do estimation and detection jointly! Impulse Indicator Saturation: add indicator (0/1) variable for every observation Keep only significant ones easy to do with Autometrics (Automatic Model Selection Algorithm in OxMetrics/PcGive) Choose: Outlier and Break Detection IIS Searches over full set of dummy variables keeps significant Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

33 Japanese Exports Model: T 12 Y t = α 12 Y t 1 + µ + 1 i=t δ i i=1 Estimated Model & Detected Breaks (at 0.1%): D12LJapanExports = 0.9 (0.019) (0.049) (0.0026) D12LJapanExports t (0.049) I:2009(11) t (0.049) I:2008(11) t 0.22 (0.049) I:2009(12) t (0.049) I:2010(1) t I:2009(1) t identifies break period from: 2008: (1) Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

34 Japenese Exports 0.5 D12LJapanExports Fitted r:d12ljapanexports (scaled) I:2008(11) I:2009(1) I:2009(11) I:2009(12) I:2010(1) Detected Breaks: Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

35 Baseball Attendance %Attendance Fitted Residuals (scaled) Large Residual! Large Residual! Breaks? Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

36 Baseball Attendance %Attend. t = α 1 %Attend. t 1 + β 1 + β 2 PCT t + β 3 Unemp. t + ɛ t %Attend. = (0.0913) ( ) %Attend. t ( ) Unempl. t ( ) PCT t AR 1-2 test: F(2,45) = [0.5510] ARCH 1-1 test: F(1,49) = [0.4158] Normality test: Chiˆ2(2) = [0.0036]** Hetero test: F(6,44) = [0.7810] Hetero-X test: F(9,41) = [0.9109] RESET23 test: F(2,45) = [0.8994] What now?? Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

37 Baseball: Break detection Use Impulse Indicator Saturation: %Attend. t = α 1 %Attend. t 1 +β 1 +β 2 PCT t +β 3 Unemp. t + Detected two outliers or breaks: in 1967 and 1981! %Attend. t = 0.65 (0.087) 0.48 (0.16) (0.31) α 1 %Attend. t (0.097) (0.28) PCT t 1 PCT t (0.0083) T 1 i=t δ i +ɛ t i=1 I:1967 t 0.42 (0.09) Unemp. t I:1981 t Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

38 Baseball Attendance Breaks detected: 1967 (+0.33), 1981 (-0.42) what happened? 1967: Red Sox reach World Series for first time in 20 years 1981: Players Strike (38% Games cancelled!) Corrected for Breaks - Effects: Coefficient on unemployment significant! ˆβ 3 = 0.017, se=0.0083, = p ˆβ 3 = Diagnostic Tests AR 1-2 test: F(2,42) = [0.7260] ARCH 1-1 test: F(1,49) = [0.3001] Normality test: Chiˆ2(2) = [0.7246] Hetero test: F(8,40) = [0.7220] Hetero-X test: F(14,34) = [0.1216] RESET23 test: F(2,42) = [0.1907] Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

39 Structural Breaks Sudden changes/shocks are common! Need to be controlled for! Can be detected (IIS, many other ways!) Correct parameter estimates Interpretation of shock itself! (e.g. baseball, recession...) Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

40 Practical: Automatic Selection Automatic Model Selection - Kuznets Curve Use Autometrics at 1% General Model: Constant (U-fixed) log(co2) t 1 log(rgdp) t, log(rgdp) t 1 log(rgdp) 2 t, log(rgdp)2 t 1 log(rgdp) t, log(rgdp) t 1 Does model selection ever result in an exact Kuznets curve specification? Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

41 Practical: First Differences Model in first differences Estimate the Kuznets curve in first differences! Interpret significance and diagnostics! Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

42 Practical: Structural Breaks Dealing with structural breaks: Constructing Dummy Variables: common approach if known time period is problematic (e.g. World War II) Detection of Breaks: finding breaks/disturbances without prior knowledge of their occurrence Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

43 Practical: Baseball Model Load data red sox 1948.in7 Estimate the ADL model: %Attend. t = α 1 %Attend. t 1 + β 1 + β 2 PCT t + β 3 Unemp. t + ɛ t Recall two drastic events: 1967: World Series for first time! 1981: Player s Strike Construct 2 dummy variables using calculator: I:1967 I:1981 Estimate the model with dummies: %Attend. t = α 1 %Attend. t 1 + β 1 + β 2 PCT t + β 3 Unemp. t +δ 1 I : δ 2 I : ɛ t Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

44 Practial: Fitted Model 1.00 att_pop100 Fitted Note the perfect fit, observations "dummied" out! r:att_pop100 (scaled) Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

45 How could we have found these breaks? Using break detection methods: e.g. IIS (Impulse Indicator Saturation) Re-estimate the above model using IIS Mark all regressors as U - fixed. Select IIS in Automatic Model Selection Choose p α = 0.01 Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

46 Practial: Additional Useful Features: Useful features of OxMetrics (not covered so far): Aggregate: change frequencies of measurement Batch files: store model code in file to be replicable (ALT+B) Test - Further Output: write model results in equation format Ox Programming Language: more complex models Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

47 Re-Cap of the Course Themes: OLS Regression Model Mis-specification Dependence over time Forecasting Non-Stationarity Cointegration Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

48 OLS Regression Assumptions: (i) (Y t, X t, Z t ) independent across t. (ii) Identical conditional distribution: (Y t X t, Z t ) (β 1 + β 2 X t + β 3 Z t, σ 2 ). (iii) X t and Z t exogenously determined for Y t. (iv) A parameter space exists: β 1, β 2, β 3, σ 2 R R +, Gives model: Y t = β 1 + β 2 X t + β 3 Z t + ɛ t, ɛ t N0, σ 2 (7) Parameter interpretation as before except ceteris paribus: EY t X t, Z t X t = β 2, (8) Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

49 Misspecification Conclusions drawn from model only valid if model is well-specified! 1 Heteroskedasticity (variance changes through sample) (Hetero) 2 Errors normally distributed (Normality) 3 Functional form of the model (RESET) 4 Residual Auto-correlation (AR) 5 Variance persistent (ARCH) How to spot: Plot the series, fitted values, and residuals! OxMetrics reports mis-specification tests by default! Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

50 Depdendence over Time Time series = dependence over time between observations. Has to be modelled! How to spot dependence and determine lag length: (Partial) Auto-correlation function Cross-correlation function How to model: Auto-regressive model Auto-regressive distributed lag model (lags of dependent and independent variables) = all models of this type are equilibrium-correction! = Estimate long-run mean in-sample and correct towards it! Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

51 Forecasting Forecasting easy to implement but hard to do well (especially about the future...)! h-step forecasts (use real observations to update) Dynamic forecasts (use forecasted values to update) Do not evaluate a model by its forecast performance! Good models can forecast badly (or well...) Bad models can forecast well (or badly...) no connection between forecast performance and model validity Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

52 Non-Stationarity and Model Selection The world is non-stationary things change all the time! (think back 50 years ago) Many forms, some tameable: Trends: beware of spurious correlation! add linear trend to model! or take differences! Structural breaks: detect & correct for (dummy variables) Model Building and Model Selection Need to use your judgement and expertise! Can use automated methods (Autometrics) Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

53 Putting it all together... Large set of tools - pick & mix but should follow coherent structure! Project Structure Example: Environmental Kuznets Curve (from Problem Sets) 1) Introduction Introduce the theory: Environmental Kuznets curve suggests inverse U-shape between income and pollution Why? - transition of developing economies Previous literature? Investigate using per capita CO2 emissions and per capita GDP for Japan Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

54 Data 2) Data per capita CO2 emissions (World Bank, in kg) per capita real GDP (FRED, in 2011 USD) theory suggests proportional relationship: log transform plot the data (raw and in logs) time series: in levels and differences scatter plot: CO2 against GDP Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

55 Data Plots 2) Data (continued) kg 5.0 CO2 per capita Real GDP per capita log(co2 kg) log(co2 kg) USD (2011) 2.5 log(co2) 10.5 log(rgdp) log(co2) log(usd) log(usd) log(rgdp) Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

56 Methodology 3) Methodology Theory: inverse U-shape, requires quadratic functional form: log(co2) t = β 1 + β 2 log(rgdp) t + β 3 log(rgdp) 2 t + ɛ t Before we estimate, determine the time series properties: Partial (auto-correlation function) suggests 1-lag of log(co2) We also report a forecasting scenario and model in first differences to account for potential trends: Forecast from 1991 onwards First difference model: log(co2) t = β 1 + β 2 log(rgdp) t + β 3 log(rgdp) 2 t Use Automatic Model Selection to improve on theory model: include more lags and log(rgdp) t (economic growth) Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

57 Results 4) Results Present model estimates in table incl. coefficients, standard errors, #observations, diagnostic tests for each model! plot fitted values and residuals! Table: Modelled Variable: log(co2 Emissions per capita) Variable Estimated Coefficient Constant (4.15)** L(RGDP) 9.32 (0.85)** L(RGDP) (0.044)** R T 51 AR 1-2 Test [0.00]** ARCH 1-1 Test [0.00]** Normality Test [0.50] Hetero Test [0.002]** RESET Test [0.00]** Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

58 4) Results continued: 2.25 log(co2 per capita) Fitted Model Residuals 1-step Forecasts 2.30 log(co2 per capita) log(co2 kg) SD 0 log(co2 kg) Label the axes! Label your data! Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

59 4) Results continued: Automatic Model Selection Results general model (incl. lags and economic growth) reduced to: log(co2) = (0.0219) T=49 R 2 =0.987 log(co2) t (0.206) AR 1-2 test: F(2,44) = [0.1448] ARCH 1-1 test: F(1,47) = [0.3569] Normality test: Chiˆ2(2) = [0.2452] Hetero test: F(4,44) = [0.4854] Hetero-X test: F(5,43) = [0.6360] RESET23 test: F(2,44) = [0.1415] log(rgdp) t (0.0495) Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

60 Discussion 5) Discussion Interpret model results: estimated 9.32% increase in emissions for 1% increase in GDP, diminishing marginal effect: -0.44% t-tests (individual) and F-tests (joint significance) ˆβ 2 > 0, ˆβ 3 < 0, consistent with EKC Estimates imply turning point of 34,500 USD ( 2007 in Japan) BUT: Model mis-specified, Kuznets theory not sufficient to explain CO2 emissions Automatic model selection: well specified model reduced to high persistence and economic growth effect suggests little evidence of Kuznets curve Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

61 Conclusion & References 6) Conclusion Summarize project: investigated EKC Mixed evidence of EKC for Japan, Japan past turning point But more likely that economic growth effect holds Further research: other countries, more variables 7) References Cite all data sources and referenced literature! e.g.: Stern, D. I. (2004). The rise and fall of the environmental Kuznets curve. World Development, 32 (8), avoid plagiarism! Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

62 Principles of Modelling Start general and work to specific: Too few variables: Bias, cannot trust any statistics. Too many: too many to cope with? General: Can encompass many theories and test each one. Solution to problem of too many variables: Omit insignificant variables! If t-statistics are very small, omit variables. But time consuming and we can make mistakes. Can use automatic model selection. Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

63 Potential Topics Environmental Kuznets Curve: look at other countries and extend the analysis. When are their estimated turning points? Purchasing Power Parity: investigate whether purchasing power parity holds for given exchange rates between countries Efficient market hypothesis: is it possible to model/predict share prices? The Phillips curve: theory suggests a link and trade-off between unemployment and inflation, test this using econometric methods. Econometric tools can be useful in many fields: temperatures and greenhouse gases temperatures and sea level policy effectiveness effect of interventions?... Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

64 Last thoughts Plot the data before you conduct any analysis! Have a clear structure in mind! (as in example) Reference all your sources!...remember the deadline: 5. June 2016 Building a sensible model with real data is very hard - don t be disheartened! me with any questions! felix.pretis@nuffield.ox.ac.uk Stay in touch and build models! Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

65 Appendix Optional Appendix If you would like to learn more about how to deal with non-linear but rather stochastic trends and unit-roots, the next slides introduce the concept of cointegration! Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

66 Re-Cap Yesterday: Stationary is the exception not the norm! Types of Non-stationarity: like going to zoo to look at non-elephants... Many many forms... = Three common forms encountered and tame-able: 1: Linear Trends 2: Structural Breaks (sudden change in parameters) 3: Unit-roots/Stochastic trends (advanced) can induce spurious correlation! Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

67 Spurious Relationship: Example Japanese GDP and Cumulative Rainfall in Fortaleza (NE Brazil) Japan RGDP 6000 Cumulative Rainfall Fortaleza Brazil Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

68 Unit-Root Tests - Japanese RGDP: Unit-root tests The sample is: (38 observations and 2 variables) Jap_rGDP_90_billionY: ADF tests (T=34, Constant; 5%= %=-3.64) D-lag t-adf beta Y_1 sigma t-dy_lag t-prob AIC F-prob Cumulative Rainfall: cumrainfall_brazil: ADF tests (T=34, Constant; 5%= %=-3.64) D-lag t-adf beta Y_1 sigma t-dy_lag t-prob AIC F-prob = both series unit-root non-stationary Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

69 Model RGDP using Rainfall Japan RGDP Model Fit Residuals Model Jap.RDGP t = (4938) (1.45) cumrainfall Brazil t R 2 =0.98, F(1,36) = 2206 [0.000]** Cumulative Rainfall highly significant, explains 98% of variation in Japanese GDP Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

70 Addressing Spurious Relationships How can we actually estimate meaningful economic relationships? Method 1: Take differences of our data: If Y t is random walk, Y t = Y t Y t 1 is stationary. Regress Y t on X t. But we lose levels information. Economic theory in levels. Y t = (2976) (18.29) cumrainfall Brazil t + ˆɛ t. (9) = not significant anymore! Method 2: Cointegration Both series non-stationary Is a linear combination of them stationary? Residuals of regression of Y t on X t stationary: Test of cointegration. Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

71 Cointegration: Drunken walk with dog Random Walk Ɛ 10 Random Walk Ɛ 1 Ɛ 5 Ɛ Stationary Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

72 Residuals Non-Stationary: 2 Residuals (scaled) Stationary: 2 Residuals Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

73 Cointegration Fundamental concept in econometrics: Engle and Granger won Nobel Prizes. Static regression model: Y t = β 1 + β 2 X t + ɛ t. (10) If Y t I(1) and X t I(1) (both non-stationary) expect combination non-stationary. ɛ t = Y t β 1 β 2 X t so expect ɛ t I(1), non-stationary. Hence residuals from Japan GDP and Brazilian rainfall are I(1). 2 Residuals (scaled) But if ɛ t I(0), stationary, then we have cointegration: Both series move together in a stationary economic relationship. 2.5 r:s (scaled) Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

74 Cointegration exists if: Both Y t and X t are non-stationary and have unit roots. Combination of Y t and X t, Y t β 1 β 2 X t is stationary. Then we say: Y t and X t are cointegrated. If Y t, X t cointegrated then ɛ t = Y t β 1 β 2 X t stationary Engle & Granger test for cointegration: Unit root test on residuals. 1 Test Y t and X t for unit root. 2 2 If both have unit roots, run regression of Y t on constant and X t (static, don t include lags). 3 Save residuals ˆɛ t and run unit root test on them. 2 From Descriptive Statistics after clicking. Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

75 Cointegration Examples Japanese RGDP (Y t ) and Cumulative Rainfall in Fortaleza Brazil (X t ) 1) Test Y t, X t for unit-roots to establish if I(1) - Japanese RGDP: Unit-root tests The sample is: (38 observations and 2 variables) Jap_rGDP_90_billionY: ADF tests (T=34, Constant; 5%= %=-3.64) D-lag t-adf beta Y_1 sigma t-dy_lag t-prob AIC F-prob Cumulative Rainfall: cumrainfall_brazil: ADF tests (T=34, Constant; 5%= %=-3.64) D-lag t-adf beta Y_1 sigma t-dy_lag t-prob AIC F-prob = both series unit-root non-stationary Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

76 2) Regress Y t on X t, store the residuals ˆɛ t Model Jap.RDGP t = (4938) (1.45) cumrainfall Brazil t Keep Residual: ˆɛ t = Y t ˆβ 1 ˆβ 2 X t ˆɛ t = Y t X t 2 Residuals (scaled) Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

77 Test ˆɛ t for unit-root non-stationarity using Dickey-Fuller Test: ˆɛ t = ρˆɛ t 1 + v t Test H0: ρ 1 = 0 ˆɛ t = (ρ 1)ˆɛ t 1 + v t Unit-root tests The sample is: (38 observations and 1 variables) residuals: ADF tests (T=34, Constant; 5%= %=-3.64) D-lag t-adf beta Y_1 sigma t-dy_lag t-prob AIC F-prob Test Statistic = for no lags, for 1 lag Critical value = for 5% > 2.95 Cannot reject H0: Unit root = residual non-stationary, no cointegration Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

78 US Short-term and long-term interest rates US short-term (3-month inter-bank) (Y t ) and long-term (10-year bonds) (X t ) interest rates from 1964Q3 2013Q2 In short-run expect random walks Stable relationship in long-run? cointegration? 15 Short Term_US Long Term_US DShort Term_US DLong Term_US Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

79 Order of Integration of Levels? Determine Order of Integration: I(0)? I(1)?... Univariate Unit Root Tests on Y t, X t - US Short-Term Interest Rate The dataset is: new11.in7 The sample is: 1965(4) (2) (195 observations and 4 variables) ST_US: ADF tests (T=191, Constant; 5%= %=-3.47) D-lag t-adf beta Y_1 sigma t-dy_lag t-prob AIC F-prob US Long-Term Interest Rate LT_US: ADF tests (T=191, Constant; 5%= %=-3.47) D-lag t-adf beta Y_1 sigma t-dy_lag t-prob AIC F-prob = Unit-root non-stationary! Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

80 Order of Integration of First Differences? Determine Order of Integration: I(0)? I(1)?... Univariate Unit Root Tests on First Differences Y t, X t - US Short-Term Interest Rate DST_US: ADF tests (T=191, Constant; 5%= %=-3.47) D-lag t-adf beta Y_1 sigma t-dy_lag t-prob AIC F-prob ** ** ** ** US Long-Term Interest Rate DLT_US: ADF tests (T=191, Constant; 5%= %=-3.47) D-lag t-adf beta Y_1 sigma t-dy_lag t-prob AIC F-prob ** ** ** ** Y t, X t Not Unit-root non-stationary! = Y t, X t are I(1): stationary if differenced once. Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

81 Static Regression 2) Regress Y t on X t, store the residuals ˆɛ t Model Short Term t = 1.75 (0.29) (0.04) Long Term t Keep Residual: ˆɛ t = Y t ˆβ 1 ˆβ 2 X t ˆɛ t = Y t X t 5.0 Short-Term Model Residuals Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

82 Test ˆɛ t for unit-root non-stationarity using Dickey-Fuller Test: ˆɛ t = ρˆɛ t 1 + v t Test H0: ρ 1 = 0 ˆɛ t = (ρ 1)ˆɛ t 1 + v t Unit-root tests The sample is: 1965(4) (2) (196 observations and 1 variables) US_ST_LT_residuals: ADF tests (T=191, Constant; 5%= %=-3.47) D-lag t-adf beta Y_1 sigma t-dy_lag t-prob AIC F-prob ** ** ** ** ** Test Statistics below critical values (-2.88 for 5%, for 1%) Reject H0: Unit root = residual stationary, series cointegrate! Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

83 Interpretation: Short-run: Short-term and Long-term interest rates behave as random walks Long-run: Stationary relationship between them, never drift too far apart! Equilibrium Correction: e.g. Long-term interest rate changes, short-term interest rate adjusts to new equilibrium Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

84 Practical Computer Lab 5: Test for unit-root non-stationarity Test for cointegration Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

85 Short-Term and Long-Term Interest Rates Link between UK Short-term and Long-term interest rates Load data: interest rates.in7 Plot the data in levels and first differences (construct) Test for order of integration/unit-root non-stationarity 15 LT_UK ST_UK Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

86 Test for cointegration Estimate static regression model LT t = β 1 + β 2 ST t + ɛ t. Store the residual Test for unit-root non-stationarity on the residual 2.5 ST_UK_residuals Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

87 Cointegration between Stock Prices Closing price for Toyota, Honda, Ford load data car closing price.in7 Yesterday: found closing prices to be random walks Do the series cointegrate? = test for cointegration! Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

88 Cointegration between Stock Prices Steps: Test for order of integration/unit root non-stationarity Estimate static regression model & store residual Test for cointegration (unit-root test on residual) Felix Pretis (Oxford) Time Series Akita Intl. University, / 88

Modelling residential prices with cointegration techniques and automatic selection algorithms

Modelling residential prices with cointegration techniques and automatic selection algorithms Modelling residential prices with cointegration techniques and automatic selection algorithms Ramiro J. Rodríguez A presentation for ERES 2014 - PhD Sessions Bucharest, Rumania The opinions and analyses

More information

a) List and define all assumptions for multiple OLS regression. These are all listed in section 6.5

a) List and define all assumptions for multiple OLS regression. These are all listed in section 6.5 Prof. C. M. Dalton ECN 209A Spring 2015 Practice Problems (After HW1, HW2, before HW3) CORRECTED VERSION Question 1. Draw and describe a relationship with heteroskedastic errors. Support your claim with

More information

Business Cycles. Chris Edmond NYU Stern. Spring 2007

Business Cycles. Chris Edmond NYU Stern. Spring 2007 Business Cycles Chris Edmond NYU Stern Spring 2007 1 Overview Business cycle properties GDP does not grow smoothly: booms and recessions categorize other variables relative to GDP look at correlation,

More information

THE INTEGRATION OF THE SEA BREAM AND SEA BASS MARKET: EVIDENCE FROM GREECE AND SPAIN

THE INTEGRATION OF THE SEA BREAM AND SEA BASS MARKET: EVIDENCE FROM GREECE AND SPAIN THE INTEGRATION OF THE SEA BREAM AND SEA BASS MARKET: EVIDENCE FROM GREECE AND SPAIN Lamprakis Avdelas, Managing Authority for the Operational programme for Fisheries, lamprakisa@in.gr Jordi Guillen, University

More information

5.1 Introduction. Learning Objectives

5.1 Introduction. Learning Objectives Learning Objectives 5.1 Introduction Statistical Process Control (SPC): SPC is a powerful collection of problem-solving tools useful in achieving process stability and improving capability through the

More information

Real-Time Electricity Pricing

Real-Time Electricity Pricing Real-Time Electricity Pricing Xi Chen, Jonathan Hosking and Soumyadip Ghosh IBM Watson Research Center / Northwestern University Yorktown Heights, NY, USA X. Chen, J. Hosking & S. Ghosh (IBM) Real-Time

More information

Business and housing market cycles in the euro area: a multivariate unobserved component approach

Business and housing market cycles in the euro area: a multivariate unobserved component approach Business and housing market cycles in the euro area: a multivariate unobserved component approach Laurent Ferrara (a) and Siem Jan Koopman (b) http://staff.feweb.vu.nl/koopman (a) Banque de France (b)

More information

Name May 3, 2007 Math Probability and Statistics

Name May 3, 2007 Math Probability and Statistics Name May 3, 2007 Math 341 - Probability and Statistics Long Exam IV Instructions: Please include all relevant work to get full credit. Encircle your final answers. 1. An article in Professional Geographer

More information

Chapter 12 Practice Test

Chapter 12 Practice Test Chapter 12 Practice Test 1. Which of the following is not one of the conditions that must be satisfied in order to perform inference about the slope of a least-squares regression line? (a) For each value

More information

An early warning system to predict house price bubbles

An early warning system to predict house price bubbles An early warning system to predict house price bubbles Christian Dreger, Konstantin Kholodilin DIW Berlin Why is the topic relevant? Bubbles in housing prices can impede the real economic evolution Prices

More information

Announcements. Lecture 19: Inference for SLR & Transformations. Online quiz 7 - commonly missed questions

Announcements. Lecture 19: Inference for SLR & Transformations. Online quiz 7 - commonly missed questions Announcements Announcements Lecture 19: Inference for SLR & Statistics 101 Mine Çetinkaya-Rundel April 3, 2012 HW 7 due Thursday. Correlation guessing game - ends on April 12 at noon. Winner will be announced

More information

Chapter 5: Methods and Philosophy of Statistical Process Control

Chapter 5: Methods and Philosophy of Statistical Process Control Chapter 5: Methods and Philosophy of Statistical Process Control Learning Outcomes After careful study of this chapter You should be able to: Understand chance and assignable causes of variation, Explain

More information

Rossana Merola ILO, Research Department

Rossana Merola ILO, Research Department Raising tax revenues without harming equity and employment Rossana Merola ILO, Research Department G-24 Special Workshop on Growth and Reducing Inequality Geneva, 5 th - 6 th September 2017 The views expressed

More information

Legendre et al Appendices and Supplements, p. 1

Legendre et al Appendices and Supplements, p. 1 Legendre et al. 2010 Appendices and Supplements, p. 1 Appendices and Supplement to: Legendre, P., M. De Cáceres, and D. Borcard. 2010. Community surveys through space and time: testing the space-time interaction

More information

The Simple Linear Regression Model ECONOMETRICS (ECON 360) BEN VAN KAMMEN, PHD

The Simple Linear Regression Model ECONOMETRICS (ECON 360) BEN VAN KAMMEN, PHD The Simple Linear Regression Model ECONOMETRICS (ECON 360) BEN VAN KAMMEN, PHD Outline Definition. Deriving the Estimates. Properties of the Estimates. Units of Measurement and Functional Form. Expected

More information

Section I: Multiple Choice Select the best answer for each problem.

Section I: Multiple Choice Select the best answer for each problem. Inference for Linear Regression Review Section I: Multiple Choice Select the best answer for each problem. 1. Which of the following is NOT one of the conditions that must be satisfied in order to perform

More information

League Quality and Attendance:

League Quality and Attendance: League Quality and Attendance: Evidence from a European Perspective* Dr Raymond Bachan* and Prof Barry Reilly ** *University of Brighton, UK **University of Sussex, UK Context Are less fashionable soccer

More information

Robust specification testing in regression: the FRESET test and autocorrelated disturbances

Robust specification testing in regression: the FRESET test and autocorrelated disturbances Robust specification testing in regression: the FRESET test and autocorrelated disturbances Linda F. DeBenedictis and David E. A. Giles * Policy and Research Division, Ministry of Human Resources, 614

More information

What does it take to produce an Olympic champion? A nation naturally

What does it take to produce an Olympic champion? A nation naturally Survival of the Fittest? An Econometric Analysis in to the Effects of Military Spending on Olympic Success from 1996-01. Mark Frahill The Olympics are the world s greatest sporting celebrations, seen as

More information

Measuring Returns to Scale in Nineteenth-Century French Industry Technical Appendix

Measuring Returns to Scale in Nineteenth-Century French Industry Technical Appendix Measuring Returns to Scale in Nineteenth-Century French Industry Technical Appendix Ulrich Doraszelski Hoover Institution, Stanford University March 2004 Formal Derivations Gross-output vs value-added

More information

Encompassing Of Nested and Non-nested Models:Energy-Growth Models

Encompassing Of Nested and Non-nested Models:Energy-Growth Models MPRA Munich Personal RePEc Archive Encompassing Of Nested and Non-nested Models:Energy-Growth Models Sidra Nazir PMAS Arid Agriculture University, Rawalpindi 7 March 2017 Online at https://mpra.ub.uni-muenchen.de/77487/

More information

How do changes in gasoline prices affect bus ridership in the Twin Cities?

How do changes in gasoline prices affect bus ridership in the Twin Cities? Macalester College DigitalCommons@Macalester College Economics Honors Projects Economics Department Spring 2016 How do changes in gasoline prices affect bus ridership in the Twin Cities? Macalester College,

More information

Analysis of Highland Lakes Inflows Using Process Behavior Charts Dr. William McNeese, Ph.D. Revised: Sept. 4,

Analysis of Highland Lakes Inflows Using Process Behavior Charts Dr. William McNeese, Ph.D. Revised: Sept. 4, Analysis of Highland Lakes Inflows Using Process Behavior Charts Dr. William McNeese, Ph.D. Revised: Sept. 4, 2018 www.spcforexcel.com Author s Note: This document has been revised to include the latest

More information

Habit Formation in Voting: Evidence from Rainy Elections Thomas Fujiwara, Kyle Meng, and Tom Vogl ONLINE APPENDIX

Habit Formation in Voting: Evidence from Rainy Elections Thomas Fujiwara, Kyle Meng, and Tom Vogl ONLINE APPENDIX Habit Formation in Voting: Evidence from Rainy Elections Thomas Fujiwara, Kyle Meng, and Tom Vogl ONLINE APPENDIX Figure A1: Share of Counties with Election-Day Rainfall by Year Share of counties with

More information

Distancei = BrandAi + 2 BrandBi + 3 BrandCi + i

Distancei = BrandAi + 2 BrandBi + 3 BrandCi + i . Suppose that the United States Golf Associate (USGA) wants to compare the mean distances traveled by four brands of golf balls when struck by a driver. A completely randomized design is employed with

More information

Price relationships between domestic wild salmon, aquacultured rainbow trout and norwegian farmed salmon in finland

Price relationships between domestic wild salmon, aquacultured rainbow trout and norwegian farmed salmon in finland Price relationships between domestic wild salmon, aquacultured rainbow trout and norwegian farmed salmon in finland by Per Mickwitz, Finnish Game and Fisheries Research Institute, P.O.Box 202 FIN-00 151

More information

Efficiency Wages in Major League Baseball Starting. Pitchers Greg Madonia

Efficiency Wages in Major League Baseball Starting. Pitchers Greg Madonia Efficiency Wages in Major League Baseball Starting Pitchers 1998-2001 Greg Madonia Statement of Problem Free agency has existed in Major League Baseball (MLB) since 1974. This is a mechanism that allows

More information

An Econometric Evaluation of the Performance of the Greek National Football Team

An Econometric Evaluation of the Performance of the Greek National Football Team Athens Journal of Sports December 2014 An Econometric Evaluation of the Performance of the Greek National Football Team By Gregory T. Papanikos This paper uses a Cobb-Douglas production function to account

More information

Instrumental Variables

Instrumental Variables Instrumental Variables Prof. Jacob M. Montgomery Quantitative Political Methodology (L32 363) December 6, 2016 Lecture 26 (QPM 2016) IV Analysis December 6, 2016 1 / 27 Class business PS8 due Wednesday

More information

y ) s x x )(y i (x i r = 1 n 1 s y Statistics Lecture 7 Exploring Data , y 2 ,y n (x 1 ),,(x n ),(x 2 ,y 1 How two variables vary together

y ) s x x )(y i (x i r = 1 n 1 s y Statistics Lecture 7 Exploring Data , y 2 ,y n (x 1 ),,(x n ),(x 2 ,y 1 How two variables vary together Statistics 111 - Lecture 7 Exploring Data Numerical Summaries for Relationships between Variables Administrative Notes Homework 1 due in recitation: Friday, Feb. 5 Homework 2 now posted on course website:

More information

College/high school median annual earnings gap,

College/high school median annual earnings gap, College/high school median annual earnings gap, 1979 2012 In constant 2012 dollars 70,000 dollars Household gap $30,298 to $58,249 60,000 50,000 40,000 Male gap $17,411 to $34,969 30,000 20,000 10,000

More information

Software Reliability 1

Software Reliability 1 Software Reliability 1 Software Reliability What is software reliability? the probability of failure-free software operation for a specified period of time in a specified environment input sw output We

More information

Trends in Baseball Scoring & Strikeouts, Geoffrey Holland ECON 5341 Advanced Data Analysis 16 November 2015

Trends in Baseball Scoring & Strikeouts, Geoffrey Holland ECON 5341 Advanced Data Analysis 16 November 2015 Trends in Baseball Scoring & Strikeouts, 1962-2014 Geoffrey Holland ECON 5341 Advanced Data Analysis 16 November 2015 Background Statistics are intrinsic part of Baseball Series under study are Runs Scored

More information

International Discrimination in NBA

International Discrimination in NBA International Discrimination in NBA Sports Economics Drew Zhong Date: May 7 2017 Advisory: Prof. Benjamin Anderson JEL Classification: L83; J31; J42 Abstract Entering the 21st century, the National Basketball

More information

Strategies for joining the European Economic and Monetary Union: A Comparative Analysis of Possible Scenarios.

Strategies for joining the European Economic and Monetary Union: A Comparative Analysis of Possible Scenarios. This paper (presented on the CASE internal seminar on May, 28 2003) summarizes the preliminary results of the research conducted within the frames of the project entitled Strategies for joining the European

More information

NCSS Statistical Software

NCSS Statistical Software Chapter 256 Introduction This procedure computes summary statistics and common non-parametric, single-sample runs tests for a series of n numeric, binary, or categorical data values. For numeric data,

More information

Analysis of Variance. Copyright 2014 Pearson Education, Inc.

Analysis of Variance. Copyright 2014 Pearson Education, Inc. Analysis of Variance 12-1 Learning Outcomes Outcome 1. Understand the basic logic of analysis of variance. Outcome 2. Perform a hypothesis test for a single-factor design using analysis of variance manually

More information

Calculation of Trail Usage from Counter Data

Calculation of Trail Usage from Counter Data 1. Introduction 1 Calculation of Trail Usage from Counter Data 1/17/17 Stephen Martin, Ph.D. Automatic counters are used on trails to measure how many people are using the trail. A fundamental question

More information

Running head: DATA ANALYSIS AND INTERPRETATION 1

Running head: DATA ANALYSIS AND INTERPRETATION 1 Running head: DATA ANALYSIS AND INTERPRETATION 1 Data Analysis and Interpretation Final Project Vernon Tilly Jr. University of Central Oklahoma DATA ANALYSIS AND INTERPRETATION 2 Owners of the various

More information

Unit 4: Inference for numerical variables Lecture 3: ANOVA

Unit 4: Inference for numerical variables Lecture 3: ANOVA Unit 4: Inference for numerical variables Lecture 3: ANOVA Statistics 101 Thomas Leininger June 10, 2013 Announcements Announcements Proposals due tomorrow. Will be returned to you by Wednesday. You MUST

More information

The role of investor sentiment in the contemporaneous dynamics in energy futures prices: A Discrete Wavelet Transformation

The role of investor sentiment in the contemporaneous dynamics in energy futures prices: A Discrete Wavelet Transformation The role of investor sentiment in the contemporaneous dynamics in energy futures prices: A Discrete Wavelet Transformation 36th USAEE CONFERENCE / Washington DC Sana BEN KEBAIER 1 1 PhD Student Paris Dauphine

More information

The Effect of Newspaper Entry and Exit on Electoral Politics Matthew Gentzkow, Jesse M. Shapiro, and Michael Sinkinson Web Appendix

The Effect of Newspaper Entry and Exit on Electoral Politics Matthew Gentzkow, Jesse M. Shapiro, and Michael Sinkinson Web Appendix The Effect of Newspaper Entry and Exit on Electoral Politics Matthew Gentzkow, Jesse M. Shapiro, and Michael Sinkinson Web Appendix 1 1 Sources of Voting Data Our primary source for county-level voting

More information

Discussion: Illusions of Sparsity by Giorgio Primiceri

Discussion: Illusions of Sparsity by Giorgio Primiceri Discussion: Illusions of Sparsity by Giorgio Primiceri Pablo Guerron-Quintana Boston College June, 2018 Pablo Guerron-Quintana Discussion 1 / 17 Executive Summary Motivation: Is regular coke (dense model)

More information

Forecasting. Forecasting In Practice

Forecasting. Forecasting In Practice ing Dr. Richard de Neufville Professor of Engineering Systems and Civil and Environmental Engineering Massachusetts Institute of Technology ing In Practice Objective: To present procedure. Topics: 1. Premises

More information

Forecasting Persistent Data with Possible Structural Breaks: Old School and New School. Lessons Using OECD Unemployment Rates

Forecasting Persistent Data with Possible Structural Breaks: Old School and New School. Lessons Using OECD Unemployment Rates August 20, 2006 Forecasting Persistent Data with Possible Structural Breaks: Old School and New School Lessons Using OECD Unemployment Rates Walter Enders * and Ruxandra Prodan Department of Economics,

More information

ECO 745: Theory of International Economics. Jack Rossbach Fall Lecture 6

ECO 745: Theory of International Economics. Jack Rossbach Fall Lecture 6 ECO 745: Theory of International Economics Jack Rossbach Fall 2015 - Lecture 6 Review We ve covered several models of trade, but the empirics have been mixed Difficulties identifying goods with a technological

More information

Is lung capacity affected by smoking, sport, height or gender. Table of contents

Is lung capacity affected by smoking, sport, height or gender. Table of contents Sample project This Maths Studies project has been graded by a moderator. As you read through it, you will see comments from the moderator in boxes like this: At the end of the sample project is a summary

More information

Building an NFL performance metric

Building an NFL performance metric Building an NFL performance metric Seonghyun Paik (spaik1@stanford.edu) December 16, 2016 I. Introduction In current pro sports, many statistical methods are applied to evaluate player s performance and

More information

Dutch Disease, Deindustrialization and Employment in South America Roberto Frenkel

Dutch Disease, Deindustrialization and Employment in South America Roberto Frenkel Dutch Disease, Deindustrialization and Employment in South America Roberto Frenkel Principal Research Associate at CEDES and Honorary Professor, University of Buenos Aires 300 Real bilateral exchange rates

More information

The Maturity of Sovereign Bond Issuance in the Euro Area

The Maturity of Sovereign Bond Issuance in the Euro Area The Maturity of Sovereign Bond Issuance in the Euro Area Roel Beetsma (UvA & European Fiscal Board) Massimo Giuliodori (UvA & Tinbergen Institute) Jesper Hanson (IMF & UvA) Frank de Jong (Tilburg University)

More information

ASTERISK OR EXCLAMATION POINT?: Power Hitting in Major League Baseball from 1950 Through the Steroid Era. Gary Evans Stat 201B Winter, 2010

ASTERISK OR EXCLAMATION POINT?: Power Hitting in Major League Baseball from 1950 Through the Steroid Era. Gary Evans Stat 201B Winter, 2010 ASTERISK OR EXCLAMATION POINT?: Power Hitting in Major League Baseball from 1950 Through the Steroid Era by Gary Evans Stat 201B Winter, 2010 Introduction: After a playerʼs strike in 1994 which resulted

More information

Airport Forecasting Prof. Richard de Neufville

Airport Forecasting Prof. Richard de Neufville Airport Forecasting Prof. Richard de Neufville Istanbul Technical University Air Transportation Management M.Sc. Program Airport Planning and Management / RdN Airport Planning and Management Module 07

More information

Great Depressions of the Twentieth Century Project

Great Depressions of the Twentieth Century Project Great Depressions of the Twentieth Century Project Timothy J. Kehoe and Edward C. Prescott www.greatdepressionsbook.com Cole and Ohanian, The Great Depression in the United States from a Neoclassical Perspective,

More information

LOW PRESSURE EFFUSION OF GASES revised by Igor Bolotin 03/05/12

LOW PRESSURE EFFUSION OF GASES revised by Igor Bolotin 03/05/12 LOW PRESSURE EFFUSION OF GASES revised by Igor Bolotin 03/05/ This experiment will introduce you to the kinetic properties of low-pressure gases. You will make observations on the rates with which selected

More information

FMSN60/MASM18 Financial Statistics Lecture 1, Introduction and stylized facts. Magnus Wiktorsson

FMSN60/MASM18 Financial Statistics Lecture 1, Introduction and stylized facts. Magnus Wiktorsson FMSN60/MASM18 Financial Statistics Lecture 1, Introduction and stylized facts Magnus Wiktorsson People and homepage Magnus Wiktorsson: magnusw@maths.lth.se, 222 86 25, MH:130 (Lecturer) Samuel Wiqvist:

More information

Learning about Banks Net Worth and the Slow Recovery after the Financial Crisis

Learning about Banks Net Worth and the Slow Recovery after the Financial Crisis Learning about Banks Net Worth and the Slow Recovery after the Financial Crisis Josef Hollmayr (Deutsche Bundesbank) and Michael Kühl (Deutsche Bundesbank) The presentation represents the personal opinion

More information

The Quality of Life of the People in Norway

The Quality of Life of the People in Norway 1 Example Report The Quality of Life of the People in Norway The Management Institute for Quality-of-Life Studies December 2018 2 Introduction This report provides a detailed picture of the quality of

More information

Title: AJAE Appendix for Measuring Benefits from a Marketing Cooperative in the Copper

Title: AJAE Appendix for Measuring Benefits from a Marketing Cooperative in the Copper Title: AJAE Appendix for Measuring Benefits from a Marketing Cooperative in the Copper River Fishery Authors: Sunny L. Jardine, C.-Y. Cynthia Lin, and James N. Sanchirico Date: April 20, 2014 Note: The

More information

LOW PRESSURE EFFUSION OF GASES adapted by Luke Hanley and Mike Trenary

LOW PRESSURE EFFUSION OF GASES adapted by Luke Hanley and Mike Trenary ADH 1/7/014 LOW PRESSURE EFFUSION OF GASES adapted by Luke Hanley and Mike Trenary This experiment will introduce you to the kinetic properties of low-pressure gases. You will make observations on the

More information

The Velocity of Money Revisited

The Velocity of Money Revisited The Velocity of Money Revisited Lawrence J. Lau Ralph and Claire Landau Professor of Economics, The Chinese Univ. of Hong Kong and Kwoh-Ting Li Professor in Economic Development, Emeritus, Stanford University

More information

the 54th Annual Conference of the Association of Collegiate School of Planning (ACSP) in Philadelphia, Pennsylvania November 2 nd, 2014

the 54th Annual Conference of the Association of Collegiate School of Planning (ACSP) in Philadelphia, Pennsylvania November 2 nd, 2014 the 54th Annual Conference of the Association of Collegiate School of Planning (ACSP) in Philadelphia, Pennsylvania November 2 nd, 2014 Hiroyuki Iseki, Ph.D. Assistant Professor Urban Studies and Planning

More information

Quantitative Methods for Economics Tutorial 6. Katherine Eyal

Quantitative Methods for Economics Tutorial 6. Katherine Eyal Quantitative Methods for Economics Tutorial 6 Katherine Eyal TUTORIAL 6 13 September 2010 ECO3021S Part A: Problems 1. (a) In 1857, the German statistician Ernst Engel formulated his famous law: Households

More information

Taking Your Class for a Walk, Randomly

Taking Your Class for a Walk, Randomly Taking Your Class for a Walk, Randomly Daniel Kaplan Macalester College Oct. 27, 2009 Overview of the Activity You are going to turn your students into an ensemble of random walkers. They will start at

More information

STANDARD SCORES AND THE NORMAL DISTRIBUTION

STANDARD SCORES AND THE NORMAL DISTRIBUTION STANDARD SCORES AND THE NORMAL DISTRIBUTION REVIEW 1.MEASURES OF CENTRAL TENDENCY A.MEAN B.MEDIAN C.MODE 2.MEASURES OF DISPERSIONS OR VARIABILITY A.RANGE B.DEVIATION FROM THE MEAN C.VARIANCE D.STANDARD

More information

INFLUENCE OF ENVIRONMENTAL PARAMETERS ON FISHERY

INFLUENCE OF ENVIRONMENTAL PARAMETERS ON FISHERY Chapter 5 INFLUENCE OF ENVIRONMENTAL PARAMETERS ON FISHERY 5. Introduction Environmental factors contribute to the population dynamics and abundance of marine fishery. The relationships between weather,

More information

Structural Breaks in the Game: The Case of Major League Baseball

Structural Breaks in the Game: The Case of Major League Baseball Structural Breaks in the Game: The Case of Major League Baseball Peter A. Groothuis Walker College of Business Appalachian State University Boone, NC 28608 Kurt W. Rotthoff Stillman School of Business

More information

OBSERVED VARIABILITY IN OIL SARDINE AND MACKEREL FISHERY OF SOUTHWEST COAST OF INDIA STATISTICAL APPROACH

OBSERVED VARIABILITY IN OIL SARDINE AND MACKEREL FISHERY OF SOUTHWEST COAST OF INDIA STATISTICAL APPROACH Observed Variability in Oil Sardine and Mackerel Fishery of Southwest Coast of India Statistical Approach Chapter 4 OBSERVED VARIABILITY IN OIL SARDINE AND MACKEREL FISHERY OF SOUTHWEST COAST OF INDIA

More information

At each type of conflict location, the risk is affected by certain parameters:

At each type of conflict location, the risk is affected by certain parameters: TN001 April 2016 The separated cycleway options tool (SCOT) was developed to partially address some of the gaps identified in Stage 1 of the Cycling Network Guidance project relating to separated cycleways.

More information

Monetary policy in a fixedexchange-rate. Presentation by Anders Møller Christensen Assistant Governor, Danmarks Nationalbank May 2006

Monetary policy in a fixedexchange-rate. Presentation by Anders Møller Christensen Assistant Governor, Danmarks Nationalbank May 2006 Monetary policy in a fixedexchange-rate regime Presentation by Anders Møller Christensen Assistant Governor, Danmarks Nationalbank May 2006 MONETARY-POLICY STRATEGIES 24-05-2006 DANMARKS NATIONALBANK 2

More information

Lab 1. Adiabatic and reversible compression of a gas

Lab 1. Adiabatic and reversible compression of a gas Lab 1. Adiabatic and reversible compression of a gas Introduction The initial and final states of an adiabatic and reversible volume change of an ideal gas can be determined by the First Law of Thermodynamics

More information

Figure 1a. Top 1% income share: China vs USA vs France

Figure 1a. Top 1% income share: China vs USA vs France 22% 20% 18% 16% Figure 1a. Top 1% income share: China vs USA vs China USA 14% 12% 10% 8% 6% 4% 1978 1982 1986 1990 1994 1998 2002 2006 2010 2014 Distribution of pretax national income (before taxes and

More information

Introduction to Topics in Macroeconomics 2

Introduction to Topics in Macroeconomics 2 to Topics in Macroeconomics 2 Chapter 1 Topics in Macroeconomics 2 Economics Division University of Southampton February 7 & 8, 2008 Chapter 1 1/33 Topics in Macroeconomics Course Outline Topics in Macroeconomics

More information

Chapter 10 Aggregate Demand I: Building the IS LM Model

Chapter 10 Aggregate Demand I: Building the IS LM Model Chapter 10 Aggregate Demand I: Building the IS LM Model Zhengyu Cai Ph.D. Institute of Development Southwestern University of Finance and Economics All rights reserved http://www.escience.cn/people/zhengyucai/index.html

More information

Diagnosis of Fuel Evaporative System

Diagnosis of Fuel Evaporative System T S F S 0 6 L A B E X E R C I S E 2 Diagnosis of Fuel Evaporative System April 5, 2017 1 objective The objective with this laboratory exercise is to read, understand, and implement an algorithm described

More information

Design of Experiments Example: A Two-Way Split-Plot Experiment

Design of Experiments Example: A Two-Way Split-Plot Experiment Design of Experiments Example: A Two-Way Split-Plot Experiment A two-way split-plot (also known as strip-plot or split-block) design consists of two split-plot components. In industry, these designs arise

More information

The Effects of Changes in the National Terror Alert Level on Consumer Behavior

The Effects of Changes in the National Terror Alert Level on Consumer Behavior The Effects of Changes in the National Terror Alert Level on Consumer Behavior A thesis submitted to the Miami University Honors Program in partial fulfillment of the requirements for University Honors

More information

The final set in a tennis match: four years at Wimbledon 1

The final set in a tennis match: four years at Wimbledon 1 Published as: Journal of Applied Statistics, Vol. 26, No. 4, 1999, 461-468. The final set in a tennis match: four years at Wimbledon 1 Jan R. Magnus, CentER, Tilburg University, the Netherlands and Franc

More information

Traffic safety developments in Poland

Traffic safety developments in Poland Traffic safety developments in Poland Siem Oppe D-2001-8 Traffic safety developments in Poland A research note D-2001-8 Siem Oppe Leidschendam, 2001 SWOV Institute for Road Safety Research, The Netherlands

More information

Tutorial. BOSfluids. Relief valve

Tutorial. BOSfluids. Relief valve Tutorial Relief valve The Relief valve tutorial describes the theory and modeling process of a pressure relief valve or safety valve. It covers the algorithm BOSfluids uses to model the valve and a worked

More information

Real Time Early Warning Indicators for Costly Asset Price Boom/Bust Cycles: A Role for Global Liquidity

Real Time Early Warning Indicators for Costly Asset Price Boom/Bust Cycles: A Role for Global Liquidity Indicators Asset Price : A Role for Global Liquidity Lucia Alessi European Central Bank Carsten Detken Milan, 24 June 2010 The need for Models The set up of an System is one of the key tasks of the European

More information

Competitive Balance and Attendance

Competitive Balance and Attendance Schmidt, Berri / COMPETITIVE JOURNAL BALANCE OF SPORTS AND ATTENDANCE ECONOMICS / May 2001 Competitive Balance and Attendance The Case of Major League Baseball MARTIN B. SCHMIDT Portland State University

More information

Lab 11: Introduction to Linear Regression

Lab 11: Introduction to Linear Regression Lab 11: Introduction to Linear Regression Batter up The movie Moneyball focuses on the quest for the secret of success in baseball. It follows a low-budget team, the Oakland Athletics, who believed that

More information

Factors Affecting the Probability of Arrests at an NFL Game

Factors Affecting the Probability of Arrests at an NFL Game Factors Affecting the Probability of Arrests at an NFL Game Patrick Brown 1. Introduction Every NFL season comes with its fair share of stories about rowdy fans taking things too far and getting themselves

More information

Predicting Exchange Rates Out of Sample: Can Economic Fundamentals Beat the Random Walk?

Predicting Exchange Rates Out of Sample: Can Economic Fundamentals Beat the Random Walk? Predicting Exchange Rates Out of Sample: Can Economic Fundamentals Beat the Random Walk? Jiahan Li Assistant professor of Statistics University of Notre Dame Joint work with Wei Wang and Ilias Tsiakas

More information

1. Answer this student s question: Is a random sample of 5% of the students at my school large enough, or should I use 10%?

1. Answer this student s question: Is a random sample of 5% of the students at my school large enough, or should I use 10%? Econ 57 Gary Smith Fall 2011 Final Examination (150 minutes) No calculators allowed. Just set up your answers, for example, P = 49/52. BE SURE TO EXPLAIN YOUR REASONING. If you want extra time, you can

More information

Deciding When to Quit: Reference-Dependence over Slot Machine Outcomes

Deciding When to Quit: Reference-Dependence over Slot Machine Outcomes Deciding When to Quit: Reference-Dependence over Slot Machine Outcomes By JAIMIE W. LIEN * AND JIE ZHENG * Lien: Department of Economics, School of Economics and Management, Tsinghua University, Beijing,

More information

A Hare-Lynx Simulation Model

A Hare-Lynx Simulation Model 1 A Hare- Simulation Model What happens to the numbers of hares and lynx when the core of the system is like this? Hares O Balance? S H_Births Hares H_Fertility Area KillsPerHead Fertility Births Figure

More information

Understanding the interest-rate growth differential: its importance in long-term debt projections and for policy

Understanding the interest-rate growth differential: its importance in long-term debt projections and for policy Understanding the interest-rate growth differential: its importance in long-term debt projections and for policy David Turner, OECD UN DESA Expert Group Meeting on the World Economy, LINK Project October

More information

Boyle s Law: Pressure-Volume Relationship in Gases. PRELAB QUESTIONS (Answer on your own notebook paper)

Boyle s Law: Pressure-Volume Relationship in Gases. PRELAB QUESTIONS (Answer on your own notebook paper) Boyle s Law: Pressure-Volume Relationship in Gases Experiment 18 GRADE LEVEL INDICATORS Construct, interpret and apply physical and conceptual models that represent or explain systems, objects, events

More information

Title: Modeling Crossing Behavior of Drivers and Pedestrians at Uncontrolled Intersections and Mid-block Crossings

Title: Modeling Crossing Behavior of Drivers and Pedestrians at Uncontrolled Intersections and Mid-block Crossings Title: Modeling Crossing Behavior of Drivers and Pedestrians at Uncontrolled Intersections and Mid-block Crossings Objectives The goal of this study is to advance the state of the art in understanding

More information

THE LONG-TERM FORECAST FOR RUSSIAN ECONOMY UP TO 2030 (BY VARIANTS) GDP GDP. Moscow Institute of Economic Forecasting RAS

THE LONG-TERM FORECAST FOR RUSSIAN ECONOMY UP TO 2030 (BY VARIANTS) GDP GDP. Moscow Institute of Economic Forecasting RAS THE LONG-TERM FORECAST FOR RUSSIAN ECONOMY UP TO 2030 (BY VARIANTS) GDP GDP 1980 1990 1998 2010 20302 Moscow 2007 Logic of interaction of economic variables in complex of models IEF RAS INCOM OUTPUT RESOURCE

More information

A Hedonic Price Analysis of Risk Preferences in Yearling Thoroughbred Buyers. Xiurui Iris Cui

A Hedonic Price Analysis of Risk Preferences in Yearling Thoroughbred Buyers. Xiurui Iris Cui A Hedonic Price Analysis of Risk Preferences in Yearling Thoroughbred Buyers Xiurui Iris Cui Selected Poster prepared for presentation at the Southern Agricultural Economics Association (SAEA) Annual Meeting,

More information

Boyle s Law: Pressure-Volume Relationship in Gases

Boyle s Law: Pressure-Volume Relationship in Gases Boyle s Law: Pressure-Volume Relationship in Gases The primary objective of this experiment is to determine the relationship between the pressure and volume of a confined gas. The gas we will use is air,

More information

Navigate to the golf data folder and make it your working directory. Load the data by typing

Navigate to the golf data folder and make it your working directory. Load the data by typing Golf Analysis 1.1 Introduction In a round, golfers have a number of choices to make. For a particular shot, is it better to use the longest club available to try to reach the green, or would it be better

More information

Minimum Mean-Square Error (MMSE) and Linear MMSE (LMMSE) Estimation

Minimum Mean-Square Error (MMSE) and Linear MMSE (LMMSE) Estimation Minimum Mean-Square Error (MMSE) and Linear MMSE (LMMSE) Estimation Outline: MMSE estimation, Linear MMSE (LMMSE) estimation, Geometric formulation of LMMSE estimation and orthogonality principle. Reading:

More information

1 Introduction. 2 EAD and Derived Factors

1 Introduction. 2 EAD and Derived Factors Introduction A banking industry standard approach to estimating future unexpected losses to credit portfolios relies on three modeled risk measures: probability of default, loss given default, and exposure

More information

Equation 1: F spring = kx. Where F is the force of the spring, k is the spring constant and x is the displacement of the spring. Equation 2: F = mg

Equation 1: F spring = kx. Where F is the force of the spring, k is the spring constant and x is the displacement of the spring. Equation 2: F = mg 1 Introduction Relationship between Spring Constant and Length of Bungee Cord In this experiment, we aimed to model the behavior of the bungee cord that will be used in the Bungee Challenge. Specifically,

More information

Labor Markets. Chris Edmond NYU Stern. Spring 2007

Labor Markets. Chris Edmond NYU Stern. Spring 2007 Labor Markets Chris Edmond NYU Stern Spring 2007 1 Today Labor market indicators employment, unemployment, participation Labor supply and demand Cross-country comparisons of labor market outcomes Labor

More information

Determination of the Design Load for Structural Safety Assessment against Gas Explosion in Offshore Topside

Determination of the Design Load for Structural Safety Assessment against Gas Explosion in Offshore Topside Determination of the Design Load for Structural Safety Assessment against Gas Explosion in Offshore Topside Migyeong Kim a, Gyusung Kim a, *, Jongjin Jung a and Wooseung Sim a a Advanced Technology Institute,

More information

If you need to reinstall FastBreak Pro you will need to do a complete reinstallation and then install the update.

If you need to reinstall FastBreak Pro you will need to do a complete reinstallation and then install the update. Using this Beta Version of FastBreak Pro First, this new beta version (Version 6.X) will only work with users who have version 5.X of FastBreak Pro. We recommend you read this entire addendum before trying

More information