Module 2: Mathematical Operations and Index Numbers Flashcards
What does aggregation mean?
- It is when you combine multiple numbers to form a single number
When do we use aggregation?
- We usually use this with some time series to reduce the frequency: Monthly, quarterly, annual
How do we inform our software that our datasets are time series
Usually our datasets have a date column but we need to make sure they understand its for DATES
Before formatting our dataset what do we need to understand first about the dataset?
The date conventions (or dates in datasets)
What are the two different date conventions that can exists for time series?
- Flow + stock variables
What are ‘flow variables’
- Flow variables are considdered to be the average flow over the period
- This means when we set the exact time of the average flow to the center of the period
What are stock variables?
- We consider stock variables to be the total amount at the end of the period
- The exact time for the stock variables is at the end of the hour
In Macroeconomics are there many types of stock + flow variables?
YES
What’s an example of a flow variable?
Consumption as it accumulates the stock of goods
What is the units per measurement for the flow of consumptions
Dollars per month
What if we have annual/quarterly for both stock + flow variables?
Stock:
Annual: End of the year –> Dec 31
Quarter: end of the quarter –> March 31
Flow:
Annual: July 1
Quarterly: Feb 15 (first quarter)
What’s an exampl of a stock/flow vairbale that is considered neither?
Temperature
What is the dates if its neither a flow or stock?
Every time we have a variable that represents an average we set the date to the middle and if its for the total over till the end (stock variable)
Can stock variables be averages?
YES stats Canada does it as they publish stats that use the average population
How do we define our datasets as time series?
- There might not be a column that has a definite date column (either fix or create one)
How to create a monthly time series?
- Add and use the year month date provided and make a column
- Its a monthly time series so we set the date to the middle of the month (flow variable)
How to name a table
- Go to ‘design’ and change the ‘table name’
How to create an annual time series?
- We create the date column
- However the actual day we set to the middle of the year as its annual flow vraible (july 1)
How to add a date column in decimal format
Annual time series
Decimal date = Year + 0.5
Quarterly:
Decimal date = Year + 1/8 + Q-1/4
Monthly:
Decimal date = year + 1/24 + M-1/12
What’s a big problem when numbers are saved in text format?
it affects mathematical oerpations so we to change it column by column