SlideShare ist ein Scribd-Unternehmen logo
1 von 27
Downloaden Sie, um offline zu lesen
Time Series Analysis Workshop
2018 Copyright QuantUniversity LLC.
Presented By:
Sri Krishnamurthy, CFA, CAP
sri@quantuniversity.com
www.quantuniversity.com
12/20/2018
QuantUniversity Meetup
Boston
2
About us:
• Data Science, Quant Finance and
Model Governance Advisory
• Technologies using MATLAB, Python
and R
• Programs
▫ Analytics Certificate Program
▫ Fintech programs
• Platform
3
Our programs
www.analyticscertificate.com
• Founder of QuantUniversity LLC. and
www.analyticscertificate.com
• Advisory and Consultancy for Financial Analytics
• Prior Experience at MathWorks, Citigroup and
Endeca and 25+ financial services and energy
customers.
• Regular Columnist for the Wilmott Magazine
• Author of forthcoming book
“Financial Modeling: A case study approach”
published by Wiley
• Charted Financial Analyst and Certified Analytics
Professional
• Teaches Analytics in the Babson College MBA
program and at Northeastern University, Boston
Sri Krishnamurthy
Founder and CEO
4
5
• 2-day Advances in Time series Workshop
▫ Febraury - TBD
▫ Stay tuned for details at www.analyticscertificate.com
• 2-day Machine Learning in Finance Workshop
▫ Jan 23rd & 24th
▫ Register at www.analyticscertificate.com/MachineLearning
Upcoming events
6
Slides will be available at:
https://researchhub.qusandbox.com
7
Dr. Gustavo Vicentini
• PhD in economics from Boston
University
• Associate teaching professor in the
Department of Economics at
Northeastern University
• Teaches courses at Northeastern
University, Harvard University and
Boston College
• Prior experience at Analysis Group, An
economic consulting
Gustavo Vincentini, PhD
QuantUniversity Fellow
8
Principles of Econometrics, 4th Edition Page 9
Chapter 9: Regression with Time Series Data:
Stationary Variables
¡ Time-series data are widely encountered in macroeconomics
and finance
¡ “quarterly U.S. real GDP per capita” Q1’81 – Q4’17
¡ “yearly unemployment rate in MA” 1973 – 2017
¡ “daily closing Google stock price” 1/1/08 – 12/30/16
¡ Econometrics is very useful when analyzing time-series data
¡ Policy analysis
¡ If Fed decreases interest rate this quarter, how is current
and future GDP growth affected?
¡ Forecasting
¡ What is a good forecast for inflation rate next quarter?
¡ Before using regression on time-series data, one needs to check
whether the series are stationary or non-stationary
Introduction
Principles of Econometrics, 4th Edition Page 10
Chapter 9: Regression with Time Series Data:
Stationary Variables
Examples of stationary vs non-stationary data
Stationary Non-stationary Non-stationary
First thing to do is to test if series is non-stationary. If it is non-stationary, then need to convert it
to its stationary version before using it in regression analysis. (How to test for non-stationarity will
be addressed later.) If series is already stationary, then it’s ready for analysis. For the time being,
let’s assume that your data are stationary and “ready” for OLS regression analysis
A series is stationary if it
hovers around its mean.
A series is non-stationary if it
either trends (upward or
downward) or it wanders
around with slow turns and
without necessarily returning to
its mean.
Principles of Econometrics, 4th Edition Page 11
Chapter 9: Regression with Time Series Data:
Stationary Variables
Using time-series econometrics
for policy analysis
Suppose you have data on quarterly real GDP growth rate (“y”
variable) and quarterly interest rate (“x” variable). Assume both
series are stationary (and therefore ready for regression analysis)
One may hypothesize that a decrease in interest rate now would affect
not only current but also future GDP growth (i.e., monetary policy)
This hypothesis can be tested by a regression model in which y
depends on current and “q” lagged values of x
This model is of primary interest to central banks (e.g., the Fed). For
example, β0 is the effect of a change in interest rate on current
growth, while β2 is the effect two quarters into the future
If both the x and y series are stationary, then one can use OLS
regression to estimate the β’s. This would provide a quantification of
the effect of monetary policy on economic growth over time
A lag selection criterion, such as the BIC (“Bayes Information
Criterion”), can be used to select the optimal “q”
0 1 1 2 2t t t t q t q ty x x x x e- - -= a +b +b +b + +b +!
Principles of Econometrics, 4th Edition Page 12
Chapter 9: Regression with Time Series Data:
Stationary Variables
Using time-series econometrics
for forecasting
After running the OLS regression and estimating the β’s, one can
forecast future GDP growth. For example, if “T” is current
quarter, then a one-quarter-ahead (“T+1”) forecast for growth
is:
(Note how one would also need a forecast for xT+1)
One can then calculate a standard error for the forecast yT+1,
and then use it to construct a 95% confidence interval for yT+1.
The narrower the confidence interval, the more confident you are
on your forecast
One could also calculate, for example, a two-quarters-ahead
forecast and confidence interval
1 0 1 1 2 1 1 1T T T T q T q Ty x x x x e+ + - - + += a +b +b +b + +b +!
Principles of Econometrics, 4th Edition Page 13
Chapter 9: Regression with Time Series Data:
Stationary Variables
An application of policy analysis:
Okun’s Law (I)
Consider the “theoretical” version of Okun’s Law, where “U” is
unemployment rate and “G” is GDP growth rate
The change in unemployment rate depends on how the growth rate
deviates from a “normal” growth rate “GN”
It can be re-written into its “econometric” version:
where: DU = Ut – Ut-1 , β0 = –γ , and α = γGN
Lags of growth can be included:
If both the “DU” and the “G” series are stationary, then OLS
regression can be applied to estimate the coefficients
( )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 14
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 15
Chapter 9: Regression with Time Series Data:
Stationary Variables
An application of policy analysis:
Okun’s Law (III)
§ OLS regression results:
§ Recall: “Optimal” number of lags can be selected with BIC
Principles of Econometrics, 4th Edition Page 16
Chapter 9: Regression with Time Series Data:
Stationary Variables
Estimation when the error terms
are serially correlated (I)
§ Many economic time-series are serially correlated. (Also called
“auto” correlated.) That is, if its current value is relatively high
(low), then its next period’s value is also likely to be high (low).
For example, U.S. quarterly real GDP growth (“G”)
§ This serial correlation can be quantified by calculating the
correlation coefficient between, Gt and Gt-1, labeled “r1”
§ Correlation coefficients always fall between -1 and +1.
§ One can also calculate the correlation between Gt and Gt-2,
labeled “r2”, and so on…
Principles of Econometrics, 4th Edition Page 17
Chapter 9: Regression with Time Series Data:
Stationary Variables
Estimation when the error terms
are serially correlated (II)
§ The correlation coefficients r1, r2, r3, etc, can also be calculated and
visualized with a correlogram. For example, for growth rate G:
§ The solid lines at 0.2 and -0.2 delineate thresholds for correlation
coefficients that are statistically different from zero. For example, current
growth is correlated with last-period’s growth and two-periods-ago growth
1 2 3 40.494 0.411 0.154 0.200r r r r= = = =
Principles of Econometrics, 4th Edition Page 18
Chapter 9: Regression with Time Series Data:
Stationary Variables
Estimation when the error terms
are serially correlated (III)
§ Serial correlation becomes an issue in econometrics when the error terms are serially
correlated
§ Consider another economic example, the Phillips Curve
§ Assume inflationary expectations (INFE
t) are constant over time (β1 = INFE
t), set β2= –γ, and
add an error term:
§ One way to check if et and et-1 are serially correlated is to run an OLS regression of INFt on
DUt , collect the residuals after the regression:
§ And then plot correlogram for residuals:
( )1γE
t t t tINF INF U U -= - -
1 2β βt t tINF DU e= + +
1 2
ˆt t te INF b b DU= - - +
Principles of Econometrics, 4th Edition Page 19
Chapter 9: Regression with Time Series Data:
Stationary Variables
Estimation when the error terms
are serially correlated (IV)
§ So, what is the “issue” when the errors are serially correlated?
§ The estimated β2 from the OLS regression is unbiased, which is a desirable thing. However,
the typically reported “regular” standard errors are no longer valid, and typically smaller
then they should be.
§ What to do? There are two potential solutions:
1) Use “proper” standard errors that accommodate the serial correlation in the error
terms, called “HAC” standard errors (Heteroskedasticity- and AutoCorrelation-robust
standard errors)
2) Include lagged values of the INF variable and/or further lagged values of the DU
variable in the OLS regression until the serial correlation in the residuals disappears.
For example, including a lagged INFt-1:
( ) ( ) ( )
( ) ( ) ( )
0.7776 0.5279
0.0658 0.2294 incorrect se
0.1030 0.3127 HAC se
INF DU= -
( ) ( ) ( ) ( )
10.3548 0.5282 0.4909
0.0876 0.0851 0.1921
t t tINF INF DU
se
-= + -
Principles of Econometrics, 4th Edition Page 20
Chapter 9: Regression with Time Series Data:
Stationary Variables
§ What does it mean for a y series to be non-stationary? The most common type of non-
stationarity in time-series is a unit root, which is a series that “wanders around”
aimlessly (and with “slow turns”) without possibly never returning to its mean. Visually:
§ Many macroeconomic series are non-stationary (e.g., inflation rate, exchange rates)
§ If a series y (or x) is non-stationary, then one should not use it (in its “raw” form) in an
OLS regression, because the OLS estimator does not behave well in such case.
§ Instead, one should first transform it into a stationary version of itself and then use that
version in a regression. The transformation is quite simple: Just take the first-difference of
the series, Dyt = yt – yt-1, and use it in the OLS regression. (Dyt is stationary.)
§ 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
Non-stationary time series (I)
Principles of Econometrics, 4th Edition Page 21
Chapter 9: Regression with Time Series Data:
Stationary Variables
§ So why can’t we use the “raw” version of a non-stationary series in an
OLS regression? Because you may find a spurious result in your OLS
regression. This issue is termed “spurious regression”
§ For example, consider these two unit roots that were independently
simulated. In other words, 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
Non-stationary time series (II)
2
1 217.818 0.842 , 0.70
( ) (40.837)
t trw rw R
t
= + =
Principles of Econometrics, 4th Edition Page 22
Chapter 9: Regression with Time Series Data:
Stationary Variables
§ Therefore, the first thing one should do when working
with a time-series is to test whether it is non-stationary
or stationary
§ If the series is found to be stationary, then you should
work with the series itself (without taking its first-
difference)
§ If the series is found to be non-stationary, then you
should work with its first-difference in regression
analysis
§ The most commonly used test for stationarity of a series is
the Dickey-Fuller (“DF”) test
Non-stationary time series (III)
23
1. Acceptance of the Open Source world
2. Data Science is a need-to-have skill
3. AI and ML taken seriously
4. Major innovations in Deep Learning and Reinforcement Learning
5. Limitations in Deep Learning and Chatbots recognized
6. AutoML maturing
7. Analytics back in demand
8. Realization that clean and labeled data is king!
9. AI, ML ops leveraging advances in Devops
10. Realization that AI and ML is not simple
Top 10 developments in 2018
24
1. Every organization thinking of an AI strategy
2. AI and ML operationalized
3. Reproducibility, Replicability, Model Governance
4. Bias, Interpretability, Auditability, Explainability
5. More innovations in applied Machine Learning – From research
labs to enterprises
What’s coming in 2019
25
• QuSandbox launch!
• Analytics Certificate 9 week program in Spring 2019
• More courses
▫ AI & ML in Finance
▫ Time Series Analysis Workshop
▫ Anomaly Detection
▫ Fintech 101
QuantUniversity in 2019
26
www.QuSandbox.com
Model
Analytics
Studio
QuResearchHub
QuSandbox
Prototype, Iterate and tune Standardize workflows
Productionize and share
Sri Krishnamurthy, CFA, CAP
Founder and Chief Data Scientist
sri@quantuniversity.com
srikrishnamurthy
www.QuantUniversity.com
www.analyticscertificate.com
www.qusandbox.com
Information, data and drawings embodied in this presentation are strictly a property of QuantUniversity LLC. and shall not be
distributed or used in any other publication without the prior written consent of QuantUniversity LLC.
27

Weitere ähnliche Inhalte

Was ist angesagt? (20)

Forecasting with Vector Autoregression
Forecasting with Vector AutoregressionForecasting with Vector Autoregression
Forecasting with Vector Autoregression
 
Lesson 2 stationary_time_series
Lesson 2 stationary_time_seriesLesson 2 stationary_time_series
Lesson 2 stationary_time_series
 
Timeseries forecasting
Timeseries forecastingTimeseries forecasting
Timeseries forecasting
 
time series analysis
time series analysistime series analysis
time series analysis
 
Time Series - Auto Regressive Models
Time Series - Auto Regressive ModelsTime Series - Auto Regressive Models
Time Series - Auto Regressive Models
 
Chapter8
Chapter8Chapter8
Chapter8
 
ARIMA
ARIMA ARIMA
ARIMA
 
Time series
Time seriesTime series
Time series
 
Time series Analysis
Time series AnalysisTime series Analysis
Time series Analysis
 
Autocorrelation
AutocorrelationAutocorrelation
Autocorrelation
 
Time series slideshare
Time series slideshareTime series slideshare
Time series slideshare
 
Time Series Analysis.pptx
Time Series Analysis.pptxTime Series Analysis.pptx
Time Series Analysis.pptx
 
Rules for identification
Rules for identificationRules for identification
Rules for identification
 
Ols
OlsOls
Ols
 
Heteroskedasticity
HeteroskedasticityHeteroskedasticity
Heteroskedasticity
 
Heteroscedasticity
HeteroscedasticityHeteroscedasticity
Heteroscedasticity
 
Cointegration and error correction model
Cointegration and error correction modelCointegration and error correction model
Cointegration and error correction model
 
Multicollinearity PPT
Multicollinearity PPTMulticollinearity PPT
Multicollinearity PPT
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
 
Regression analysis in R
Regression analysis in RRegression analysis in R
Regression analysis in R
 

Ähnlich wie Time series analysis- Part 2

Customer Lifetime Value Modeling
Customer Lifetime Value ModelingCustomer Lifetime Value Modeling
Customer Lifetime Value ModelingAsoka Korale
 
Managerial Economics (Chapter 5 - Demand Estimation)
 Managerial Economics (Chapter 5 - Demand Estimation) Managerial Economics (Chapter 5 - Demand Estimation)
Managerial Economics (Chapter 5 - Demand Estimation)Nurul Shareena Misran
 
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
 
Time series mnr
Time series mnrTime series mnr
Time series mnrNH Rao
 
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
 
Eco550 Assignment 1
Eco550 Assignment 1Eco550 Assignment 1
Eco550 Assignment 1Lisa Kennedy
 
Production & Operation Management Chapter8[1]
Production & Operation Management Chapter8[1]Production & Operation Management Chapter8[1]
Production & Operation Management Chapter8[1]Hariharan Ponnusamy
 
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
 
QuantitativeDecisionMaking
QuantitativeDecisionMakingQuantitativeDecisionMaking
QuantitativeDecisionMakingEik Den Yeoh
 
Multivariate analysis of the impact of the commercial banks on the economic g...
Multivariate analysis of the impact of the commercial banks on the economic g...Multivariate analysis of the impact of the commercial banks on the economic g...
Multivariate analysis of the impact of the commercial banks on the economic g...Alexander Decker
 
Advanced Econometrics L1-2.pptx
Advanced Econometrics L1-2.pptxAdvanced Econometrics L1-2.pptx
Advanced Econometrics L1-2.pptxakashayosha
 
Data Quality Considerations for CECL Measurement
Data Quality Considerations for CECL MeasurementData Quality Considerations for CECL Measurement
Data Quality Considerations for CECL MeasurementLibby Bierman
 
Projection and Alignment Methods for Static Microsimulation Models
Projection and Alignment Methods for Static Microsimulation ModelsProjection and Alignment Methods for Static Microsimulation Models
Projection and Alignment Methods for Static Microsimulation ModelsCongressional Budget Office
 

Ähnlich wie Time series analysis- Part 2 (20)

Econometrics
EconometricsEconometrics
Econometrics
 
Customer Lifetime Value Modeling
Customer Lifetime Value ModelingCustomer Lifetime Value Modeling
Customer Lifetime Value Modeling
 
Managerial Economics (Chapter 5 - Demand Estimation)
 Managerial Economics (Chapter 5 - Demand Estimation) Managerial Economics (Chapter 5 - Demand Estimation)
Managerial Economics (Chapter 5 - Demand Estimation)
 
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...
 
Time series mnr
Time series mnrTime series mnr
Time series mnr
 
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...
 
Eco550 Assignment 1
Eco550 Assignment 1Eco550 Assignment 1
Eco550 Assignment 1
 
Production & Operation Management Chapter8[1]
Production & Operation Management Chapter8[1]Production & Operation Management Chapter8[1]
Production & Operation Management Chapter8[1]
 
Chapter8[1]
Chapter8[1]Chapter8[1]
Chapter8[1]
 
Qwertyui
QwertyuiQwertyui
Qwertyui
 
Chap011
Chap011Chap011
Chap011
 
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...
 
QuantitativeDecisionMaking
QuantitativeDecisionMakingQuantitativeDecisionMaking
QuantitativeDecisionMaking
 
Multivariate analysis of the impact of the commercial banks on the economic g...
Multivariate analysis of the impact of the commercial banks on the economic g...Multivariate analysis of the impact of the commercial banks on the economic g...
Multivariate analysis of the impact of the commercial banks on the economic g...
 
Advanced Econometrics L1-2.pptx
Advanced Econometrics L1-2.pptxAdvanced Econometrics L1-2.pptx
Advanced Econometrics L1-2.pptx
 
Data Quality Considerations for CECL Measurement
Data Quality Considerations for CECL MeasurementData Quality Considerations for CECL Measurement
Data Quality Considerations for CECL Measurement
 
Bivariate Regression
Bivariate RegressionBivariate Regression
Bivariate Regression
 
Projection and Alignment Methods for Static Microsimulation Models
Projection and Alignment Methods for Static Microsimulation ModelsProjection and Alignment Methods for Static Microsimulation Models
Projection and Alignment Methods for Static Microsimulation Models
 
Telecom customer churn prediction
Telecom customer churn predictionTelecom customer churn prediction
Telecom customer churn prediction
 
CECL Performance Assessment
CECL Performance AssessmentCECL Performance Assessment
CECL Performance Assessment
 

Mehr von 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.pdfQuantUniversity
 
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 PROFESSIONALSQuantUniversity
 
Qu for India - QuantUniversity FundRaiser
Qu for India  - QuantUniversity FundRaiserQu for India  - QuantUniversity FundRaiser
Qu for India - QuantUniversity FundRaiserQuantUniversity
 
Ml master class for CFA Dallas
Ml master class for CFA DallasMl master class for CFA Dallas
Ml master class for CFA DallasQuantUniversity
 
Algorithmic auditing 1.0
Algorithmic auditing 1.0Algorithmic auditing 1.0
Algorithmic auditing 1.0QuantUniversity
 
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 reviewQuantUniversity
 
AI Explainability and Model Risk Management
AI Explainability and Model Risk ManagementAI Explainability and Model Risk Management
AI Explainability and Model Risk ManagementQuantUniversity
 
Algorithmic auditing 1.0
Algorithmic auditing 1.0Algorithmic auditing 1.0
Algorithmic auditing 1.0QuantUniversity
 
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 2021QuantUniversity
 
Bayesian Portfolio Allocation
Bayesian Portfolio AllocationBayesian Portfolio Allocation
Bayesian Portfolio AllocationQuantUniversity
 
Constructing Private Asset Benchmarks
Constructing Private Asset BenchmarksConstructing Private Asset Benchmarks
Constructing Private Asset BenchmarksQuantUniversity
 
Machine Learning Interpretability
Machine Learning InterpretabilityMachine Learning Interpretability
Machine Learning InterpretabilityQuantUniversity
 
Responsible AI in Action
Responsible AI in ActionResponsible AI in Action
Responsible AI in ActionQuantUniversity
 
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 FinanceQuantUniversity
 

Mehr von 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
 

Kürzlich hochgeladen

Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...amitlee9823
 
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...amitlee9823
 
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangaloreamitlee9823
 
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men 🔝Dindigul🔝 Escor...
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men  🔝Dindigul🔝   Escor...➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men  🔝Dindigul🔝   Escor...
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men 🔝Dindigul🔝 Escor...amitlee9823
 
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...amitlee9823
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night StandCall Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Standamitlee9823
 
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...amitlee9823
 
Detecting Credit Card Fraud: A Machine Learning Approach
Detecting Credit Card Fraud: A Machine Learning ApproachDetecting Credit Card Fraud: A Machine Learning Approach
Detecting Credit Card Fraud: A Machine Learning ApproachBoston Institute of Analytics
 
➥🔝 7737669865 🔝▻ mahisagar Call-girls in Women Seeking Men 🔝mahisagar🔝 Esc...
➥🔝 7737669865 🔝▻ mahisagar Call-girls in Women Seeking Men  🔝mahisagar🔝   Esc...➥🔝 7737669865 🔝▻ mahisagar Call-girls in Women Seeking Men  🔝mahisagar🔝   Esc...
➥🔝 7737669865 🔝▻ mahisagar Call-girls in Women Seeking Men 🔝mahisagar🔝 Esc...amitlee9823
 
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...only4webmaster01
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...amitlee9823
 
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...amitlee9823
 
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...amitlee9823
 
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -Pooja Nehwal
 
➥🔝 7737669865 🔝▻ Mathura Call-girls in Women Seeking Men 🔝Mathura🔝 Escorts...
➥🔝 7737669865 🔝▻ Mathura Call-girls in Women Seeking Men  🔝Mathura🔝   Escorts...➥🔝 7737669865 🔝▻ Mathura Call-girls in Women Seeking Men  🔝Mathura🔝   Escorts...
➥🔝 7737669865 🔝▻ Mathura Call-girls in Women Seeking Men 🔝Mathura🔝 Escorts...amitlee9823
 
Call Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night StandCall Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night Standamitlee9823
 

Kürzlich hochgeladen (20)

Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
 
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
 
Anomaly detection and data imputation within time series
Anomaly detection and data imputation within time seriesAnomaly detection and data imputation within time series
Anomaly detection and data imputation within time series
 
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
 
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men 🔝Dindigul🔝 Escor...
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men  🔝Dindigul🔝   Escor...➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men  🔝Dindigul🔝   Escor...
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men 🔝Dindigul🔝 Escor...
 
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night StandCall Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
 
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
 
Detecting Credit Card Fraud: A Machine Learning Approach
Detecting Credit Card Fraud: A Machine Learning ApproachDetecting Credit Card Fraud: A Machine Learning Approach
Detecting Credit Card Fraud: A Machine Learning Approach
 
➥🔝 7737669865 🔝▻ mahisagar Call-girls in Women Seeking Men 🔝mahisagar🔝 Esc...
➥🔝 7737669865 🔝▻ mahisagar Call-girls in Women Seeking Men  🔝mahisagar🔝   Esc...➥🔝 7737669865 🔝▻ mahisagar Call-girls in Women Seeking Men  🔝mahisagar🔝   Esc...
➥🔝 7737669865 🔝▻ mahisagar Call-girls in Women Seeking Men 🔝mahisagar🔝 Esc...
 
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
 
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
 
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
 
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
 
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
 
➥🔝 7737669865 🔝▻ Mathura Call-girls in Women Seeking Men 🔝Mathura🔝 Escorts...
➥🔝 7737669865 🔝▻ Mathura Call-girls in Women Seeking Men  🔝Mathura🔝   Escorts...➥🔝 7737669865 🔝▻ Mathura Call-girls in Women Seeking Men  🔝Mathura🔝   Escorts...
➥🔝 7737669865 🔝▻ Mathura Call-girls in Women Seeking Men 🔝Mathura🔝 Escorts...
 
Call Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night StandCall Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night Stand
 

Time series analysis- Part 2

  • 1. Time Series Analysis Workshop 2018 Copyright QuantUniversity LLC. Presented By: Sri Krishnamurthy, CFA, CAP sri@quantuniversity.com www.quantuniversity.com 12/20/2018 QuantUniversity Meetup Boston
  • 2. 2 About us: • Data Science, Quant Finance and Model Governance Advisory • Technologies using MATLAB, Python and R • Programs ▫ Analytics Certificate Program ▫ Fintech programs • Platform
  • 4. • Founder of QuantUniversity LLC. and www.analyticscertificate.com • Advisory and Consultancy for Financial Analytics • Prior Experience at MathWorks, Citigroup and Endeca and 25+ financial services and energy customers. • Regular Columnist for the Wilmott Magazine • Author of forthcoming book “Financial Modeling: A case study approach” published by Wiley • Charted Financial Analyst and Certified Analytics Professional • Teaches Analytics in the Babson College MBA program and at Northeastern University, Boston Sri Krishnamurthy Founder and CEO 4
  • 5. 5 • 2-day Advances in Time series Workshop ▫ Febraury - TBD ▫ Stay tuned for details at www.analyticscertificate.com • 2-day Machine Learning in Finance Workshop ▫ Jan 23rd & 24th ▫ Register at www.analyticscertificate.com/MachineLearning Upcoming events
  • 6. 6 Slides will be available at: https://researchhub.qusandbox.com
  • 8. • PhD in economics from Boston University • Associate teaching professor in the Department of Economics at Northeastern University • Teaches courses at Northeastern University, Harvard University and Boston College • Prior experience at Analysis Group, An economic consulting Gustavo Vincentini, PhD QuantUniversity Fellow 8
  • 9. Principles of Econometrics, 4th Edition Page 9 Chapter 9: Regression with Time Series Data: Stationary Variables ¡ Time-series data are widely encountered in macroeconomics and finance ¡ “quarterly U.S. real GDP per capita” Q1’81 – Q4’17 ¡ “yearly unemployment rate in MA” 1973 – 2017 ¡ “daily closing Google stock price” 1/1/08 – 12/30/16 ¡ Econometrics is very useful when analyzing time-series data ¡ Policy analysis ¡ If Fed decreases interest rate this quarter, how is current and future GDP growth affected? ¡ Forecasting ¡ What is a good forecast for inflation rate next quarter? ¡ Before using regression on time-series data, one needs to check whether the series are stationary or non-stationary Introduction
  • 10. Principles of Econometrics, 4th Edition Page 10 Chapter 9: Regression with Time Series Data: Stationary Variables Examples of stationary vs non-stationary data Stationary Non-stationary Non-stationary First thing to do is to test if series is non-stationary. If it is non-stationary, then need to convert it to its stationary version before using it in regression analysis. (How to test for non-stationarity will be addressed later.) If series is already stationary, then it’s ready for analysis. For the time being, let’s assume that your data are stationary and “ready” for OLS regression analysis A series is stationary if it hovers around its mean. A series is non-stationary if it either trends (upward or downward) or it wanders around with slow turns and without necessarily returning to its mean.
  • 11. Principles of Econometrics, 4th Edition Page 11 Chapter 9: Regression with Time Series Data: Stationary Variables Using time-series econometrics for policy analysis Suppose you have data on quarterly real GDP growth rate (“y” variable) and quarterly interest rate (“x” variable). Assume both series are stationary (and therefore ready for regression analysis) One may hypothesize that a decrease in interest rate now would affect not only current but also future GDP growth (i.e., monetary policy) This hypothesis can be tested by a regression model in which y depends on current and “q” lagged values of x This model is of primary interest to central banks (e.g., the Fed). For example, β0 is the effect of a change in interest rate on current growth, while β2 is the effect two quarters into the future If both the x and y series are stationary, then one can use OLS regression to estimate the β’s. This would provide a quantification of the effect of monetary policy on economic growth over time A lag selection criterion, such as the BIC (“Bayes Information Criterion”), can be used to select the optimal “q” 0 1 1 2 2t t t t q t q ty x x x x e- - -= a +b +b +b + +b +!
  • 12. Principles of Econometrics, 4th Edition Page 12 Chapter 9: Regression with Time Series Data: Stationary Variables Using time-series econometrics for forecasting After running the OLS regression and estimating the β’s, one can forecast future GDP growth. For example, if “T” is current quarter, then a one-quarter-ahead (“T+1”) forecast for growth is: (Note how one would also need a forecast for xT+1) One can then calculate a standard error for the forecast yT+1, and then use it to construct a 95% confidence interval for yT+1. The narrower the confidence interval, the more confident you are on your forecast One could also calculate, for example, a two-quarters-ahead forecast and confidence interval 1 0 1 1 2 1 1 1T T T T q T q Ty x x x x e+ + - - + += a +b +b +b + +b +!
  • 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 (I) Consider the “theoretical” version of Okun’s Law, where “U” is unemployment rate and “G” is GDP growth rate The change in unemployment rate depends on how the growth rate deviates from a “normal” growth rate “GN” It can be re-written into its “econometric” version: where: DU = Ut – Ut-1 , β0 = –γ , and α = γGN Lags of growth can be included: If both the “DU” and the “G” series are stationary, then OLS regression can be applied to estimate the coefficients ( )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 - - -= + + + + + +!
  • 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 (II) § Quarterly U.S. data: “DU” “G”
  • 15. Principles of Econometrics, 4th Edition Page 15 Chapter 9: Regression with Time Series Data: Stationary Variables An application of policy analysis: Okun’s Law (III) § OLS regression results: § Recall: “Optimal” number of lags can be selected with BIC
  • 16. Principles of Econometrics, 4th Edition Page 16 Chapter 9: Regression with Time Series Data: Stationary Variables Estimation when the error terms are serially correlated (I) § Many economic time-series are serially correlated. (Also called “auto” correlated.) That is, if its current value is relatively high (low), then its next period’s value is also likely to be high (low). For example, U.S. quarterly real GDP growth (“G”) § This serial correlation can be quantified by calculating the correlation coefficient between, Gt and Gt-1, labeled “r1” § Correlation coefficients always fall between -1 and +1. § One can also calculate the correlation between Gt and Gt-2, labeled “r2”, and so on…
  • 17. Principles of Econometrics, 4th Edition Page 17 Chapter 9: Regression with Time Series Data: Stationary Variables Estimation when the error terms are serially correlated (II) § The correlation coefficients r1, r2, r3, etc, can also be calculated and visualized with a correlogram. For example, for growth rate G: § The solid lines at 0.2 and -0.2 delineate thresholds for correlation coefficients that are statistically different from zero. For example, current growth is correlated with last-period’s growth and two-periods-ago growth 1 2 3 40.494 0.411 0.154 0.200r r r r= = = =
  • 18. Principles of Econometrics, 4th Edition Page 18 Chapter 9: Regression with Time Series Data: Stationary Variables Estimation when the error terms are serially correlated (III) § Serial correlation becomes an issue in econometrics when the error terms are serially correlated § Consider another economic example, the Phillips Curve § Assume inflationary expectations (INFE t) are constant over time (β1 = INFE t), set β2= –γ, and add an error term: § One way to check if et and et-1 are serially correlated is to run an OLS regression of INFt on DUt , collect the residuals after the regression: § And then plot correlogram for residuals: ( )1γE t t t tINF INF U U -= - - 1 2β βt t tINF DU e= + + 1 2 ˆt t te INF b b DU= - - +
  • 19. Principles of Econometrics, 4th Edition Page 19 Chapter 9: Regression with Time Series Data: Stationary Variables Estimation when the error terms are serially correlated (IV) § So, what is the “issue” when the errors are serially correlated? § The estimated β2 from the OLS regression is unbiased, which is a desirable thing. However, the typically reported “regular” standard errors are no longer valid, and typically smaller then they should be. § What to do? There are two potential solutions: 1) Use “proper” standard errors that accommodate the serial correlation in the error terms, called “HAC” standard errors (Heteroskedasticity- and AutoCorrelation-robust standard errors) 2) Include lagged values of the INF variable and/or further lagged values of the DU variable in the OLS regression until the serial correlation in the residuals disappears. For example, including a lagged INFt-1: ( ) ( ) ( ) ( ) ( ) ( ) 0.7776 0.5279 0.0658 0.2294 incorrect se 0.1030 0.3127 HAC se INF DU= - ( ) ( ) ( ) ( ) 10.3548 0.5282 0.4909 0.0876 0.0851 0.1921 t t tINF INF DU se -= + -
  • 20. Principles of Econometrics, 4th Edition Page 20 Chapter 9: Regression with Time Series Data: Stationary Variables § What does it mean for a y series to be non-stationary? The most common type of non- stationarity in time-series is a unit root, which is a series that “wanders around” aimlessly (and with “slow turns”) without possibly never returning to its mean. Visually: § Many macroeconomic series are non-stationary (e.g., inflation rate, exchange rates) § If a series y (or x) is non-stationary, then one should not use it (in its “raw” form) in an OLS regression, because the OLS estimator does not behave well in such case. § Instead, one should first transform it into a stationary version of itself and then use that version in a regression. The transformation is quite simple: Just take the first-difference of the series, Dyt = yt – yt-1, and use it in the OLS regression. (Dyt is stationary.) § 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 Non-stationary time series (I)
  • 21. Principles of Econometrics, 4th Edition Page 21 Chapter 9: Regression with Time Series Data: Stationary Variables § So why can’t we use the “raw” version of a non-stationary series in an OLS regression? Because you may find a spurious result in your OLS regression. This issue is termed “spurious regression” § For example, consider these two unit roots that were independently simulated. In other words, 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 Non-stationary time series (II) 2 1 217.818 0.842 , 0.70 ( ) (40.837) t trw rw R t = + =
  • 22. Principles of Econometrics, 4th Edition Page 22 Chapter 9: Regression with Time Series Data: Stationary Variables § Therefore, the first thing one should do when working with a time-series is to test whether it is non-stationary or stationary § If the series is found to be stationary, then you should work with the series itself (without taking its first- difference) § If the series is found to be non-stationary, then you should work with its first-difference in regression analysis § The most commonly used test for stationarity of a series is the Dickey-Fuller (“DF”) test Non-stationary time series (III)
  • 23. 23 1. Acceptance of the Open Source world 2. Data Science is a need-to-have skill 3. AI and ML taken seriously 4. Major innovations in Deep Learning and Reinforcement Learning 5. Limitations in Deep Learning and Chatbots recognized 6. AutoML maturing 7. Analytics back in demand 8. Realization that clean and labeled data is king! 9. AI, ML ops leveraging advances in Devops 10. Realization that AI and ML is not simple Top 10 developments in 2018
  • 24. 24 1. Every organization thinking of an AI strategy 2. AI and ML operationalized 3. Reproducibility, Replicability, Model Governance 4. Bias, Interpretability, Auditability, Explainability 5. More innovations in applied Machine Learning – From research labs to enterprises What’s coming in 2019
  • 25. 25 • QuSandbox launch! • Analytics Certificate 9 week program in Spring 2019 • More courses ▫ AI & ML in Finance ▫ Time Series Analysis Workshop ▫ Anomaly Detection ▫ Fintech 101 QuantUniversity in 2019
  • 27. Sri Krishnamurthy, CFA, CAP Founder and Chief Data Scientist sri@quantuniversity.com srikrishnamurthy www.QuantUniversity.com www.analyticscertificate.com www.qusandbox.com Information, data and drawings embodied in this presentation are strictly a property of QuantUniversity LLC. and shall not be distributed or used in any other publication without the prior written consent of QuantUniversity LLC. 27