1.1 Question1: What is fpp3 package about? How many data sets does it have? What all packages does it load?
The fpp3 package is the companion package for the textbook Forecasting: Principles and Practice (3rd edition). It provides the data sets used in the book (25 data sets Figure 1) and automatically loads the main tidyverts packages for time series analysis. (Hyndman 2025)
From library(fpp3), we can see that it loads the following packages: tibble, dplyr, tidyr, lubridate, ggplot2, tsibble, tsibbledata, feasts, and fable.
Sys.setlocale("LC_TIME", "en_US.UTF-8")
[1] "en_US.UTF-8"
library(fpp3)
Warning: package 'fpp3' was built under R version 4.5.2
Registered S3 method overwritten by 'tsibble':
method from
as_tibble.grouped_df dplyr
A tsibble is a tidy time series data frame. It has an index (a time variable) and a key (which identifies different series). It follows tidy data principles, making it easy to use with dplyr, ggplot2, and other tidyverse tools.[ Wang, Cook, and Hyndman (2020)]
1.3 Question3: What is feasts package about?
The feasts package is used for exploring, visualizing, and describing time series data. It provides tools for decomposition, autocorrelation analysis, summary statistics, and visualizations. It helps us understand the patterns in our data before building models.[ O’Hara-Wild, Hyndman, and Wang (2025)]
1.4 Question4: What is fable package about?
The fable package is the forecasting and modeling package in the tidyverts ecosystem. It allows us to fit models such as ARIMA, ETS, and then generate forecasts using a tidy, consistent workflow. [ O’Hara-Wild, Hyndman, and Wang (2026)]
2 Part II
“For this assignment, I selected several Boston‑related data series from FRED. These include the All‑Transactions House Price Index for Boston, MA (MSAD), the Unemployment Rate in Boston, MA (MD), and All Employees: Manufacturing in Boston, MA (MD).”
2.1 Load Package
library(fredr)
Warning: package 'fredr' was built under R version 4.5.2
ggplot(hpi, aes(x = date, y = value)) +geom_line(color ="red",linewidth=1) +labs(title ="All-Transactions House Price Index for Boston, MA",subtitle="Quarterly,From 2016Q1~2025Q3",x ="Year", y ="Index 1995:Q1=100",caption="Source:Fred" )
ggplot(unemp_r, aes(x = date, y = value)) +geom_line(color ="orange",linewidth=1) +labs(title ="Unemployment Rate in Boston, MA (MD)",subtitle="Monthly,From Jan-2016 to Nov-2025",x ="Year", y ="Percent",caption="Source:Fred" )
ggplot(manu_e, aes(x = date, y = value)) +geom_line(color ="purple",linewidth=1) +labs(title ="All Employees: Manufacturing in Boston, MA (MD)",subtitle="Monthly,From Jan-2016 to Nov-2025",x ="Year", y ="Thousands of Persons",caption="Source:Fred" )
Wang, Earo, Dianne Cook, and Rob J Hyndman. 2020. “A New Tidy Data Structure to Support Exploration and Modeling of Temporal Data” 29: 466–78. https://doi.org/10.1080/10618600.2019.1695624.