This comprehensive analysis explores the dynamics of technology sector layoffs within the context of broader economic indicators. Given the challenging nature of the job market in 2023, particularly in the technology industry, my goal was to uncover the key economic factors influencing the current employment landscape. To achieve this, I have crafted a sophisticated STATA code that not only runs on Stata to confirm my hypotheses but also encompasses a Python Vector Auto Regression Streamlit website, offering a deeper dive into the interplay between economic trends and tech layoffs.
Tuguldur Gantulga Timothy P. Bianco, PhD Gregory Kapfhammer, PhD
Fall 2023 - Spring 2024
The Business and Economics Department Department of Computer and Information Science Allegheny College, Meadville, PA 16335
In 2023, with a staggering 263,180 software engineers laid off by 1,193 companies, as reported by Layoffs.fyi, I sought to uncover the economic factors driving this turmoil in the U.S. job market. To conduct a thorough economic analysis, I applied my computer science expertise. The hypotheses and macroeconomic variables I formulated are as follows:
The dataset underpinning the Vector Autoregression (VAR) model in my study encompasses monthly data ranging from December 2000 to December 2023, forming the basis of a comprehensive time series analysis. Utilizing public macroeconomic datasets, such as the Federal Funds Rate, the U.S. Uncertainty Index, Industrial Production, the Number of Layoffs in the IT Sector, and Inflation, all sourced from the Federal Reserve Economic Data (FRED), I meticulously examined the intricate dynamics at play. In addition to these datasets, my research involved a detailed examination of basic trend data from Layoffs.fyi, which I analyzed using Tableau to gain further insights into the patterns and precipitants of tech sector layoffs.
I utilized these data to run my Vector Auto Regression (VAR) on Stata and to test my hypothesis, as mentioned above in the Introduction section, using my own VAR code written in Python. After developing my VAR scripts, I aimed to display my results through Streamlit and to plot the Impulse Response Function (IRF) graphs necessary for this research question. When working on the streamlit software side, I successfully integrated tools such as Docker, Statsmodels, Python, NumPy, Poetry, and functional practices to ensure my results and code were accurate.
Based on my VAR results and the Impulse response functions from both Stata and my Python statsmodels VAR, they concluded that:
The research proved:
The research disproved and disgareed with:
In future work for this senior project, I aim to refine the macroeconomic variables impacting layoffs, acknowledging the complexity of accurately predicting layoffs due to factors such as company structure, business demand, organizational changes, and product specifications. The SBIC and HQIC results indicated that a 2-month lag is optimal for the Vector Autoregression (VAR) model, prompting plans to run the VAR with this lag and evaluate any deviations in the Impulse Response Function (IRF) results from those based on a 12-month lag. Additionally, I plan to explore various predictive models, including neural networks and machine learning algorithms, to assess their effectiveness in generating distinct IRF narratives
https://python-poetry.org/docs/#installing-with-the-official-installer
poetry shell
poetry install
poetry run streamlit run src/app/main.py
http://localhost:8501
on your web browser.First, go to Docker and Install Docker Desktop
To run the tugi-artifact
app, first pull the image from Docker Hub:
docker pull tuduun/tugi-artifact:v1.0.1
docker run -p 8501:8501 tuduun/tugi-artifact:v1.0.1
http://localhost:8501
on your web browser.