Time Series Forecasting Using Unemployment Data

Introduction: Due to the COVID-19 pandemic, there has been an uptick in unemployment that is as unforeseeable as the pandemic itself. The uncertainty about the job market brought on by the pandemic has led us to be a little curious about the future levels of unemployment as we enter the workforce. Thus, we wanted to find a time series model that can most accurately forecast future unemployment rates. 

Dataset: The dataset used is from the US Bureau of Labor Statistics. The data range is from May 1950- June 2020.  

Partitioning: Training – 80% of observations Validation – 20% of observations (Models were based on the training set and the validation set was used as actual values that were compared to forecasted values to find the error of models).

Models: We compared several models listed below to find the best predictor for unemployment.

Naive Models:

  • Naive Method 
  • Drift Method
  • Seasonal Naive

Smoothing Models:

  • Simple Average Method
  • Moving Average Method
  • Exponential Smoothing Method
  • Holt-Winters

ARIMA:

  • Initial ARIMA
  • Rough Search ARIMA

Errors: After running all the models, we summarized the errors of each model in the table below in order to compare and determine the model with the lowest error, which would in turn be the best predictor of future unemployment rates. 

ModelMeRMSEMAEMPEMAPEMASE
Naive1.702.812.0118.0326.262.50
Drift1.822.872.0420.2326.202.54
Simple Moving Average0.662.331.87-0.5428.712.32
Exponential optimal1.702.812.0118.0326.252.50
Alpha=0.11.312.591.9011.0725.892.36
Alpha =0.31.572.741.9615.7525.902.44
Alpha =0.51.642.771.9916.8926.042.47
Alpha =0.71.672.792.0017.4526.142.49
Alpha =0.91.692.802.0117.8526.212.50
Holt6.146.736.14103.92103.927.62
ARIMA (2,1,2)1.812.882.0619.9126.702.56

The model with the lowest overall errors was the Simple Moving Average model

Forecasting: Using the Simple Moving Average model, we forecasted unemployment for July 2020.  

MonthPoint ForecastLow 80%High 80%Low 95%High 95%
July5.775.587.972.439.13

Analysis:

Since we started this project without July 2020 data, we forecasted for July. However, now we have the actual unemployment for July 2020 – 10.2%. While our simple moving average model’s point forecast is 5.77%, the model also forecasted a high unemployment rate of 9.13 using a 95% confidence interval. This is only an 8.82% error compared to the actual. Considering the uncertainty brought on by COVID-19, this percentage error shows that the model does an adequate job of predicting unemployment. 

Final Thoughts:  As we have seen, there are many lessons to learn from COVID-19. Just looking at the basis for time series forecasting, it works using historical data and predicts future events based on just the data. However, the limitation to this that has become obvious as we go through COVID- 19 is that there is not always a history to look back on and the numbers do not have the capability to tell the whole story. Models such as the ones we used only share one point of view that is subject to the interpretation of the data analyst. It is up to the analyst to use knowledge outside the numbers to explain results and tailor to circumstances. For example, in this case it takes knowledge about COVID-19 to make the decision to use the higher end predictions as the forecast since we know the pandemic has led to higher unemployment. 

References: If you would like access to the dataset we used or the R code for the models, please use the links below. 

https://data.bls.gov/pdq/SurveyOutputServlet

(Github)Link dataset:

https://github.com/unravelthedata/Time_Series_Using_Unemployment_Data/blob/master/unemploymentblog.csv

(Github)Link to R Code: https://github.com/unravelthedata/Time_Series_Using_Unemployment_Data/blob/master/Unemployment_Project_R_Code

Comments are closed.

Proudly powered by WordPress | Theme: Baskerville 2 by Anders Noren.

Up ↑