Motivation for analyzing time series data
Time series analysis
Forecasting and prediction
Project 1 overview
We will teach you enough to be dangerous
We are introducing you to the tip of the analytical iceberg. Learn more before you put this into practice.
Incorrect analysis can lead to worse conclusions than no analysis.
The problem:
We don’t know what will
happen in the future
The solution:
We can use past data to
make a guess about the future*
Time series data is a sequence of data points collected over time.
It typically consists of observations taken at regular intervals (e.g. every hour, every day, every week, etc.) and can be used to study trends and patterns over time.
Example: Store sales volume over time.
Time Series Analysis
learn about trends
compare current period to past periods
Forecasting
make an educated guess about future values
develop business strategy around forecasts
The statistical method often used with time series data is called time series decomposition.
This method breaks down time series data into several components, each representing an underlying pattern within the data.
Isolating these components and analyzing them separately is important for the following reasons:
Decomposition statistically deconstructs a time series into several components:
seasonality
trend
cyclical
residual or “noise”
Analysts may want to identify changes in the time series that are not just noise.
Structural breaks refer to points in time when there is a sudden and lasting change in the behavior of the time series data.
We refer to the “behavior” of any dataset as the “data generating mechanism” (or data generating process).
Statistically identifying these changes can be the goal of the analysis or an exploratory exercise.
Examples of structural breaks: Economic policy changes, technological innovations, natural disasters, or shifts in consumer behavior.
Briefly describe one reason for a structural break in a time series.
We might want to forecast. . .
power demand to decide whether to build new power plant
call volumes to schedule staff in call center
inventory requirements to meet demands
How could you use forecasting to improve decision-making in ag business or environmental and natural resource management?
Provide an example.
Use historical data to develop a model, then use the model to predict the future
Model quality depends on past data and assumptions
Forecasts are uncertain; we can quantify some of that uncertainty
Problem definition
Gathering data and institutional knowledge
Preliminary (exploratory) analysis
Choosing and fitting models
Using and evaluating a forecast model
Time series data is a common structure of data
Certain techniques are designed to analyze time series data
Forecasting is a common need
Introductions in this course (see Hyndman & Athanasopoulos (2021))
Groups of 2
Choose an ag biz or enre management question to answer with time series data
Collect time series data
Analyze trends
Generate a forecast
Present results in a recorded video
Context: Equipment dealers sell more when ag prices rise. Most people grow corn near dealer x.
Question: Will corn prices rise or fall in the next year and by how much?
Approach: Analyze time series of corn prices (decomp). Forecast corn PPI one year.
Present: Provide context (plot raw data) and describe decision. Explain your insights. Use effective graphics. Tell your data story.
Many sources of public data (e.g., St Louis FED, tidyquant, and more on course website)
Choose data appropriate to answer the question
Instructors and TA can help
Must include some:
time series analysis (unit 1 week 2)
forecasting (unit 2 week 3)
Identify an interesting question
Collect data
Develop analysis strategy, explore, refine
Develop presentation
Hyndman, R.J., & Athanasopoulos, G. (2021) Forecasting: principles and practice, 3rd edition, OTexts: Melbourne, Australia. https://otexts.com/fpp3/. Accessed on 02-14-2023.