A Machine Learning Analysis of Seasonal and Cyclical Sales in Weekly Scanner Data

40 Pages Posted: 7 Jun 2019 Last revised: 8 Apr 2023

See all articles by Rishab Guha

Rishab Guha

Harvard University

Serena Ng

Columbia University - Columbia Business School, Economics

Date Written: May 2019

Abstract

This paper analyzes weekly scanner data collected for 108 groups at the county level between 2006 and 2014. The data display multi-dimensional weekly seasonal effects that are not exactly periodic but are cross-sectionally dependent. Existing univariate procedures are imperfect and yield adjusted series that continue to display strong seasonality upon aggregation. We suggest augmenting the univariate adjustments with a panel data step that pools information across counties. Machine learning tools are then used to remove the within-year seasonal variations. A demand analysis of the adjusted budget shares finds three factors: one that is trending, and two cyclical ones that are well aligned with the level and change in consumer confidence. The effects of the Great Recession vary across locations and product groups, with consumers substituting towards home cooking away from non-essential goods. The adjusted data also reveal changes in spending to unanticipated shocks at the local level. The data are thus informative about both local and aggregate economic conditions once the seasonal effects are removed. The two-step methodology can be adapted to remove other types of nuisance variations provided that these variations are cross-sectionally dependent.

Suggested Citation

Guha, Rishab and Ng, Serena, A Machine Learning Analysis of Seasonal and Cyclical Sales in Weekly Scanner Data (May 2019). NBER Working Paper No. w25899, Available at SSRN: https://ssrn.com/abstract=3399280

Rishab Guha (Contact Author)

Harvard University ( email )

Serena Ng

Columbia University - Columbia Business School, Economics ( email )

420 West 118th Street
New York, NY 10027
United States

Do you have negative results from your research you’d like to share?

Paper statistics

Downloads
12
Abstract Views
401
PlumX Metrics