<- rio::import("https://byuistats.github.io/timeseries/data/gdp_fred.csv") |>
ngdp mutate(yquarter = yearquarter(lubridate::mdy(quarter)))
<- as_tsibble(ngdp, index = yquarter)
ngdp1 # interval(ngdp1)
# has_gaps(ngdp1)
<- rio::import("https://byuistats.github.io/timeseries/data/GDPC1.csv") |>
rgdp mutate(yq = yearquarter(lubridate::ymd(DATE)))
<- as_tsibble(rgdp, index = yq)
rgdp1 # interval(rgdp1)
# has_gaps(rgdp1)
Time Series Homework: Chapter 3 Lesson 5
Eduardo Ramirez
Data
Questions
Question 1 - Context and Measurement (10 points)
The first part of any time series analysis is context. You cannot properly analyze data without knowing what the data is measuring. Without context, the most simple features of data can be obscure and inscrutable. This homework assignment will center around the series below.
Please research the time series. In the spaces below, give the data collection process, unit of analysis, and meaning of each observation for the series.
Nominal Gross Domestic Product - United States
https://fred.stlouisfed.org/series/NA000334Q
Real Gross Domestic Product - United States
Question 2 - US Nominal GDP (25 points)
a) Please use the Holt-Winters smoothing method to the US Nominal GDP series. Justify your model choice.
b) What parameters values did you choose for \(\alpha\), \(\beta\), and \(\gamma\). Justify your choice.
c) Please plot the Holt-Winters forecast of the series for the next 12 months superimposed against the original series. Please see Figure 7 in Chapter 3: Lesson 3.
d) How confident are you in your forecast? Please explain.
Question 3 - US Real GDP (25 points)
Nominal GDP measures the market value of US output. Because market prices change over time, inflation affects the series. Real GDP is an output measure that keeps prices constant at a point in time, which eliminates the effect of inflation.
In homework 2.1 you learned about the output gap, which is a measure of business cycles. In order to estimate the output gap we need some measure of potential GDP, that is, a series that smoothes-out the cycles in the real GDP series. We can do that by choosing the smoothing parameters of the H-W algorithm to capture only the long run path of the economy. The US Congressional Budget Office calculates a series for US Real Potential GDP, please refer to it for the questions that follow.
a) Please use H-W to smooth the US Real GDP series to obtain an estimate of US Potential GDP.
b) What parameters values did you choose for \(\alpha\), \(\beta\), and \(\gamma\). Justify your choice.
Rubric
Criteria | Mastery (10) | Incomplete (0) |
Question 1: Context and Measurement | The student thoroughly researches the data collection process, unit of analysis, and meaning of each observation for both the requested time series. Clear and comprehensive explanations are provided. | The student does not adequately research or provide information on the data collection process, unit of analysis, and meaning of each observation for the specified series. |
Mastery (5) | Incomplete (0) | |
Question 2a: HW Smoothing | Demonstrate the implementation of the Holt-Winters smoothing method in R, providing well-commented code that clearly explains each step of the algorithm. They correctly specify the necessary parameters, including trend and seasonality components. | Students encounter difficulties in accurately implementing the Holt-Winters smoothing method in R. Their code may lack sufficient comments or clarity, making it challenging to understand the implementation process. Additionally, they may overlook important parameters or make errors in the application of the method, leading to inaccuracies in the results. |
Mastery (10) | Incomplete (0) | |
Question 2b: Parameter Choice | Responses not only specify the chosen parameter values for $\alpha$, $\beta$, and $\gamma$ in the context of the Holt-Winters smoothing method but also correctly identify the purpose of each parameter in their explanation. They provide a thorough justification for each parameter choice, considering factors such as the data characteristics, seasonality patterns, and the desired level of smoothing | Student struggles to clearly specify the chosen parameter values for $\alpha$, $\beta$, and $\gamma$. It’s no clear that they understand the purpose of each parameter in their explanation. They may provide limited or vague justification for each parameter choice, lacking consideration of important factors such as data characteristics or seasonality patterns. |
Mastery (5) | Incomplete (0) | |
Question 2c: Forecast Plot | Responses effectively create a plot of the Holt-Winters forecast for the next 24 months superimposed against the original series in R. The forecasted values align with the original series and display relevant trends and seasonality patterns. Additionally, they appropriately label the axes, title the plot, and provide a clear legend to distinguish between the original series and the forecast. The plot closely resembles Figure 7 in the Time Series Notebook | Student encounter challenges in creating a plot of the Holt-Winters forecast. They may struggle with accurately implementing the plotting code, resulting in inaccuracies or inconsistencies in the plotted forecast. Additionally, their plot may lack proper labeling of the axes, a title, or a legend, making it difficult to interpret the information presented. Furthermore, their plot may deviate significantly from Figure 7 in the Time Series Notebook. |
Mastery (10) | Incomplete (0) | |
Question 3a: HW Smoothing | Demonstrate the implementation of the Holt-Winters smoothing method in R, providing well-commented code that clearly explains each step of the algorithm. They correctly specify the necessary parameters, including trend and seasonality components. | Students encounter difficulties in accurately implementing the Holt-Winters smoothing method in R. The students chose the incorrect model. Additionally, they may overlook important parameters or make errors in the application of the method, leading to inaccuracies in the results. |
Mastery (10) | Incomplete (0) | |
Question 3b: Parameter Choice | Responses not only specify the chosen parameter values for $\alpha$, $\beta$, and $\gamma$ in the context of the Holt-Winters smoothing method but also correctly identify the purpose of each parameter in their explanation. It’s clear the student compared the US Real Potential GDP series to their estimate and chose the parameters to match the characteristics of the example | Student struggles to clearly specify the chosen parameter values for $\alpha$, $\beta$, and $\gamma$. It’s no clear that they understand the purpose of each parameter in their explanation. They may provide limited or vague justification for each parameter choice, lacking consideration of important factors such as matching the example time series, data characteristics or seasonality patterns. |
Total Points | 55 |