Time Series Microeconomics

In this project, we will use the Microeconomic time series data from the Time Series Data Library to develop and evaluate four forecasting models ARIMA, Holt’s Winter, STLF, and TBATS to determine the most accurate method for predicting future profits and enhancing strategic financial planning.

Featured image

Overview

In this project, we focus on time series data from the Time Series Data Library (FinYang/tsdl). The dataset encompasses a wide range of 648 time series across various domains. Specifically, we examine the Microeconomic data subset, which includes 36 time series records. The data spans different frequencies, from very high (0.1) to annual (365), and covers a variety of subjects relevant to time series analysis. The goal is to develop and assess forecasting models tailored to microeconomic variables, providing insights and predictions for economic analysis and decision-making.

Click this link to directly access the report: Time Series Microeconomics

Directory Structure

The directory structure for this project is as follows:

Features of the Dataset

Benefits of the Interactive Data Tool

Column Descriptions

The dataset contains the following columns:

How to Use This Data

To utilize this dataset, follow these steps:

  1. Load the Libraries: Ensure that the required libraries are installed and loaded in your R environment.

    library(tidyverse) library(lubridate) library(forecast) library(TTR) library(fpp) library(tseries) library(TSstudio) library(padr) library(recipes) library(tidyquant) library(ggplot2) library(tsdl)

  2. Import the Dataset: Load the dataset from the Time Series Data Library. tsdl_microeconomic <- subset(tsdl, 12, “microeconomic”)
  3. Prepare and Clean the Data: Handle missing values and format the dataset as needed.

Exploring the Data

The exploratory data analysis involves:

Time series analysis includes:

Cross-Validation: Split the data into training and testing sets. test_micro <- tail(micro_ts, 24) train_micro <- head(micro_ts, -length(test_micro)) Modeling: Apply different forecasting models:

Visualizations

Visualizations include: Time Series Plots: Display the time series data and its components. Forecast Plots: Show the forecasts and confidence intervals.

Reporting

Generate reports summarizing:

Model Performance: Compare the forecasting accuracy of different models. Insights: Provide actionable insights based on the analysis.

Source

The dataset used in this project can be found at the following link: TSDL

Report for this project can be found at the following link: Time Series Microeconomics