Charles University Charles University STAKAN III

Slides:



Advertisements
Similar presentations
Charles University FSV UK STAKAN III Institute of Economic Studies Faculty of Social Sciences Institute of Economic Studies Faculty of Social Sciences.
Advertisements

Differential Equations Brannan Copyright © 2010 by John Wiley & Sons, Inc. All rights reserved. Chapter 08: Series Solutions of Second Order Linear Equations.
1 12. Principles of Parameter Estimation The purpose of this lecture is to illustrate the usefulness of the various concepts introduced and studied in.
Econ 140 Lecture 81 Classical Regression II Lecture 8.
© 2010 Pearson Prentice Hall. All rights reserved Least Squares Regression Models.
Lecture 23: Tues., Dec. 2 Today: Thursday:
4. Multiple Regression Analysis: Estimation -Most econometric regressions are motivated by a question -ie: Do Canadian Heritage commercials have a positive.
Chapter 11 Multiple Regression.
Ordinary least squares regression (OLS)
Inference about a Mean Part II
Copyright ©2006 Brooks/Cole, a division of Thomson Learning, Inc. More About Regression Chapter 14.
Binary Variables (1) Coin flipping: heads=1, tails=0 Bernoulli Distribution.
Computational Methods in Physics PHYS 3437 Dr Rob Thacker Dept of Astronomy & Physics (MM-301C)
Charles University FSV UK STAKAN III Institute of Economic Studies Faculty of Social Sciences Institute of Economic Studies Faculty of Social Sciences.
Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Chapter Inference on the Least-Squares Regression Model and Multiple Regression 14.
Chapter 15 Modeling of Data. Statistics of Data Mean (or average): Variance: Median: a value x j such that half of the data are bigger than it, and half.
Charles University FSV UK STAKAN III Institute of Economic Studies Faculty of Social Sciences Institute of Economic Studies Faculty of Social Sciences.
What is the MPC?. Learning Objectives 1.Use linear regression to establish the relationship between two variables 2.Show that the line is the line of.
Charles University FSV UK STAKAN III Institute of Economic Studies Faculty of Social Sciences Institute of Economic Studies Faculty of Social Sciences.
CS433: Modeling and Simulation Dr. Anis Koubâa Al-Imam Mohammad bin Saud University 15 October 2010 Lecture 05: Statistical Analysis Tools.
Charles University FSV UK STAKAN III Institute of Economic Studies Faculty of Social Sciences Institute of Economic Studies Faculty of Social Sciences.
Univariate Linear Regression Problem Model: Y=  0 +  1 X+  Test: H 0 : β 1 =0. Alternative: H 1 : β 1 >0. The distribution of Y is normal under both.
© Copyright McGraw-Hill Correlation and Regression CHAPTER 10.
PROBABILITY AND STATISTICS FOR ENGINEERING Hossein Sameti Department of Computer Engineering Sharif University of Technology Principles of Parameter Estimation.
Charles University FSV UK STAKAN III Institute of Economic Studies Faculty of Social Sciences Institute of Economic Studies Faculty of Social Sciences.
Founded 1348Charles University
Charles University FSV UK STAKAN III Institute of Economic Studies Faculty of Social Sciences Institute of Economic Studies Faculty of Social Sciences.
11 Chapter 5 The Research Process – Hypothesis Development – (Stage 4 in Research Process) © 2009 John Wiley & Sons Ltd.
Charles University FSV UK STAKAN III Institute of Economic Studies Faculty of Social Sciences Institute of Economic Studies Faculty of Social Sciences.
Charles University FSV UK STAKAN III Institute of Economic Studies Faculty of Social Sciences Institute of Economic Studies Faculty of Social Sciences.
Lecture 8: Ordinary Least Squares Estimation BUEC 333 Summer 2009 Simon Woodcock.
Moment Problem and Density Questions Akio Arimoto Mini-Workshop on Applied Analysis and Applied Probability March 24-25,2010 at National Taiwan University.
Colorado Center for Astrodynamics Research The University of Colorado 1 STATISTICAL ORBIT DETERMINATION Statistical Interpretation of Least Squares ASEN.
Charles University FSV UK STAKAN III Institute of Economic Studies Faculty of Social Sciences Institute of Economic Studies Faculty of Social Sciences.
Advanced Algorithms Analysis and Design By Dr. Nazir Ahmad Zafar Dr Nazir A. Zafar Advanced Algorithms Analysis and Design.
PATTERN RECOGNITION AND MACHINE LEARNING CHAPTER 1: INTRODUCTION.
Heteroscedasticity Heteroscedasticity is present if the variance of the error term is not a constant. This is most commonly a problem when dealing with.
Multiple Regression Analysis: Inference
Time Series Econometrics
5.1 Exponential Functions
Virtual University of Pakistan
Lecture #25 Tuesday, November 15, 2016 Textbook: 14.1 and 14.3
32931 Technology Research Methods Autumn 2017 Quantitative Research Component Topic 4: Bivariate Analysis (Contingency Analysis and Regression Analysis)
Linear Regression with One Regression
Charles University Charles University STAKAN III
DTC Quantitative Methods Bivariate Analysis: t-tests and Analysis of Variance (ANOVA) Thursday 20th February 2014  
12. Principles of Parameter Estimation
Hypothesis Testing and Confidence Intervals (Part 1): Using the Standard Normal Lecture 8 Justin Kern October 10 and 12, 2017.
Simple Linear Regression
Charles University Charles University STAKAN III
...Relax... 9/21/2018 ST3131, Lecture 3 ST5213 Semester II, 2000/2001
Correlation and Regression
Hidden Markov Models Part 2: Algorithms
Objective of This Course
The Curve Merger (Dvir & Widgerson, 2008)
Charles University Charles University STAKAN III
Charles University Charles University STAKAN III
Tutorial 1: Misspecification
Charles University Charles University STAKAN III
Virtual University of Pakistan
Chapter 7: The Normality Assumption and Inference with OLS
Seminar in Economics Econ. 470
Product moment correlation
Charles University Charles University STAKAN III
12. Principles of Parameter Estimation
16. Mean Square Estimation
MGS 3100 Business Analysis Regression Feb 18, 2016
Statistical inference for the slope and intercept in SLR
Presentation transcript:

Charles University Charles University STAKAN III Tuesday, 12.30 – 13.50 Charles University Charles University Econometrics Econometrics Jan Ámos Víšek Jan Ámos Víšek FSV UK Institute of Economic Studies Faculty of Social Sciences Institute of Economic Studies Faculty of Social Sciences STAKAN III Second Lecture (summer term)

Schedule of today talk Recapitulating last lecture Smoothing time series • Exponential smoothing • Exponential smoothing (of the first, the second and the third order) • Tests of randomness • Intervention analysis • Spectral analysis

Exponential smoothing “Exponential” indicates that the past values of the time series are weighted down in an exponential rate. In fact, we approximate the time series by a polynomial of order k and the weights for the past values are for some . Exponential smoothing of the first order, i.e. k=1 Notice, no assumptions about decomposition of Normal equation (notice please, that )

Exponential smoothing continued (1) It means that the smoothed value can be evaluated recurrently. Algorithm: i) For some initial values evaluate mean and put . ii) Start recurrent evaluation as in . (1) iii) Predict any for small but for .

Exponential smoothing continued Optimality of . The following approach was usually advised: Start with , about which you assume, due some ex- periences, that is optimal. In every step evaluate next approxima- tion for . Finally, evaluate and select that for which is the smallest. In practice, it means that at every step we take into account that for which is smallest. So, the algorithm is adaptive to the time series. Nowadays, due to new computational technique you can invent a lot of much more sophisticated approaches.

Exponential smoothing continued Exponential smoothing of the second order, i.e. k=2 Solving normal equations we arrive at

Exponential smoothing of the second order continued of the second order and we may predict by . Notice that we have again , i.e. the smoothed value of the time series is given by intercept of the regression model but present is different from evaluated in the ex- ponential smoothing of the first order !! Exponential smoothing of the third order, i.e. k=3

Exponential smoothing of the third order, i.e. k=3 continued Exponential smoothing of the third order, i.e. k=3 Technicalities are, of course, a bit more complicated than in the previous cases but manageable on PC: From some n initial values of time series we evaluate, just using OLS estimates of and . Then we put

Exponential smoothing of the third order, i.e. k=3 continued Exponential smoothing of the third order, i.e. k=3 Then , , , and .

Smoothing time series Remember, we have assumed How we can learn that we have extracted properly all terms ? Let us assume for a while that and that we have properly extracted all term. Then is approximately the sequence of i.i.d. r.v.’s. So, we should test the sequence whether it is (approximately) i.i.d. ! Moreover, remember, how we tested normality in linear regression model (and “cancel” the word “approximately”)!

Test based on signs of differences of residuals Tests of randomness Test based on signs of differences of residuals Put and . Our plan is: We shall find distribution function of ‘s, prove that they are i.i.d. (except of neighbors), find their moment and employ CLT. (Wolfowitz (1944)) If we assumed the d.f. of ‘s absolutely continuous, So, we need to evaluate

Test based on signs of differences of residuals continued Tests of randomness Test based on signs of differences of residuals , that is what we need evaluate. (After all, the common sense gives the same hint.) Finally and .

Test based on signs of differences of residuals continued Tests of randomness Test based on signs of differences of residuals So (notice that we assume that we have observations from 1 to T , we have for t from 1 to T-1) . Now, we need . Notice that .

Test based on signs of differences of residuals continued Tests of randomness Test based on signs of differences of residuals So, we need to evaluate . So, we have to find , two cases: either . or For , and are evidently independent, hence , notice again that we don’t need etc. .

Test based on signs of differences of residuals continued Tests of randomness Test based on signs of differences of residuals Prior to looking for the probability for , let us find how many cases we have for . For possibilities, possibilities, possibilities, possibilities. Totally, we have possibilities.

Test based on signs of differences of residuals continued Tests of randomness Test based on signs of differences of residuals So . For , we can assume (without loss of generality) , = ½ Is to be evaluated.

Test based on signs of differences of residuals continued Tests of randomness Test based on signs of differences of residuals . Finally, . The sum has terms, hence Finally, we have

Test based on signs of differences of residuals continued Tests of randomness Test based on signs of differences of residuals So, we have find that , i.e. if we reject the hypothesis about randomness of residuals at a% significance level.

Test based on number of points of reverses continued Tests of randomness Test based on number of points of reverses Upper , lower reverse. r – number of (upper and lower) reverses . Finally, + corresponding test.

Intervention analysis Let us recall once again that we have assumed - irregular part, representing some nonstochastic, rarely occurring events (oil-shocks, terrorist attacks, wars, etc.) There are several possibilities: 1) At the “suspicious” point, say , we put , 2) from the “suspicious” point , we put .

Intervention analysis continued Intervention analysis How to test that the intervention is significant ? Explanation by standard regression analysis: Assume model Assume model (RESTRICTED) with and as an alternative one (UNRESTRICTED) with and employ which has (asymptotically) distribution. (S2 … sum of squared residuals)

Intervention analysis continued Intervention analysis How to test that the intervention is significant ? An alternative possibility: Assume model (RESTRICTED) with and as an alternative one (UNRESTRICTED) with and employ q columns which has (asymptotically) distribution.

Intervention analysis continued Intervention analysis How to test that the intervention is significant ? In the same way we may test the significance of the estimated value(s) of the irregular term , just evaluating F statistic and comparing it with the corresponding F-quantile.

Spectral analysis of time series The main idea is based on representation of function by Fourier series (we shall restrict ourselves on this idea). Any real function of real argument can be assumed to be a vector with such number of coordinates as is the number of real numbers. - the vector space of functions , which are squared integrable, i.e. the integral is finite. We are used that the base of the vector space contains number of vectors equal to the dimension of given space (which is equal to the number of coordinates of every vector).

Spectral analysis of time series continued Spectral analysis of time series However has countable base, i.e. there is a system of functions such that for any there is a sequence of real numbers such that . Theorem. The system of complex functions ( where i is the imaginary unit ) is orthonormal complete system in . We shall not prove that it is complete but we show that it is orthonormal.

Spectral analysis of time series continued Spectral analysis of time series To show that the elements of the base are orthonormal, we need to find that Recall that For this is everywhere

Spectral analysis of time series continued Spectral analysis of time series as follows from the antisymmetry of sin(x), i.e. that sin(-x) = -sin(x) For .

Spectral analysis of time series continued Spectral analysis of time series Consider a function . From the Theorem we know that there is a sequence of real numbers such that . Moreover, it is possible to prove that . How to find coefficients of Fourier expansion? The answer is surprisingly simple!

Spectral analysis of time series continued Spectral analysis of time series Evaluate for a fixed where is the complex-conjugate function to , i.e. e.g. the function to the function .

Spectral analysis of time series continued Spectral analysis of time series Having values of time series, say , we evaluate empirical counterparts to as for all for which where is a priori assigned constant, determining preciseness of smoothing. Finally we put .

What is to be learnt from this lecture for exam ? • Time series - exponential smoothing - the first order, - the second order, - the third order. • Tests of randomness • Intervention analysis • Spectral analysis All what you need is on http://samba.fsv.cuni.cz/~visek/