SlideShare a Scribd company logo
Some basics of time-series
and forecasting
2019 Copyright QuantUniversity LLC.
Presented By:
Gustavo Vicentini,PhD
QuantUniversity
Econometrics Lead
• Gustavo leads Econometrics and Forecasting
programs at QuantUniversity.
• Gustavo worked several years as an economist at
Analysis Group and currently serves as
an associate teaching professor in the Department
of Economics at Northeastern University.
• Gustavo received a PhD in economics from Boston
University.
Gustavo Vicentini, PhD
Econometrics Lead
2
Principles of Econometrics, 4th Edition Page 3
Chapter 9: Regression with Time Series Data:
Stationary Variables
Some basics of time-series
and forecasting
Gustavo Vicentini
Quant University – Econometrics Lead
Principles of Econometrics, 4th Edition Page 4
Chapter 9: Regression with Time Series Data:
Stationary Variables
Introduction (I)
U.S. real GDP growth (Qtr)
Time-series data are widely encountered in macroeconomics, finance, and business
U.S. real GDP (Qtr, millions) 3-year U.S. bond rate Australian inflation rate
U.S. retail auto sales (month) Price of Bitcoin and of Gold
Principles of Econometrics, 4th Edition Page 5
Chapter 9: Regression with Time Series Data:
Stationary Variables
¡ Time-series Econometrics is very useful to analyze time-
series data
¡ Policy analysis
¡ Quantification of monetary policy: If Fed lowers
interest rate this quarter, how is current and future
GDP growth affected?
¡ Forecasting
¡ Using past data on inflation, what is a good
forecast for future inflation?
¡ Before using regression on time-series data, one needs to
test whether the series are stationary or non-stationary
¡ Why? Non-stationary series can give spurious
regression results if not handled properly
Introduction (II)
Principles of Econometrics, 4th Edition Page 6
Chapter 9: Regression with Time Series Data:
Stationary Variables
Modelling stationarity vs non-stationarity (I)
A series is non-stationary if its mean and/or variance are
not constant over time. It either trends (upward or
downward) or it wanders around with slow turns without
necessarily returning to its mean
A series is stationary if its
mean and variance are
constant over time. That is,
the series hovers around its
mean with an equal amount of
variability over time
Principles of Econometrics, 4th Edition Page 7
Chapter 9: Regression with Time Series Data:
Stationary Variables
¡ The AR(1) model (“Auto-Regressive of order 1”) is a
useful univariate model for explaining stationarity vs non-
stationarity
yt = α + ρ yt-1 + vt
¡ vt ~ iid with mean zero and constant variance (σ2
v)
¡ If |ρ| < 1, model is stationary:
E(yt) = α / (1 – ρ) (doesn’t depend on t)
Var(yt) = σ2
v / (1 – ρ2) (doesn’t depend on t)
¡ If ρ = 1, model is non-stationary (unit root, random walk):
E(yt) = t·α + y0 (does depend on t)
Var(yt) = t·σ2
v (does depend on t)
Modelling stationarity vs non-stationarity (II)
Principles of Econometrics, 4th Edition Page 8
Chapter 9: Regression with Time Series Data:
Stationary Variables
¡ Even more general AR(1) model: yt = α + ρ yt-1 + λ t + vt
Modelling stationarity vs non-stationarity (III)
yt = 0.7 yt-1 + vt yt = 1 + 0.7 yt-1 + vt yt = 1 + 0.7 yt-1 + 0.01t + vt
Unit root
Stationary with mean > 0 “Stationary” around a trend
yt = 1· yt-1 + vt
Stationary with mean = 0
yt = 0.1 + 1· yt-1 + vt
Unit root with drift
yt = 0.1 + 1· yt-1 + 0.01t + vt
Unit root with drift and trend
Principles of Econometrics, 4th Edition Page 9
Chapter 9: Regression with Time Series Data:
Stationary Variables
¡ Several simulated unit roots: yt = 1· yt-1 + vt ; vt ~ N(0,1)
¡ Note how the variance of the series depends on time
Modelling stationarity vs non-stationarity (IV)
Principles of Econometrics, 4th Edition Page 10
Chapter 9: Regression with Time Series Data:
Stationary Variables
¡ To test whether a series is stationary or non-stationary
one needs to test whether:
ρ = 1 (non-stationary) vs ρ < 1 (stationary)
¡ This is the Dickey-Fuller test
¡ If non-stationary (ρ = 1), then convert to its stationary
version before analyzing it. Otherwise spurious regression
¡ If series already stationary (ρ < 1), then it’s ready for
regression
¡ For the time being, let’s assume your data are stationary
and “ready” for policy analysis and forecasting
¡ (We’ll return to Dickey-Fuller later)
Modelling stationarity vs non-stationarity (V)
Principles of Econometrics, 4th Edition Page 11
Chapter 9: Regression with Time Series Data:
Stationary Variables
An example of policy analysis:
Monetary policy
Quarterly data on GDP growth (“y” variable) and interest rate (“x”)
How does a change in interest rate now affects GDP growth over time
(i.e., monetary policy)?
Regress y on “q” lagged values of x
yt = β0 + β1 xt-1 + β2 xt-2 + … + βq xt-q + vt
β1 is the one-quarter-ahead effect, β2 is the two-quarters-ahead
effect, and so on
If both y and x stationary, then use OLS regression to estimate the
β’s. This provides a quantification of monetary policy
A lag selection criterion should be used to select “q”
– Popular ones are AIC and BIC (similar to R2)
Can also include “quarter dummies” to control for seasonality
Can also use lagged values of yt to improve fit
Principles of Econometrics, 4th Edition Page 12
Chapter 9: Regression with Time Series Data:
Stationary Variables
An application of policy analysis:
Okun’s Law (I)
Okun’s Law: “U” = unemployment rate; “G” = GDP growth
Change in unemployment depends on how growth deviates from
“normal” growth rate “GN”
Its “econometric” version:
Lags of growth can be included:
If both “DU” and “G” series are stationary, then OLS
regression can be used to estimate the β’s
( )1t t t NU U G Gg-- = - -
0βt t tDU G ea= + +
0 1 1 2 2β β β βt t t t q t q tDU G G G G ea - - -= + + + + + +!
Principles of Econometrics, 4th Edition Page 13
Chapter 9: Regression with Time Series Data:
Stationary Variables
An application of policy analysis:
Okun’s Law (II)
§ Quarterly U.S. data:
“DU ” “G ”
Principles of Econometrics, 4th Edition Page 14
Chapter 9: Regression with Time Series Data:
Stationary Variables
An application of policy analysis:
Okun’s Law (III)
§ OLS regression results:
§ Recall: Number of lags can be selected with AIC or BIC
Principles of Econometrics, 4th Edition Page 15
Chapter 9: Regression with Time Series Data:
Stationary Variables
An example of forecasting:
Monetary policy
After estimating the β’s, then forecast future growth. A
one-quarter-ahead (“T+1”) forecast is ŷT+1:
ŷT+1 = β̂0 + β̂1 xT + β̂2 xT-1 + … + β̂q xT-q+1
The β̂ ’s are the OLS estimates
Then calculate a standard error (S.E.) for the forecast ŷT+1,
and use it to construct a 95% confidence interval for ŷT+1:
95% C.I. for ŷT+1 = ( ŷT+1 – 1.96·SE , ŷT+1 + 1.96·SE )
Could also calculate a two-quarters-ahead forecast and
confidence interval, and so on
Principles of Econometrics, 4th Edition Page 16
Chapter 9: Regression with Time Series Data:
Stationary Variables
An application of forecasting:
Future growth based on past growth (I)
Consider an AR(2) model for real GDP growth:
Gt = β0 + β1 Gt-1 + β2 Gt-2 + vt
Using data from 1986Q1 to 2009Q3, OLS estimates yield:
β̂0 = 0.467 β̂1 = 0.377 β̂2 = 0.246
Given that:
GT = G2009Q3 = 0.8% and GT-1 = G2009Q2 = -0.2%,
The one-quarter-ahead forecast is:
Ĝ2009Q4 = ĜT+1 = β̂0 + β̂1 GT + β̂2 GT-1
Ĝ2009Q4 = ĜT+1 = 0.718%
Principles of Econometrics, 4th Edition Page 17
Chapter 9: Regression with Time Series Data:
Stationary Variables
An application of forecasting:
Future growth based on past growth (II)
The two-quarters-ahead forecast is:
Ĝ2010Q1 = ĜT+2 = β̂0 + β̂1 ĜT+1 + β̂2 GT = 0.933%
And so on into further quarters…
After computing the standard errors, we can tabulate the
forecasts and confidence intervals:
Principles of Econometrics, 4th Edition Page 18
Chapter 9: Regression with Time Series Data:
Stationary Variables
Many economic/finance data are non-stationary (unit root):
If series is non-stationary, it shouldn’t be used (in its “raw” form) in a
regression, because OLS estimator will not behave well
Need to transform into a stationary series and then use that in the
regression
The transformation is just its first-difference: Dyt = yt – yt-1
For example, if both y and x are non-stationary, you should
Use: Dyt = β0 + β1 Dxt + ut And not use: yt = β0 + β1 xt + ut
Handling non-stationary series (I)
3-year U.S. bond rate Bitcoin price U.S. inflation rate
Principles of Econometrics, 4th Edition Page 19
Chapter 9: Regression with Time Series Data:
Stationary Variables
Examples of the first-difference transformation:
Handling non-stationary series (II)
Principles of Econometrics, 4th Edition Page 20
Chapter 9: Regression with Time Series Data:
Stationary Variables
§ Why can’t use “raw” version of non-stationary series in a regression?
Because the potential of “spurious regression”
§ Consider two unit roots that were independently simulated (they are not
related to each other)
§ An OLS regression of rw1 on rw2 yields:
§ These results are statistically significant (t = 40.8 and R2 = 0.70!!), but
completely meaningless, or spurious. The apparent significance is false
Handling non-stationary series (III)
2
1 217.818 0.842 , 0.70
( ) (40.837)
t trw rw R
t
= + =
Principles of Econometrics, 4th Edition Page 21
Chapter 9: Regression with Time Series Data:
Stationary Variables
First thing is to test whether the series is non-stationary
If series is stationary, then work with the series itself
(without taking first-difference)
If series is non-stationary, then work with first-difference
Dickey-Fuller (“DF”) test used to test non-stationarity
Consider again the AR(1) model:
A more convenient form is:
Run this last regression, and test whether γ = 0 or γ < 0
Handling non-stationary series (IV)
1t t ty y v-= r +
( )
1 1 1
1
1
1
t t t t t
t t t
t t
y y y y v
y y v
y v
- - -
-
-
- = r - +
D = r - +
= g +
Principles of Econometrics, 4th Edition Page 22
Chapter 9: Regression with Time Series Data:
Stationary Variables
Dickey-Fuller critical values for γ̂
If γ̂ is less then the critical value(s), we reject the
hypothesis of non-stationarity
Handling non-stationary series (V)
1t t ty y v-= r + ( )
1 1 1
1
1
1
t t t t t
t t t
t t
y y y y v
y y v
y v
- - -
-
-
- = r - +
D = r - +
= g +

More Related Content

What's hot

Panel data
Panel dataPanel data
Distributed lag model
Distributed lag modelDistributed lag model
Distributed lag model
Pawan Kawan
 
Arch & Garch Processes
Arch & Garch ProcessesArch & Garch Processes
Arch & Garch Processes
Francescō Bianchi
 
Autocorrelation
AutocorrelationAutocorrelation
AutocorrelationAkram Ali
 
Time series analysis- Part 2
Time series analysis- Part 2Time series analysis- Part 2
Time series analysis- Part 2
QuantUniversity
 
Basic econometrics lectues_1
Basic econometrics lectues_1Basic econometrics lectues_1
Basic econometrics lectues_1
Nivedita Sharma
 
7 classical assumptions of ordinary least squares
7 classical assumptions of ordinary least squares7 classical assumptions of ordinary least squares
7 classical assumptions of ordinary least squares
Yugesh Dutt Panday
 
Auto Correlation Presentation
Auto Correlation PresentationAuto Correlation Presentation
Auto Correlation Presentation
Irfan Hussain
 
Ch10 slides
Ch10 slidesCh10 slides
Ch10 slides
fentaw leykun
 
Time series Analysis
Time series AnalysisTime series Analysis
Time series Analysis
Mahak Vijayvargiya
 
Regression models for panel data
Regression models for panel dataRegression models for panel data
Regression models for panel data
University of Salerno
 
ders 7.1 VAR.pptx
ders 7.1 VAR.pptxders 7.1 VAR.pptx
ders 7.1 VAR.pptx
Ergin Akalpler
 
Time series and forecasting
Time series and forecastingTime series and forecasting
Time series and forecasting
mvskrishna
 
ders 6 Panel data analysis.pptx
ders 6 Panel data analysis.pptxders 6 Panel data analysis.pptx
ders 6 Panel data analysis.pptx
Ergin Akalpler
 
Arima model (time series)
Arima model (time series)Arima model (time series)
Arima model (time series)
Kumar P
 
Panel Data Models
Panel Data ModelsPanel Data Models
Panel Data Models
Economic Research Forum
 

What's hot (20)

Panel data
Panel dataPanel data
Panel data
 
Distributed lag model
Distributed lag modelDistributed lag model
Distributed lag model
 
Arch & Garch Processes
Arch & Garch ProcessesArch & Garch Processes
Arch & Garch Processes
 
Autocorrelation
AutocorrelationAutocorrelation
Autocorrelation
 
Time series analysis- Part 2
Time series analysis- Part 2Time series analysis- Part 2
Time series analysis- Part 2
 
Basic econometrics lectues_1
Basic econometrics lectues_1Basic econometrics lectues_1
Basic econometrics lectues_1
 
Ch7 slides
Ch7 slidesCh7 slides
Ch7 slides
 
Panel slides
Panel slidesPanel slides
Panel slides
 
7 classical assumptions of ordinary least squares
7 classical assumptions of ordinary least squares7 classical assumptions of ordinary least squares
7 classical assumptions of ordinary least squares
 
Auto Correlation Presentation
Auto Correlation PresentationAuto Correlation Presentation
Auto Correlation Presentation
 
Ch10 slides
Ch10 slidesCh10 slides
Ch10 slides
 
Time series Analysis
Time series AnalysisTime series Analysis
Time series Analysis
 
Regression models for panel data
Regression models for panel dataRegression models for panel data
Regression models for panel data
 
ders 7.1 VAR.pptx
ders 7.1 VAR.pptxders 7.1 VAR.pptx
ders 7.1 VAR.pptx
 
Time series and forecasting
Time series and forecastingTime series and forecasting
Time series and forecasting
 
ders 6 Panel data analysis.pptx
ders 6 Panel data analysis.pptxders 6 Panel data analysis.pptx
ders 6 Panel data analysis.pptx
 
Principles of Econometrics
Principles of Econometrics Principles of Econometrics
Principles of Econometrics
 
Arima model (time series)
Arima model (time series)Arima model (time series)
Arima model (time series)
 
Timeseries forecasting
Timeseries forecastingTimeseries forecasting
Timeseries forecasting
 
Panel Data Models
Panel Data ModelsPanel Data Models
Panel Data Models
 

Similar to Econometrics

Time series mnr
Time series mnrTime series mnr
Time series mnrNH Rao
 
Ch 12 Slides.doc. Introduction of science of business
Ch 12 Slides.doc. Introduction of science of businessCh 12 Slides.doc. Introduction of science of business
Ch 12 Slides.doc. Introduction of science of business
ohenebabismark508
 
INTRODUCTION TO TIME SERIES REGRESSION AND FORCASTING
INTRODUCTION TO TIME SERIES REGRESSION AND FORCASTINGINTRODUCTION TO TIME SERIES REGRESSION AND FORCASTING
INTRODUCTION TO TIME SERIES REGRESSION AND FORCASTING
SPICEGODDESS
 
Session 8 c 8 c oulton-slides (kz)
Session 8 c 8 c   oulton-slides (kz)Session 8 c 8 c   oulton-slides (kz)
Session 8 c 8 c oulton-slides (kz)
IARIW 2014
 
FParaschiv_Davos
FParaschiv_DavosFParaschiv_Davos
FParaschiv_Davos
Global Risk Forum GRFDavos
 
Financial Frictions under Learning
Financial Frictions under LearningFinancial Frictions under Learning
Financial Frictions under Learning
GRAPE
 
Macroeconomics chapter 15
Macroeconomics chapter 15Macroeconomics chapter 15
Macroeconomics chapter 15
MDevSNPT
 
Is the Macroeconomy Locally Unstable and Why Should We Care?
Is the Macroeconomy Locally Unstable and Why Should We Care?Is the Macroeconomy Locally Unstable and Why Should We Care?
Is the Macroeconomy Locally Unstable and Why Should We Care?
ADEMU_Project
 
HW2_Joanne&Yeqi&Danlin
HW2_Joanne&Yeqi&DanlinHW2_Joanne&Yeqi&Danlin
HW2_Joanne&Yeqi&DanlinJuan Du
 
Structural reforms in DSGE models
Structural reforms in DSGE modelsStructural reforms in DSGE models
Structural reforms in DSGE models
Aurelien Poissonnier
 
forecasting
forecastingforecasting
forecasting
RINUSATHYAN
 
Econometrics_ch13.ppt
Econometrics_ch13.pptEconometrics_ch13.ppt
Econometrics_ch13.ppt
ABDULAI3
 
Garch Models in Value-At-Risk Estimation for REIT
Garch Models in Value-At-Risk Estimation for REITGarch Models in Value-At-Risk Estimation for REIT
Garch Models in Value-At-Risk Estimation for REIT
IJERDJOURNAL
 
Forecasting for Economics and Business 1st Edition Gloria Gonzalez Rivera Sol...
Forecasting for Economics and Business 1st Edition Gloria Gonzalez Rivera Sol...Forecasting for Economics and Business 1st Edition Gloria Gonzalez Rivera Sol...
Forecasting for Economics and Business 1st Edition Gloria Gonzalez Rivera Sol...
vacenini
 
Solutions Manual for Forecasting For Economics And Business 1st Edition by Gl...
Solutions Manual for Forecasting For Economics And Business 1st Edition by Gl...Solutions Manual for Forecasting For Economics And Business 1st Edition by Gl...
Solutions Manual for Forecasting For Economics And Business 1st Edition by Gl...
HildaLa
 
IRJET- Analysis of Crucial Oil Gas and Liquid Sensor Statistics and Productio...
IRJET- Analysis of Crucial Oil Gas and Liquid Sensor Statistics and Productio...IRJET- Analysis of Crucial Oil Gas and Liquid Sensor Statistics and Productio...
IRJET- Analysis of Crucial Oil Gas and Liquid Sensor Statistics and Productio...
IRJET Journal
 
Ch8_slides.ppt
Ch8_slides.pptCh8_slides.ppt
Ch8_slides.ppt
QUNHHUNHTRNTRC
 
Exercises.pptx
Exercises.pptxExercises.pptx
Exercises.pptx
akashayosha
 

Similar to Econometrics (20)

Time series mnr
Time series mnrTime series mnr
Time series mnr
 
Ch 12 Slides.doc. Introduction of science of business
Ch 12 Slides.doc. Introduction of science of businessCh 12 Slides.doc. Introduction of science of business
Ch 12 Slides.doc. Introduction of science of business
 
INTRODUCTION TO TIME SERIES REGRESSION AND FORCASTING
INTRODUCTION TO TIME SERIES REGRESSION AND FORCASTINGINTRODUCTION TO TIME SERIES REGRESSION AND FORCASTING
INTRODUCTION TO TIME SERIES REGRESSION AND FORCASTING
 
Session 8 c 8 c oulton-slides (kz)
Session 8 c 8 c   oulton-slides (kz)Session 8 c 8 c   oulton-slides (kz)
Session 8 c 8 c oulton-slides (kz)
 
FParaschiv_Davos
FParaschiv_DavosFParaschiv_Davos
FParaschiv_Davos
 
Financial Frictions under Learning
Financial Frictions under LearningFinancial Frictions under Learning
Financial Frictions under Learning
 
Macroeconomics chapter 15
Macroeconomics chapter 15Macroeconomics chapter 15
Macroeconomics chapter 15
 
Is the Macroeconomy Locally Unstable and Why Should We Care?
Is the Macroeconomy Locally Unstable and Why Should We Care?Is the Macroeconomy Locally Unstable and Why Should We Care?
Is the Macroeconomy Locally Unstable and Why Should We Care?
 
HW2_Joanne&Yeqi&Danlin
HW2_Joanne&Yeqi&DanlinHW2_Joanne&Yeqi&Danlin
HW2_Joanne&Yeqi&Danlin
 
Structural reforms in DSGE models
Structural reforms in DSGE modelsStructural reforms in DSGE models
Structural reforms in DSGE models
 
forecasting
forecastingforecasting
forecasting
 
Econometrics_ch13.ppt
Econometrics_ch13.pptEconometrics_ch13.ppt
Econometrics_ch13.ppt
 
Garch Models in Value-At-Risk Estimation for REIT
Garch Models in Value-At-Risk Estimation for REITGarch Models in Value-At-Risk Estimation for REIT
Garch Models in Value-At-Risk Estimation for REIT
 
Forecasting for Economics and Business 1st Edition Gloria Gonzalez Rivera Sol...
Forecasting for Economics and Business 1st Edition Gloria Gonzalez Rivera Sol...Forecasting for Economics and Business 1st Edition Gloria Gonzalez Rivera Sol...
Forecasting for Economics and Business 1st Edition Gloria Gonzalez Rivera Sol...
 
Solutions Manual for Forecasting For Economics And Business 1st Edition by Gl...
Solutions Manual for Forecasting For Economics And Business 1st Edition by Gl...Solutions Manual for Forecasting For Economics And Business 1st Edition by Gl...
Solutions Manual for Forecasting For Economics And Business 1st Edition by Gl...
 
IRJET- Analysis of Crucial Oil Gas and Liquid Sensor Statistics and Productio...
IRJET- Analysis of Crucial Oil Gas and Liquid Sensor Statistics and Productio...IRJET- Analysis of Crucial Oil Gas and Liquid Sensor Statistics and Productio...
IRJET- Analysis of Crucial Oil Gas and Liquid Sensor Statistics and Productio...
 
Ch8 slides
Ch8 slidesCh8 slides
Ch8 slides
 
Ch8_slides.ppt
Ch8_slides.pptCh8_slides.ppt
Ch8_slides.ppt
 
Ch14_slides.pdf
Ch14_slides.pdfCh14_slides.pdf
Ch14_slides.pdf
 
Exercises.pptx
Exercises.pptxExercises.pptx
Exercises.pptx
 

More from QuantUniversity

EU Artificial Intelligence Act 2024 passed !
EU Artificial Intelligence Act 2024 passed !EU Artificial Intelligence Act 2024 passed !
EU Artificial Intelligence Act 2024 passed !
QuantUniversity
 
Managing-the-Risks-of-LLMs-in-FS-Industry-Roundtable-TruEra-QuantU.pdf
Managing-the-Risks-of-LLMs-in-FS-Industry-Roundtable-TruEra-QuantU.pdfManaging-the-Risks-of-LLMs-in-FS-Industry-Roundtable-TruEra-QuantU.pdf
Managing-the-Risks-of-LLMs-in-FS-Industry-Roundtable-TruEra-QuantU.pdf
QuantUniversity
 
PYTHON AND DATA SCIENCE FOR INVESTMENT PROFESSIONALS
PYTHON AND DATA SCIENCE FOR INVESTMENT PROFESSIONALSPYTHON AND DATA SCIENCE FOR INVESTMENT PROFESSIONALS
PYTHON AND DATA SCIENCE FOR INVESTMENT PROFESSIONALS
QuantUniversity
 
Qu for India - QuantUniversity FundRaiser
Qu for India  - QuantUniversity FundRaiserQu for India  - QuantUniversity FundRaiser
Qu for India - QuantUniversity FundRaiser
QuantUniversity
 
Ml master class for CFA Dallas
Ml master class for CFA DallasMl master class for CFA Dallas
Ml master class for CFA Dallas
QuantUniversity
 
Algorithmic auditing 1.0
Algorithmic auditing 1.0Algorithmic auditing 1.0
Algorithmic auditing 1.0
QuantUniversity
 
Towards Fairer Datasets: Filtering and Balancing the Distribution of the Peop...
Towards Fairer Datasets: Filtering and Balancing the Distribution of the Peop...Towards Fairer Datasets: Filtering and Balancing the Distribution of the Peop...
Towards Fairer Datasets: Filtering and Balancing the Distribution of the Peop...
QuantUniversity
 
Machine Learning: Considerations for Fairly and Transparently Expanding Acces...
Machine Learning: Considerations for Fairly and Transparently Expanding Acces...Machine Learning: Considerations for Fairly and Transparently Expanding Acces...
Machine Learning: Considerations for Fairly and Transparently Expanding Acces...
QuantUniversity
 
Seeing what a gan cannot generate: paper review
Seeing what a gan cannot generate: paper reviewSeeing what a gan cannot generate: paper review
Seeing what a gan cannot generate: paper review
QuantUniversity
 
AI Explainability and Model Risk Management
AI Explainability and Model Risk ManagementAI Explainability and Model Risk Management
AI Explainability and Model Risk Management
QuantUniversity
 
Algorithmic auditing 1.0
Algorithmic auditing 1.0Algorithmic auditing 1.0
Algorithmic auditing 1.0
QuantUniversity
 
Machine Learning in Finance: 10 Things You Need to Know in 2021
Machine Learning in Finance: 10 Things You Need to Know in 2021Machine Learning in Finance: 10 Things You Need to Know in 2021
Machine Learning in Finance: 10 Things You Need to Know in 2021
QuantUniversity
 
Bayesian Portfolio Allocation
Bayesian Portfolio AllocationBayesian Portfolio Allocation
Bayesian Portfolio Allocation
QuantUniversity
 
The API Jungle
The API JungleThe API Jungle
The API Jungle
QuantUniversity
 
Explainable AI Workshop
Explainable AI WorkshopExplainable AI Workshop
Explainable AI Workshop
QuantUniversity
 
Constructing Private Asset Benchmarks
Constructing Private Asset BenchmarksConstructing Private Asset Benchmarks
Constructing Private Asset Benchmarks
QuantUniversity
 
Machine Learning Interpretability
Machine Learning InterpretabilityMachine Learning Interpretability
Machine Learning Interpretability
QuantUniversity
 
Responsible AI in Action
Responsible AI in ActionResponsible AI in Action
Responsible AI in Action
QuantUniversity
 
Qu speaker series 14: Synthetic Data Generation in Finance
Qu speaker series 14: Synthetic Data Generation in FinanceQu speaker series 14: Synthetic Data Generation in Finance
Qu speaker series 14: Synthetic Data Generation in Finance
QuantUniversity
 
Qwafafew meeting 5
Qwafafew meeting 5Qwafafew meeting 5
Qwafafew meeting 5
QuantUniversity
 

More from QuantUniversity (20)

EU Artificial Intelligence Act 2024 passed !
EU Artificial Intelligence Act 2024 passed !EU Artificial Intelligence Act 2024 passed !
EU Artificial Intelligence Act 2024 passed !
 
Managing-the-Risks-of-LLMs-in-FS-Industry-Roundtable-TruEra-QuantU.pdf
Managing-the-Risks-of-LLMs-in-FS-Industry-Roundtable-TruEra-QuantU.pdfManaging-the-Risks-of-LLMs-in-FS-Industry-Roundtable-TruEra-QuantU.pdf
Managing-the-Risks-of-LLMs-in-FS-Industry-Roundtable-TruEra-QuantU.pdf
 
PYTHON AND DATA SCIENCE FOR INVESTMENT PROFESSIONALS
PYTHON AND DATA SCIENCE FOR INVESTMENT PROFESSIONALSPYTHON AND DATA SCIENCE FOR INVESTMENT PROFESSIONALS
PYTHON AND DATA SCIENCE FOR INVESTMENT PROFESSIONALS
 
Qu for India - QuantUniversity FundRaiser
Qu for India  - QuantUniversity FundRaiserQu for India  - QuantUniversity FundRaiser
Qu for India - QuantUniversity FundRaiser
 
Ml master class for CFA Dallas
Ml master class for CFA DallasMl master class for CFA Dallas
Ml master class for CFA Dallas
 
Algorithmic auditing 1.0
Algorithmic auditing 1.0Algorithmic auditing 1.0
Algorithmic auditing 1.0
 
Towards Fairer Datasets: Filtering and Balancing the Distribution of the Peop...
Towards Fairer Datasets: Filtering and Balancing the Distribution of the Peop...Towards Fairer Datasets: Filtering and Balancing the Distribution of the Peop...
Towards Fairer Datasets: Filtering and Balancing the Distribution of the Peop...
 
Machine Learning: Considerations for Fairly and Transparently Expanding Acces...
Machine Learning: Considerations for Fairly and Transparently Expanding Acces...Machine Learning: Considerations for Fairly and Transparently Expanding Acces...
Machine Learning: Considerations for Fairly and Transparently Expanding Acces...
 
Seeing what a gan cannot generate: paper review
Seeing what a gan cannot generate: paper reviewSeeing what a gan cannot generate: paper review
Seeing what a gan cannot generate: paper review
 
AI Explainability and Model Risk Management
AI Explainability and Model Risk ManagementAI Explainability and Model Risk Management
AI Explainability and Model Risk Management
 
Algorithmic auditing 1.0
Algorithmic auditing 1.0Algorithmic auditing 1.0
Algorithmic auditing 1.0
 
Machine Learning in Finance: 10 Things You Need to Know in 2021
Machine Learning in Finance: 10 Things You Need to Know in 2021Machine Learning in Finance: 10 Things You Need to Know in 2021
Machine Learning in Finance: 10 Things You Need to Know in 2021
 
Bayesian Portfolio Allocation
Bayesian Portfolio AllocationBayesian Portfolio Allocation
Bayesian Portfolio Allocation
 
The API Jungle
The API JungleThe API Jungle
The API Jungle
 
Explainable AI Workshop
Explainable AI WorkshopExplainable AI Workshop
Explainable AI Workshop
 
Constructing Private Asset Benchmarks
Constructing Private Asset BenchmarksConstructing Private Asset Benchmarks
Constructing Private Asset Benchmarks
 
Machine Learning Interpretability
Machine Learning InterpretabilityMachine Learning Interpretability
Machine Learning Interpretability
 
Responsible AI in Action
Responsible AI in ActionResponsible AI in Action
Responsible AI in Action
 
Qu speaker series 14: Synthetic Data Generation in Finance
Qu speaker series 14: Synthetic Data Generation in FinanceQu speaker series 14: Synthetic Data Generation in Finance
Qu speaker series 14: Synthetic Data Generation in Finance
 
Qwafafew meeting 5
Qwafafew meeting 5Qwafafew meeting 5
Qwafafew meeting 5
 

Recently uploaded

Ch03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdfCh03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
haila53
 
Adjusting OpenMP PageRank : SHORT REPORT / NOTES
Adjusting OpenMP PageRank : SHORT REPORT / NOTESAdjusting OpenMP PageRank : SHORT REPORT / NOTES
Adjusting OpenMP PageRank : SHORT REPORT / NOTES
Subhajit Sahu
 
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
NABLAS株式会社
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP
 
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
dwreak4tg
 
The Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series DatabaseThe Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series Database
javier ramirez
 
Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)
TravisMalana
 
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
74nqk8xf
 
Nanandann Nilekani's ppt On India's .pdf
Nanandann Nilekani's ppt On India's .pdfNanandann Nilekani's ppt On India's .pdf
Nanandann Nilekani's ppt On India's .pdf
eddie19851
 
Adjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTESAdjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTES
Subhajit Sahu
 
Unleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdf
Unleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdfUnleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdf
Unleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdf
Enterprise Wired
 
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
mbawufebxi
 
My burning issue is homelessness K.C.M.O.
My burning issue is homelessness K.C.M.O.My burning issue is homelessness K.C.M.O.
My burning issue is homelessness K.C.M.O.
rwarrenll
 
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
slg6lamcq
 
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
slg6lamcq
 
The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...
jerlynmaetalle
 
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
ahzuo
 
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
axoqas
 
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
Timothy Spann
 
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdfEnhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
GetInData
 

Recently uploaded (20)

Ch03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdfCh03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
 
Adjusting OpenMP PageRank : SHORT REPORT / NOTES
Adjusting OpenMP PageRank : SHORT REPORT / NOTESAdjusting OpenMP PageRank : SHORT REPORT / NOTES
Adjusting OpenMP PageRank : SHORT REPORT / NOTES
 
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
 
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
 
The Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series DatabaseThe Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series Database
 
Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)
 
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
 
Nanandann Nilekani's ppt On India's .pdf
Nanandann Nilekani's ppt On India's .pdfNanandann Nilekani's ppt On India's .pdf
Nanandann Nilekani's ppt On India's .pdf
 
Adjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTESAdjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTES
 
Unleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdf
Unleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdfUnleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdf
Unleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdf
 
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
 
My burning issue is homelessness K.C.M.O.
My burning issue is homelessness K.C.M.O.My burning issue is homelessness K.C.M.O.
My burning issue is homelessness K.C.M.O.
 
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
 
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
 
The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...
 
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
 
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
 
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
 
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdfEnhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
 

Econometrics

  • 1. Some basics of time-series and forecasting 2019 Copyright QuantUniversity LLC. Presented By: Gustavo Vicentini,PhD QuantUniversity Econometrics Lead
  • 2. • Gustavo leads Econometrics and Forecasting programs at QuantUniversity. • Gustavo worked several years as an economist at Analysis Group and currently serves as an associate teaching professor in the Department of Economics at Northeastern University. • Gustavo received a PhD in economics from Boston University. Gustavo Vicentini, PhD Econometrics Lead 2
  • 3. Principles of Econometrics, 4th Edition Page 3 Chapter 9: Regression with Time Series Data: Stationary Variables Some basics of time-series and forecasting Gustavo Vicentini Quant University – Econometrics Lead
  • 4. Principles of Econometrics, 4th Edition Page 4 Chapter 9: Regression with Time Series Data: Stationary Variables Introduction (I) U.S. real GDP growth (Qtr) Time-series data are widely encountered in macroeconomics, finance, and business U.S. real GDP (Qtr, millions) 3-year U.S. bond rate Australian inflation rate U.S. retail auto sales (month) Price of Bitcoin and of Gold
  • 5. Principles of Econometrics, 4th Edition Page 5 Chapter 9: Regression with Time Series Data: Stationary Variables ¡ Time-series Econometrics is very useful to analyze time- series data ¡ Policy analysis ¡ Quantification of monetary policy: If Fed lowers interest rate this quarter, how is current and future GDP growth affected? ¡ Forecasting ¡ Using past data on inflation, what is a good forecast for future inflation? ¡ Before using regression on time-series data, one needs to test whether the series are stationary or non-stationary ¡ Why? Non-stationary series can give spurious regression results if not handled properly Introduction (II)
  • 6. Principles of Econometrics, 4th Edition Page 6 Chapter 9: Regression with Time Series Data: Stationary Variables Modelling stationarity vs non-stationarity (I) A series is non-stationary if its mean and/or variance are not constant over time. It either trends (upward or downward) or it wanders around with slow turns without necessarily returning to its mean A series is stationary if its mean and variance are constant over time. That is, the series hovers around its mean with an equal amount of variability over time
  • 7. Principles of Econometrics, 4th Edition Page 7 Chapter 9: Regression with Time Series Data: Stationary Variables ¡ The AR(1) model (“Auto-Regressive of order 1”) is a useful univariate model for explaining stationarity vs non- stationarity yt = α + ρ yt-1 + vt ¡ vt ~ iid with mean zero and constant variance (σ2 v) ¡ If |ρ| < 1, model is stationary: E(yt) = α / (1 – ρ) (doesn’t depend on t) Var(yt) = σ2 v / (1 – ρ2) (doesn’t depend on t) ¡ If ρ = 1, model is non-stationary (unit root, random walk): E(yt) = t·α + y0 (does depend on t) Var(yt) = t·σ2 v (does depend on t) Modelling stationarity vs non-stationarity (II)
  • 8. Principles of Econometrics, 4th Edition Page 8 Chapter 9: Regression with Time Series Data: Stationary Variables ¡ Even more general AR(1) model: yt = α + ρ yt-1 + λ t + vt Modelling stationarity vs non-stationarity (III) yt = 0.7 yt-1 + vt yt = 1 + 0.7 yt-1 + vt yt = 1 + 0.7 yt-1 + 0.01t + vt Unit root Stationary with mean > 0 “Stationary” around a trend yt = 1· yt-1 + vt Stationary with mean = 0 yt = 0.1 + 1· yt-1 + vt Unit root with drift yt = 0.1 + 1· yt-1 + 0.01t + vt Unit root with drift and trend
  • 9. Principles of Econometrics, 4th Edition Page 9 Chapter 9: Regression with Time Series Data: Stationary Variables ¡ Several simulated unit roots: yt = 1· yt-1 + vt ; vt ~ N(0,1) ¡ Note how the variance of the series depends on time Modelling stationarity vs non-stationarity (IV)
  • 10. Principles of Econometrics, 4th Edition Page 10 Chapter 9: Regression with Time Series Data: Stationary Variables ¡ To test whether a series is stationary or non-stationary one needs to test whether: ρ = 1 (non-stationary) vs ρ < 1 (stationary) ¡ This is the Dickey-Fuller test ¡ If non-stationary (ρ = 1), then convert to its stationary version before analyzing it. Otherwise spurious regression ¡ If series already stationary (ρ < 1), then it’s ready for regression ¡ For the time being, let’s assume your data are stationary and “ready” for policy analysis and forecasting ¡ (We’ll return to Dickey-Fuller later) Modelling stationarity vs non-stationarity (V)
  • 11. Principles of Econometrics, 4th Edition Page 11 Chapter 9: Regression with Time Series Data: Stationary Variables An example of policy analysis: Monetary policy Quarterly data on GDP growth (“y” variable) and interest rate (“x”) How does a change in interest rate now affects GDP growth over time (i.e., monetary policy)? Regress y on “q” lagged values of x yt = β0 + β1 xt-1 + β2 xt-2 + … + βq xt-q + vt β1 is the one-quarter-ahead effect, β2 is the two-quarters-ahead effect, and so on If both y and x stationary, then use OLS regression to estimate the β’s. This provides a quantification of monetary policy A lag selection criterion should be used to select “q” – Popular ones are AIC and BIC (similar to R2) Can also include “quarter dummies” to control for seasonality Can also use lagged values of yt to improve fit
  • 12. Principles of Econometrics, 4th Edition Page 12 Chapter 9: Regression with Time Series Data: Stationary Variables An application of policy analysis: Okun’s Law (I) Okun’s Law: “U” = unemployment rate; “G” = GDP growth Change in unemployment depends on how growth deviates from “normal” growth rate “GN” Its “econometric” version: Lags of growth can be included: If both “DU” and “G” series are stationary, then OLS regression can be used to estimate the β’s ( )1t t t NU U G Gg-- = - - 0βt t tDU G ea= + + 0 1 1 2 2β β β βt t t t q t q tDU G G G G ea - - -= + + + + + +!
  • 13. Principles of Econometrics, 4th Edition Page 13 Chapter 9: Regression with Time Series Data: Stationary Variables An application of policy analysis: Okun’s Law (II) § Quarterly U.S. data: “DU ” “G ”
  • 14. Principles of Econometrics, 4th Edition Page 14 Chapter 9: Regression with Time Series Data: Stationary Variables An application of policy analysis: Okun’s Law (III) § OLS regression results: § Recall: Number of lags can be selected with AIC or BIC
  • 15. Principles of Econometrics, 4th Edition Page 15 Chapter 9: Regression with Time Series Data: Stationary Variables An example of forecasting: Monetary policy After estimating the β’s, then forecast future growth. A one-quarter-ahead (“T+1”) forecast is ŷT+1: ŷT+1 = β̂0 + β̂1 xT + β̂2 xT-1 + … + β̂q xT-q+1 The β̂ ’s are the OLS estimates Then calculate a standard error (S.E.) for the forecast ŷT+1, and use it to construct a 95% confidence interval for ŷT+1: 95% C.I. for ŷT+1 = ( ŷT+1 – 1.96·SE , ŷT+1 + 1.96·SE ) Could also calculate a two-quarters-ahead forecast and confidence interval, and so on
  • 16. Principles of Econometrics, 4th Edition Page 16 Chapter 9: Regression with Time Series Data: Stationary Variables An application of forecasting: Future growth based on past growth (I) Consider an AR(2) model for real GDP growth: Gt = β0 + β1 Gt-1 + β2 Gt-2 + vt Using data from 1986Q1 to 2009Q3, OLS estimates yield: β̂0 = 0.467 β̂1 = 0.377 β̂2 = 0.246 Given that: GT = G2009Q3 = 0.8% and GT-1 = G2009Q2 = -0.2%, The one-quarter-ahead forecast is: Ĝ2009Q4 = ĜT+1 = β̂0 + β̂1 GT + β̂2 GT-1 Ĝ2009Q4 = ĜT+1 = 0.718%
  • 17. Principles of Econometrics, 4th Edition Page 17 Chapter 9: Regression with Time Series Data: Stationary Variables An application of forecasting: Future growth based on past growth (II) The two-quarters-ahead forecast is: Ĝ2010Q1 = ĜT+2 = β̂0 + β̂1 ĜT+1 + β̂2 GT = 0.933% And so on into further quarters… After computing the standard errors, we can tabulate the forecasts and confidence intervals:
  • 18. Principles of Econometrics, 4th Edition Page 18 Chapter 9: Regression with Time Series Data: Stationary Variables Many economic/finance data are non-stationary (unit root): If series is non-stationary, it shouldn’t be used (in its “raw” form) in a regression, because OLS estimator will not behave well Need to transform into a stationary series and then use that in the regression The transformation is just its first-difference: Dyt = yt – yt-1 For example, if both y and x are non-stationary, you should Use: Dyt = β0 + β1 Dxt + ut And not use: yt = β0 + β1 xt + ut Handling non-stationary series (I) 3-year U.S. bond rate Bitcoin price U.S. inflation rate
  • 19. Principles of Econometrics, 4th Edition Page 19 Chapter 9: Regression with Time Series Data: Stationary Variables Examples of the first-difference transformation: Handling non-stationary series (II)
  • 20. Principles of Econometrics, 4th Edition Page 20 Chapter 9: Regression with Time Series Data: Stationary Variables § Why can’t use “raw” version of non-stationary series in a regression? Because the potential of “spurious regression” § Consider two unit roots that were independently simulated (they are not related to each other) § An OLS regression of rw1 on rw2 yields: § These results are statistically significant (t = 40.8 and R2 = 0.70!!), but completely meaningless, or spurious. The apparent significance is false Handling non-stationary series (III) 2 1 217.818 0.842 , 0.70 ( ) (40.837) t trw rw R t = + =
  • 21. Principles of Econometrics, 4th Edition Page 21 Chapter 9: Regression with Time Series Data: Stationary Variables First thing is to test whether the series is non-stationary If series is stationary, then work with the series itself (without taking first-difference) If series is non-stationary, then work with first-difference Dickey-Fuller (“DF”) test used to test non-stationarity Consider again the AR(1) model: A more convenient form is: Run this last regression, and test whether γ = 0 or γ < 0 Handling non-stationary series (IV) 1t t ty y v-= r + ( ) 1 1 1 1 1 1 t t t t t t t t t t y y y y v y y v y v - - - - - - = r - + D = r - + = g +
  • 22. Principles of Econometrics, 4th Edition Page 22 Chapter 9: Regression with Time Series Data: Stationary Variables Dickey-Fuller critical values for γ̂ If γ̂ is less then the critical value(s), we reject the hypothesis of non-stationarity Handling non-stationary series (V) 1t t ty y v-= r + ( ) 1 1 1 1 1 1 t t t t t t t t t t y y y y v y y v y v - - - - - - = r - + D = r - + = g +