This personal project explores the relationship between credit card spending data and daily stock returns for 100 unique stocks. Using data on consumer transaction trends across different user cohorts, we investigate how spending patterns can forecast stock returns. The project applies various modeling techniques, including linear regression, Random Forest, and Lasso regression, to understand the predictive power of spending data on stock returns.
- 1. Data Loading and Exploration
- 2. Constructing the Spend Time Series
- 3. Seasonality Analysis and Correction
- 4. Improving the Baseline Model with Feature Engineering
- 6. Sector Performance Analysis
- 7. Trading Strategy Development
- 9. Additional Data Sources
- 10. Conclusion and Recommendations
final_report.pdf: Contains my written analysisModeling and Analysis.ipynb: Contains the modeling along my analysis step by stepREADME.md: Overview of the project (this file).
- Forecast Power: Smoothing the "total spend" variable shows a strong forecasting power of 0.8, indicating spending trends are effective predictors of stock returns.
- Model Performance: The models achieved low RMSE and MAE values, showing they capture significant variation in stock returns.
- Sector Analysis: Some sectors, particularly those directly influenced by consumer spending, perform better in predictive models.
- Potential improvements include exploring additional predictors, adjusting lag structures, and applying non-linear models. See Notebook for more