Abstract
This paper aims to compare the stock prices trend for industries affected by the pandemic in the post-Covid era. Specifically, the delivery and cardboard box industry are chosen as examples to project future growth in four different Machine Learning Methods. Furthermore, an optimized asset portfolio is constructed based on the asset Efficient Frontier Minimum Volatility Asset in order to provide a more precise projection of the stock prices. After the projection comparison, the Linear Regression Model fails to exhibit a logical trend. In contrast, the remaining three methods, Decision Tree, Random Forest, and Gradient Boosting Models, correspondingly, all show similar results and reasonably project the future growth.
Introduction
The COVID-19 pandemic significantly disrupted global markets, creating distinct winners and losers. The delivery sector (FedEx, UPS) and the cardboard box industry (International Paper, WestRock) experienced unprecedented growth due to the surge in e-commerce. This study addresses whether these sectors can sustain their momentum in the post-pandemic recovery phase by applying machine learning models to forecast stock price trends.
Methodology
Portfolio Optimization and Data Selection
The researchers utilized historical stock data from Yahoo Finance for five key companies: FedEx (FDX), United Parcel Service (UPS), International Paper Company (IP), WestRock Co. (WRK), and Package Corporation of America (PKG). The dataset spanned from January 1, 2019, to June 30, 2021, capturing the full arc of the pandemic's impact.
To ensure a robust predictive environment, the study first performed portfolio optimization. Using Monte Carlo simulations, the researchers generated thousands of possible asset weightings. While a Maximum Sharpe Ratio approach suggested a heavy concentration in UPS (86.64%), the authors opted for a Minimum Volatility Portfolio to ensure better diversification and stability for model training.
Machine Learning Models
Four distinct algorithms were trained and compared:
- Linear Regression: A baseline model assuming linear relationships.
- Decision Tree (DT): A non-linear model that branches data based on feature values.
- Random Forest (RF): An ensemble method using bagging to reduce variance.
- Gradient Boosting (GB): An iterative ensemble method that corrects errors from previous trees.
Results and Discussion
Model Performance and Comparison
The analysis revealed a stark contrast between traditional linear modeling and ensemble learning. The Linear Regression model failed to produce a logical trend, projecting an unrealistic "moon-shot" vertical increase in stock prices. This failure underscores the model's inability to handle the complex regime shifts inherent in global crises.
In contrast, the tree-based models (DT, RF, and GB) provided realistic and consistent projections. While these models exhibited a slight "lag"—reacting to market shifts rather than predicting them ahead of time—they successfully captured the general recovery trend. The ensemble methods (Random Forest and Gradient Boosting) showed the least variance, making them the most reliable tools for steady, horizontal-line projections.
The "Cardboard Proxy" and Market Stability
The results suggest that the packaging industry serves as a strong proxy for the delivery industry. The models indicate that the shift toward online shopping represents a permanent behavioral change. Consequently, while a post-pandemic correction is expected, the delivery and cardboard sectors appear to have established a new, higher baseline value compared to pre-2020 levels.
Conclusion and Future Work
While the tree-based models proved effective, the study identified limitations. A notable anomaly occurred at the "500 level" of the dataset, where models showed a drastic price change that may be linked to a specific external event or data artifact. Future research should incorporate sentiment analysis from news and social media to help models anticipate sudden market incidents that price-and-volume data alone cannot foresee. Expanding the scope to include the broader e-commerce ecosystem, such as payment processors, would also provide a more holistic economic view.
Summary updated