Hackathon: SH Hacks 2025
Developers: Thomas Wu (@TakumiBC) & Lily Ding (@Lily-D-coder)
School: Shanghai Starriver Bilingual School
The Stock Trend Predictor is an innovative tool that forecasts the future performance of AAPL stock. By combining multiple analytical methods, this project delivers a robust prediction of stock trends over the next two months. It highlights the practical power of data analytics and advanced mathematics to derive actionable insights in finance.
- Source: Historical stock data is retrieved from Alpha Vantage.
- Purpose: Ensures a reliable foundation for our analysis.
- Cleaning & Organization: The raw data is cleansed, structured, and transformed into numerical values.
- Preparation: Dates are converted into numeric format to enable mathematical modeling.
- Calculus-based Polynomial Regression:
A higher-degree polynomial is fitted to the data to capture non-linear trends using calculus, revealing the underlying growth pattern. - Holt’s Linear Trend Model:
A time-series forecasting method that analyzes recent trends and levels to predict future values.
- Combination: Predictions from both methods are averaged to form an ensemble forecast.
- Advantage: This integrated approach enhances overall prediction accuracy.
- Graphical Insight: A comprehensive graph displays historical stock prices alongside the predicted trend for the next two months, providing clear insights into potential future performance.
-
Robust Predictions:
The ensemble approach leverages the strengths of both polynomial regression and Holt’s model, resulting in a more reliable forecast. -
Clear Visual Representation:
Graphs clearly delineate historical data from future predictions, making complex trends easily understandable.
The Stock Trend Predictor exemplifies how advanced analytical methods can be combined to effectively forecast financial trends. Developed by Thomas Wu and Lily Ding, this project from Shanghai Starriver Bilingual School not only offers practical insights into stock market behavior but also embodies the innovative spirit of SH Hacks 2025. We look forward to inspiring further exploration at the intersection of technology, mathematics, and finance.
This project is licensed under the MIT License.