SlideShare a Scribd company logo
1 of 16
Characterizing Time Series Data
Using SAS
for non-regression based exploratory data analysis
Dr. Steven C. Myers
Department of Economics
College of Business Administration
The University of Akron
econdatascience.com
May 2, 2019
Characterizing Time Series Data
Using SAS
for non-regression based exploratory data analysis
From Silvia, et al. Economic and Business Forecasting:
analyzing and interpreting economic results. Wiley, 2014.
Chapter 6: Characterizing a Time Series Using SAS
Software (section The Data Step, especially pp. 138-140)
Characterizing Time Series – Graphs and Tables
Graph  Plot the series – three questions
See any extreme values?
Unusual event or mistake in data
Does it have a explicit time trend?
Linear or nonlinear, increasing or decreasing and at what rate
Cyclical pattern that repeats
Is there a structural break?
Indicates a major change in behavior
Table  Simple Statistics over portions of the time series
Mean = Central tendency of a series
Standard Deviation = Measure of volatility
Standard Deviation as a percentage of the mean = Stability of the series
From: Silvia, Chapter 4, repeated in “SAS-speak” in Chapter 6.
Graph  Plot the series – three questions
See any extreme values?
Unusual event or mistake in data
Does it have a explicit time trend?
Trend? Linear or nonlinear, increasing
or decreasing and at what rate
Cyclical pattern that repeats
Is there a structural break?
Indicates a major change in behavior
Strong Productivity Growth Era 
Slow Productivity Growth Era 
Productivity Resurgence Era 
Total series 
Table  Simple Statistics
over portions of the time series
Mean = Central tendency of a series
S.D. = Standard Deviation
= Measure of volatility
Standard Deviation as a percentage of the mean
= Stability of the series
Figure 4.1 and Table 4.1 from Silvia
The FRED Blog. Spurious Correlation. https://fredblog.stlouisfed.org/2014/07/spurious-correlation, July 28, 2014.
Time Series may rise and fall because of other series. This can result in spurious correlated relationships.
M2 and Debt appear
to be positively correlated
%∆M2 and % ∆Debt
do not appear correlated.
M2/GDP and Debt/GDP
do not appear correlated.
CREATE
(1) Divide your variable by a common
trend variable
(2) Changes and percentage changes in
your variable.
Data demo;
/* assume work.data contains Annual M2 and DEBT and nominal GDP */
Set work.data;
/* create changes and percentage changes in your variables */
/* first difference */
d1M2 = dif1(M2); /* if y = variable on RHS, this gives y(t)-y(t-1) */
/* use dif4 or dif12 for quarterly and monthly data */
Is Debt caused by an expanded Money Supply? A look at the spurious correlation example.
Dif1 function
y=dif1(x)
y = x(t) - x(t-1)
Data demo;
/* assume work.data contains M2 and DEBT and nominal GDP */
Set work.data;
/* create changes and percentage changes in your variables */
/* first difference */
d1M2 = dif1(M2); /* if y = variable on RHS, this gives y(t)-y(t-1) */
/* percentage changes */
pctd1M2 = d1M2/lag(M2); /* if y = variable on RHS, this gives [y(t)-y(t-1)]/y(t-1) */
/* use LAG4 and lag12 for quarterly and monthly data.
Is Debt caused by an expanded Money Supply?
Lag function
Y = LAG(x)
y(t) = x(t-1)
Data demo;
/* assume work.data contains M2 and DEBT and nominal GDP */
Set work.data;
/* create changes and percentage changes in your variables */
/* change: first difference */
d1M2 = dif1(M2); /* if y = variable on RHS, this gives y(t)-y(t-1) */
/* percentage changes */
pctd1M2 = d1M2/lag(M2); /* if y = variable on RHS, this gives [y(t)-y(t-1)]/y(t-1) */
/* detrend by using a common trend */
flatM2 = M2/GDP; /* divide by a series with the same upward trend, such as GDP */
Is Debt caused by an expanded Money Supply?
Data demo;
/* assume work.data contains M2 and DEBT and nominal GDP */
Set work.data;
/* create changes and percentage changes in your variables */
/* first difference */
d1M2 = dif1(M2); /* if y = variable on RHS, this gives y(t)-y(t-1) */
/* percentage changes */
pctd1M2 = d1M2/lag(M2); /* if y = variable on RHS, this gives [y(t)-y(t-1)]/y(t-1) */
/* detrend a common trend */
flatM2 = M2/GDP; /* divide by a series with the same upward trend, such as GDP */
/* do the same for Debt */
d1DEBT = dif1(DEBT);
pctd1DEBT = d1DEBT/lag(DEBT);
flatDEBT = DEBT/GDP;
Is Debt caused by an expanded Money Supply?
Data Division into Business Cycles
or other terms
From Silvia, et al. Economic and Business Forecasting: analyzing and interpreting economic results.
Wiley, 2014.
Chapter 6: Characterizing a Time Series Using SAS Software (The Proc Step: Calculating the Mean,
Standard Deviation and Stability Ratio of a Variable, pp. 151-153)
Data work.tsexp;
set work.tsexp_excel;
length group $ 5; /* length is critical – must be long enough to show all char. */
d1gdp=dif1(fygfd); /* if y = variable on RHS, this gives y(t)-y(t-1) */
pctd1gdp=d1gdp/lag(fygfd); /* if y = variable on RHS, this gives [y(t)-y(t-1)]/y(t-1) */
d1deficit=dif1(FYFSD); /* if y = variable on RHS, this gives y(t)-y(t-1) */
pctd1deficit=d1deficit/lag(FYFSD); /* if y = variable on RHS, this gives [y(t)-y(t-1)]/y(t-1) */
/* define a group for a timeslice of the time-series data for comparison */
group=‘ ‘;
if observation_date ge '1jan80'd and observation_date lt '1jan90'd then group='1980s';
if observation_date ge '1jan90'd and observation_date lt '1jan00'd then group='1990s';
if observation_date ge '1jan00'd and observation_date lt '1jan10'd then group='2000s';
if observation_date ge '1jan10'd and observation_date lt '1jan20'd then group='2010s';
run;
proc sort data=work.tsexp;
by group;
run;
What if you wanted to define group by the business cycle?
Change
group=‘ ‘;
if date ge '1jan80'd and date lt '1jan90'd then group='1980s';
if date ge '1jan90'd and date lt '1jan00'd then group='1990s';
if date ge '1jan00'd and date lt '1jan10'd then group='2000s';
if date ge '1jan10'd and date lt '1jan20'd then group='2010s';
To
group=‘ ‘; Length group $ 10;
/* ….. Add more as needed to cover your period of time */
/* dates shown are turning points */
if date ge '1jan80'd and date lt '1jul80'd then group=‘1-P-jan80';
if date ge '1jul80'd and date lt '1jul81'd then group=‘2-T-jul80';
if date ge '1jul81'd and date lt '1nov82'd then group=‘3-P-jul81';
if date ge '1nov82'd and date lt '1jul90'd then group=‘4-T-nov82';
if date ge '1jul90'd and date lt '1mar91'd then group=‘5-P-jul90';
if date ge '1mar91'd and date lt '1mar01'd then group=‘6-T-mar91';
if date ge '1mar01'd and date lt ‘1nov01'd then group=‘7-P-mar01';
if date ge '1nov01'd and date lt '1dec07'd then group=‘8-T-nov01';
if date ge '1dec07'd and date lt '1jun09'd then group=‘9-P-dec07';
if date ge '1jun09'd then group=’10-T-jun09';
Using date for observation_date to save space.
Business cycle dates at
https://www.nber.org/cycles/cyclesmain.html
Mean, Volatility and Stability
From Silvia, et al. Economic and Business Forecasting: analyzing and interpreting economic results.
Wiley, 2014.
Chapter 6: Characterizing a Time Series Using SAS Software (The Proc Step: Calculating the Mean,
Standard Deviation and Stability Ratio of a Variable, pp. 146-149)
Time Series Deficit Analysis Example
Contains for each series
1. SGPLOT – trend plot for variable
2. SGPLOT – Vertical Box Plot by group
(see the image and link from SAS on
the right to interpret)
3. PROC MEANS by group for
a. Mean ( 𝑥)
b. Volatility (Std. Deviation, s)
c. Stability (Coeff. Of Variation, (s/ 𝑥)*100
PROC SGPLOT
https://documentation.sas.com/?docsetId=g
rstatproc&docsetTarget=n0yjdd910dh59zn1t
oodgupaj4v9.htm&docsetVersion=9.4&local
e=en
Center Stability Volatility
of the of the of the
series series series
1980s 1990s 2000s 2010s
1980s 1990s 2000s 2010s
MIN 25% 50% 75% 100%
Characterizing a Time-Series with Exploratory Data Analysis
Focus on the Box Plot as part of Characterizing a Time-Series as Exploratory Data Analysis

More Related Content

Similar to Characterizing time series presentation

Trend and Seasonal Components
Trend and Seasonal ComponentsTrend and Seasonal Components
Trend and Seasonal ComponentsAnnaRevin
 
Lecture_03.pdf
Lecture_03.pdfLecture_03.pdf
Lecture_03.pdfjeys3
 
Advanced Econometrics L7-8.pptx
Advanced Econometrics L7-8.pptxAdvanced Econometrics L7-8.pptx
Advanced Econometrics L7-8.pptxakashayosha
 
Trend and seasonal components/Abshor Marantika/Cindy Aprilia Anggaresta
Trend and seasonal components/Abshor Marantika/Cindy Aprilia AnggarestaTrend and seasonal components/Abshor Marantika/Cindy Aprilia Anggaresta
Trend and seasonal components/Abshor Marantika/Cindy Aprilia AnggarestaCindyAprilia15
 
Exploring ML methods to increase the profitability of the trading strategy
Exploring ML methods to increase the profitability of the trading strategyExploring ML methods to increase the profitability of the trading strategy
Exploring ML methods to increase the profitability of the trading strategyDenis Zakharov
 
Holtwinters terakhir lengkap
Holtwinters terakhir lengkapHoltwinters terakhir lengkap
Holtwinters terakhir lengkapZulyy Astutik
 
Self Assessment
Self AssessmentSelf Assessment
Self AssessmentAARollason
 
Forecasting
ForecastingForecasting
Forecasting3abooodi
 
Affine Term Structure Model with Stochastic Market Price of Risk
Affine Term Structure Model with Stochastic Market Price of RiskAffine Term Structure Model with Stochastic Market Price of Risk
Affine Term Structure Model with Stochastic Market Price of RiskSwati Mital
 
Application of panel data to the effect of five (5) world development indicat...
Application of panel data to the effect of five (5) world development indicat...Application of panel data to the effect of five (5) world development indicat...
Application of panel data to the effect of five (5) world development indicat...Alexander Decker
 
Application of panel data to the effect of five (5) world development indicat...
Application of panel data to the effect of five (5) world development indicat...Application of panel data to the effect of five (5) world development indicat...
Application of panel data to the effect of five (5) world development indicat...Alexander Decker
 
Dynamically Evolving Systems: Cluster Analysis Using Time
Dynamically Evolving Systems: Cluster Analysis Using TimeDynamically Evolving Systems: Cluster Analysis Using Time
Dynamically Evolving Systems: Cluster Analysis Using TimeMagnify Analytic Solutions
 
time series.pdf
time series.pdftime series.pdf
time series.pdfcollege
 
STAT200 Assignment #1 - Descriptive Statistics Analysis Plan - Te.docx
STAT200 Assignment #1 - Descriptive Statistics Analysis Plan - Te.docxSTAT200 Assignment #1 - Descriptive Statistics Analysis Plan - Te.docx
STAT200 Assignment #1 - Descriptive Statistics Analysis Plan - Te.docxsusanschei
 
Loss Forecastiing_A sequential approach
Loss Forecastiing_A sequential approachLoss Forecastiing_A sequential approach
Loss Forecastiing_A sequential approachAlexander Levine
 
Time series mnr
Time series mnrTime series mnr
Time series mnrNH Rao
 
Forecasting of demand (management)
Forecasting of demand (management)Forecasting of demand (management)
Forecasting of demand (management)Manthan Chavda
 

Similar to Characterizing time series presentation (20)

Trend and Seasonal Components
Trend and Seasonal ComponentsTrend and Seasonal Components
Trend and Seasonal Components
 
Lecture_03.pdf
Lecture_03.pdfLecture_03.pdf
Lecture_03.pdf
 
Advanced Econometrics L7-8.pptx
Advanced Econometrics L7-8.pptxAdvanced Econometrics L7-8.pptx
Advanced Econometrics L7-8.pptx
 
Trend and seasonal components/Abshor Marantika/Cindy Aprilia Anggaresta
Trend and seasonal components/Abshor Marantika/Cindy Aprilia AnggarestaTrend and seasonal components/Abshor Marantika/Cindy Aprilia Anggaresta
Trend and seasonal components/Abshor Marantika/Cindy Aprilia Anggaresta
 
Exploring ML methods to increase the profitability of the trading strategy
Exploring ML methods to increase the profitability of the trading strategyExploring ML methods to increase the profitability of the trading strategy
Exploring ML methods to increase the profitability of the trading strategy
 
03_AJMS_337_21_Revised_New.pdf
03_AJMS_337_21_Revised_New.pdf03_AJMS_337_21_Revised_New.pdf
03_AJMS_337_21_Revised_New.pdf
 
Holtwinters terakhir lengkap
Holtwinters terakhir lengkapHoltwinters terakhir lengkap
Holtwinters terakhir lengkap
 
Self Assessment
Self AssessmentSelf Assessment
Self Assessment
 
BS6_Measurement of Trend.pptx
BS6_Measurement of Trend.pptxBS6_Measurement of Trend.pptx
BS6_Measurement of Trend.pptx
 
Forecasting
ForecastingForecasting
Forecasting
 
Affine Term Structure Model with Stochastic Market Price of Risk
Affine Term Structure Model with Stochastic Market Price of RiskAffine Term Structure Model with Stochastic Market Price of Risk
Affine Term Structure Model with Stochastic Market Price of Risk
 
Application of panel data to the effect of five (5) world development indicat...
Application of panel data to the effect of five (5) world development indicat...Application of panel data to the effect of five (5) world development indicat...
Application of panel data to the effect of five (5) world development indicat...
 
Application of panel data to the effect of five (5) world development indicat...
Application of panel data to the effect of five (5) world development indicat...Application of panel data to the effect of five (5) world development indicat...
Application of panel data to the effect of five (5) world development indicat...
 
Dynamically Evolving Systems: Cluster Analysis Using Time
Dynamically Evolving Systems: Cluster Analysis Using TimeDynamically Evolving Systems: Cluster Analysis Using Time
Dynamically Evolving Systems: Cluster Analysis Using Time
 
ffm vignette 08 29 16
ffm vignette 08 29 16ffm vignette 08 29 16
ffm vignette 08 29 16
 
time series.pdf
time series.pdftime series.pdf
time series.pdf
 
STAT200 Assignment #1 - Descriptive Statistics Analysis Plan - Te.docx
STAT200 Assignment #1 - Descriptive Statistics Analysis Plan - Te.docxSTAT200 Assignment #1 - Descriptive Statistics Analysis Plan - Te.docx
STAT200 Assignment #1 - Descriptive Statistics Analysis Plan - Te.docx
 
Loss Forecastiing_A sequential approach
Loss Forecastiing_A sequential approachLoss Forecastiing_A sequential approach
Loss Forecastiing_A sequential approach
 
Time series mnr
Time series mnrTime series mnr
Time series mnr
 
Forecasting of demand (management)
Forecasting of demand (management)Forecasting of demand (management)
Forecasting of demand (management)
 

More from Steven Myers

A test for structural break
A test for structural breakA test for structural break
A test for structural breakSteven Myers
 
Basic cross section and exploratory data analysis
Basic cross section and exploratory data analysis Basic cross section and exploratory data analysis
Basic cross section and exploratory data analysis Steven Myers
 
Ten insights for venturers: How to leave your crew better than you found it
Ten insights for venturers: How to leave your crew better than you found itTen insights for venturers: How to leave your crew better than you found it
Ten insights for venturers: How to leave your crew better than you found itSteven Myers
 
Difference between advisor and scoutmaster
Difference between advisor and scoutmasterDifference between advisor and scoutmaster
Difference between advisor and scoutmasterSteven Myers
 
Older scouts need crews
Older scouts need crewsOlder scouts need crews
Older scouts need crewsSteven Myers
 
Teaching Economics Students to become Data Professionals Using SAS
Teaching Economics Students to become Data Professionals Using SASTeaching Economics Students to become Data Professionals Using SAS
Teaching Economics Students to become Data Professionals Using SASSteven Myers
 
7 habits of a highly successful crew
7 habits of a highly successful crew 7 habits of a highly successful crew
7 habits of a highly successful crew Steven Myers
 
Central Region Area 4 Venturing Update to Participants
Central Region Area 4 Venturing Update to ParticipantsCentral Region Area 4 Venturing Update to Participants
Central Region Area 4 Venturing Update to ParticipantsSteven Myers
 
2016 central Region Area 4 Venturing Update
2016 central Region Area 4 Venturing Update2016 central Region Area 4 Venturing Update
2016 central Region Area 4 Venturing UpdateSteven Myers
 
Achieving Venturing Excellence in Your Council
Achieving Venturing Excellence in Your CouncilAchieving Venturing Excellence in Your Council
Achieving Venturing Excellence in Your CouncilSteven Myers
 
Highlights of the ALPS Planning and Recognition Model
Highlights of the ALPS Planning and Recognition ModelHighlights of the ALPS Planning and Recognition Model
Highlights of the ALPS Planning and Recognition ModelSteven Myers
 
Starting and Sustaining VOAs
Starting and Sustaining VOAs Starting and Sustaining VOAs
Starting and Sustaining VOAs Steven Myers
 
Central Region Area 4 Membership Plan
Central Region Area 4 Membership PlanCentral Region Area 4 Membership Plan
Central Region Area 4 Membership PlanSteven Myers
 
Venturing Journey to Excellence - Crews 2014
Venturing Journey to Excellence - Crews 2014Venturing Journey to Excellence - Crews 2014
Venturing Journey to Excellence - Crews 2014Steven Myers
 
The delegating scoutmaster 2014 BSA
The delegating scoutmaster 2014 BSAThe delegating scoutmaster 2014 BSA
The delegating scoutmaster 2014 BSASteven Myers
 
Mentoring BSA 2014 University of Scouting
Mentoring BSA 2014 University of ScoutingMentoring BSA 2014 University of Scouting
Mentoring BSA 2014 University of ScoutingSteven Myers
 
The delegatingscoutmaster
The delegatingscoutmasterThe delegatingscoutmaster
The delegatingscoutmasterSteven Myers
 
Creating a strategic_direction_for_your_troop
Creating a strategic_direction_for_your_troopCreating a strategic_direction_for_your_troop
Creating a strategic_direction_for_your_troopSteven Myers
 
Holding the annual_planning_conference
Holding the annual_planning_conferenceHolding the annual_planning_conference
Holding the annual_planning_conferenceSteven Myers
 
Mentoring scm uof_s_2012
Mentoring scm uof_s_2012Mentoring scm uof_s_2012
Mentoring scm uof_s_2012Steven Myers
 

More from Steven Myers (20)

A test for structural break
A test for structural breakA test for structural break
A test for structural break
 
Basic cross section and exploratory data analysis
Basic cross section and exploratory data analysis Basic cross section and exploratory data analysis
Basic cross section and exploratory data analysis
 
Ten insights for venturers: How to leave your crew better than you found it
Ten insights for venturers: How to leave your crew better than you found itTen insights for venturers: How to leave your crew better than you found it
Ten insights for venturers: How to leave your crew better than you found it
 
Difference between advisor and scoutmaster
Difference between advisor and scoutmasterDifference between advisor and scoutmaster
Difference between advisor and scoutmaster
 
Older scouts need crews
Older scouts need crewsOlder scouts need crews
Older scouts need crews
 
Teaching Economics Students to become Data Professionals Using SAS
Teaching Economics Students to become Data Professionals Using SASTeaching Economics Students to become Data Professionals Using SAS
Teaching Economics Students to become Data Professionals Using SAS
 
7 habits of a highly successful crew
7 habits of a highly successful crew 7 habits of a highly successful crew
7 habits of a highly successful crew
 
Central Region Area 4 Venturing Update to Participants
Central Region Area 4 Venturing Update to ParticipantsCentral Region Area 4 Venturing Update to Participants
Central Region Area 4 Venturing Update to Participants
 
2016 central Region Area 4 Venturing Update
2016 central Region Area 4 Venturing Update2016 central Region Area 4 Venturing Update
2016 central Region Area 4 Venturing Update
 
Achieving Venturing Excellence in Your Council
Achieving Venturing Excellence in Your CouncilAchieving Venturing Excellence in Your Council
Achieving Venturing Excellence in Your Council
 
Highlights of the ALPS Planning and Recognition Model
Highlights of the ALPS Planning and Recognition ModelHighlights of the ALPS Planning and Recognition Model
Highlights of the ALPS Planning and Recognition Model
 
Starting and Sustaining VOAs
Starting and Sustaining VOAs Starting and Sustaining VOAs
Starting and Sustaining VOAs
 
Central Region Area 4 Membership Plan
Central Region Area 4 Membership PlanCentral Region Area 4 Membership Plan
Central Region Area 4 Membership Plan
 
Venturing Journey to Excellence - Crews 2014
Venturing Journey to Excellence - Crews 2014Venturing Journey to Excellence - Crews 2014
Venturing Journey to Excellence - Crews 2014
 
The delegating scoutmaster 2014 BSA
The delegating scoutmaster 2014 BSAThe delegating scoutmaster 2014 BSA
The delegating scoutmaster 2014 BSA
 
Mentoring BSA 2014 University of Scouting
Mentoring BSA 2014 University of ScoutingMentoring BSA 2014 University of Scouting
Mentoring BSA 2014 University of Scouting
 
The delegatingscoutmaster
The delegatingscoutmasterThe delegatingscoutmaster
The delegatingscoutmaster
 
Creating a strategic_direction_for_your_troop
Creating a strategic_direction_for_your_troopCreating a strategic_direction_for_your_troop
Creating a strategic_direction_for_your_troop
 
Holding the annual_planning_conference
Holding the annual_planning_conferenceHolding the annual_planning_conference
Holding the annual_planning_conference
 
Mentoring scm uof_s_2012
Mentoring scm uof_s_2012Mentoring scm uof_s_2012
Mentoring scm uof_s_2012
 

Recently uploaded

Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfLars Albertsson
 
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiLow Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiSuhani Kapoor
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改atducpo
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfRachmat Ramadhan H
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Jack DiGiovanna
 
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPramod Kumar Srivastava
 
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779Delhi Call girls
 
Call Girls In Mahipalpur O9654467111 Escorts Service
Call Girls In Mahipalpur O9654467111  Escorts ServiceCall Girls In Mahipalpur O9654467111  Escorts Service
Call Girls In Mahipalpur O9654467111 Escorts ServiceSapana Sha
 
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...shivangimorya083
 
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptdokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptSonatrach
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationshipsccctableauusergroup
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz1
 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfMarinCaroMartnezBerg
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...Florian Roscheck
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...Suhani Kapoor
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 

Recently uploaded (20)

VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdf
 
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiLow Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
 
E-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptxE-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptx
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
 
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
 
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
 
Call Girls In Mahipalpur O9654467111 Escorts Service
Call Girls In Mahipalpur O9654467111  Escorts ServiceCall Girls In Mahipalpur O9654467111  Escorts Service
Call Girls In Mahipalpur O9654467111 Escorts Service
 
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...
 
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptdokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signals
 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdf
 
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 

Characterizing time series presentation

  • 1. Characterizing Time Series Data Using SAS for non-regression based exploratory data analysis Dr. Steven C. Myers Department of Economics College of Business Administration The University of Akron econdatascience.com May 2, 2019
  • 2. Characterizing Time Series Data Using SAS for non-regression based exploratory data analysis From Silvia, et al. Economic and Business Forecasting: analyzing and interpreting economic results. Wiley, 2014. Chapter 6: Characterizing a Time Series Using SAS Software (section The Data Step, especially pp. 138-140)
  • 3. Characterizing Time Series – Graphs and Tables Graph  Plot the series – three questions See any extreme values? Unusual event or mistake in data Does it have a explicit time trend? Linear or nonlinear, increasing or decreasing and at what rate Cyclical pattern that repeats Is there a structural break? Indicates a major change in behavior Table  Simple Statistics over portions of the time series Mean = Central tendency of a series Standard Deviation = Measure of volatility Standard Deviation as a percentage of the mean = Stability of the series From: Silvia, Chapter 4, repeated in “SAS-speak” in Chapter 6.
  • 4. Graph  Plot the series – three questions See any extreme values? Unusual event or mistake in data Does it have a explicit time trend? Trend? Linear or nonlinear, increasing or decreasing and at what rate Cyclical pattern that repeats Is there a structural break? Indicates a major change in behavior Strong Productivity Growth Era  Slow Productivity Growth Era  Productivity Resurgence Era  Total series  Table  Simple Statistics over portions of the time series Mean = Central tendency of a series S.D. = Standard Deviation = Measure of volatility Standard Deviation as a percentage of the mean = Stability of the series Figure 4.1 and Table 4.1 from Silvia
  • 5. The FRED Blog. Spurious Correlation. https://fredblog.stlouisfed.org/2014/07/spurious-correlation, July 28, 2014. Time Series may rise and fall because of other series. This can result in spurious correlated relationships. M2 and Debt appear to be positively correlated %∆M2 and % ∆Debt do not appear correlated. M2/GDP and Debt/GDP do not appear correlated. CREATE (1) Divide your variable by a common trend variable (2) Changes and percentage changes in your variable.
  • 6. Data demo; /* assume work.data contains Annual M2 and DEBT and nominal GDP */ Set work.data; /* create changes and percentage changes in your variables */ /* first difference */ d1M2 = dif1(M2); /* if y = variable on RHS, this gives y(t)-y(t-1) */ /* use dif4 or dif12 for quarterly and monthly data */ Is Debt caused by an expanded Money Supply? A look at the spurious correlation example. Dif1 function y=dif1(x) y = x(t) - x(t-1)
  • 7. Data demo; /* assume work.data contains M2 and DEBT and nominal GDP */ Set work.data; /* create changes and percentage changes in your variables */ /* first difference */ d1M2 = dif1(M2); /* if y = variable on RHS, this gives y(t)-y(t-1) */ /* percentage changes */ pctd1M2 = d1M2/lag(M2); /* if y = variable on RHS, this gives [y(t)-y(t-1)]/y(t-1) */ /* use LAG4 and lag12 for quarterly and monthly data. Is Debt caused by an expanded Money Supply? Lag function Y = LAG(x) y(t) = x(t-1)
  • 8. Data demo; /* assume work.data contains M2 and DEBT and nominal GDP */ Set work.data; /* create changes and percentage changes in your variables */ /* change: first difference */ d1M2 = dif1(M2); /* if y = variable on RHS, this gives y(t)-y(t-1) */ /* percentage changes */ pctd1M2 = d1M2/lag(M2); /* if y = variable on RHS, this gives [y(t)-y(t-1)]/y(t-1) */ /* detrend by using a common trend */ flatM2 = M2/GDP; /* divide by a series with the same upward trend, such as GDP */ Is Debt caused by an expanded Money Supply?
  • 9. Data demo; /* assume work.data contains M2 and DEBT and nominal GDP */ Set work.data; /* create changes and percentage changes in your variables */ /* first difference */ d1M2 = dif1(M2); /* if y = variable on RHS, this gives y(t)-y(t-1) */ /* percentage changes */ pctd1M2 = d1M2/lag(M2); /* if y = variable on RHS, this gives [y(t)-y(t-1)]/y(t-1) */ /* detrend a common trend */ flatM2 = M2/GDP; /* divide by a series with the same upward trend, such as GDP */ /* do the same for Debt */ d1DEBT = dif1(DEBT); pctd1DEBT = d1DEBT/lag(DEBT); flatDEBT = DEBT/GDP; Is Debt caused by an expanded Money Supply?
  • 10. Data Division into Business Cycles or other terms From Silvia, et al. Economic and Business Forecasting: analyzing and interpreting economic results. Wiley, 2014. Chapter 6: Characterizing a Time Series Using SAS Software (The Proc Step: Calculating the Mean, Standard Deviation and Stability Ratio of a Variable, pp. 151-153)
  • 11. Data work.tsexp; set work.tsexp_excel; length group $ 5; /* length is critical – must be long enough to show all char. */ d1gdp=dif1(fygfd); /* if y = variable on RHS, this gives y(t)-y(t-1) */ pctd1gdp=d1gdp/lag(fygfd); /* if y = variable on RHS, this gives [y(t)-y(t-1)]/y(t-1) */ d1deficit=dif1(FYFSD); /* if y = variable on RHS, this gives y(t)-y(t-1) */ pctd1deficit=d1deficit/lag(FYFSD); /* if y = variable on RHS, this gives [y(t)-y(t-1)]/y(t-1) */ /* define a group for a timeslice of the time-series data for comparison */ group=‘ ‘; if observation_date ge '1jan80'd and observation_date lt '1jan90'd then group='1980s'; if observation_date ge '1jan90'd and observation_date lt '1jan00'd then group='1990s'; if observation_date ge '1jan00'd and observation_date lt '1jan10'd then group='2000s'; if observation_date ge '1jan10'd and observation_date lt '1jan20'd then group='2010s'; run; proc sort data=work.tsexp; by group; run;
  • 12. What if you wanted to define group by the business cycle? Change group=‘ ‘; if date ge '1jan80'd and date lt '1jan90'd then group='1980s'; if date ge '1jan90'd and date lt '1jan00'd then group='1990s'; if date ge '1jan00'd and date lt '1jan10'd then group='2000s'; if date ge '1jan10'd and date lt '1jan20'd then group='2010s'; To group=‘ ‘; Length group $ 10; /* ….. Add more as needed to cover your period of time */ /* dates shown are turning points */ if date ge '1jan80'd and date lt '1jul80'd then group=‘1-P-jan80'; if date ge '1jul80'd and date lt '1jul81'd then group=‘2-T-jul80'; if date ge '1jul81'd and date lt '1nov82'd then group=‘3-P-jul81'; if date ge '1nov82'd and date lt '1jul90'd then group=‘4-T-nov82'; if date ge '1jul90'd and date lt '1mar91'd then group=‘5-P-jul90'; if date ge '1mar91'd and date lt '1mar01'd then group=‘6-T-mar91'; if date ge '1mar01'd and date lt ‘1nov01'd then group=‘7-P-mar01'; if date ge '1nov01'd and date lt '1dec07'd then group=‘8-T-nov01'; if date ge '1dec07'd and date lt '1jun09'd then group=‘9-P-dec07'; if date ge '1jun09'd then group=’10-T-jun09'; Using date for observation_date to save space. Business cycle dates at https://www.nber.org/cycles/cyclesmain.html
  • 13. Mean, Volatility and Stability From Silvia, et al. Economic and Business Forecasting: analyzing and interpreting economic results. Wiley, 2014. Chapter 6: Characterizing a Time Series Using SAS Software (The Proc Step: Calculating the Mean, Standard Deviation and Stability Ratio of a Variable, pp. 146-149)
  • 14. Time Series Deficit Analysis Example Contains for each series 1. SGPLOT – trend plot for variable 2. SGPLOT – Vertical Box Plot by group (see the image and link from SAS on the right to interpret) 3. PROC MEANS by group for a. Mean ( 𝑥) b. Volatility (Std. Deviation, s) c. Stability (Coeff. Of Variation, (s/ 𝑥)*100 PROC SGPLOT https://documentation.sas.com/?docsetId=g rstatproc&docsetTarget=n0yjdd910dh59zn1t oodgupaj4v9.htm&docsetVersion=9.4&local e=en
  • 15. Center Stability Volatility of the of the of the series series series 1980s 1990s 2000s 2010s 1980s 1990s 2000s 2010s MIN 25% 50% 75% 100% Characterizing a Time-Series with Exploratory Data Analysis
  • 16. Focus on the Box Plot as part of Characterizing a Time-Series as Exploratory Data Analysis