Table of Contents
This project is designed to analyze and measure the historical performance of various stocks, focusing on key metrics such as percent change and adjusted close prices. By utilizing real-time stock data and adjusting for stock splits, the project allows for in-depth analysis and visualization of stock trends over time. The data is processed and visualized to provide insights into stock performance, helping users understand fluctuations and trends for companies like Amazon, Google, Tesla, and more.
hvplot
For interactive plotting of stock trends and percent changes.pandas
For data manipulation and analysis.requests
For making HTTP requests to external APIs.matplotlib
For static plotting of data.numpy
For numerical operations and calculations.panel
For creating interactive dashboards and visualizations.dash
For building web-based interactive visualizations and dashboards.
To install:
pip install hvplot pandas requests matplotlib numpy panel dash
- Alpha Vantage API: We used the Alpha Vantage API to retrieve historical stock data for analysis.
When analyzing stock data, we noticed anomalies such as sharp drop-offs in certain graphs. These discrepancies were due to stock splits, where companies increase the number of shares while reducing the price proportionally. To ensure accurate visualizations, we developed a function to adjust for these splits, resulting in split-adjusted prices for consistency in analysis.
Below are the graphs illustrating the stock prices before and after applying our stock split adjustments:
Below are two visualizations that demonstrate some of the key insights from our analysis:
With these adjustments in place, we generated the following visualizations to highlight key trends and insights.
This graph shows the cumulative percent change for all stocks over the selected period.
This graph visualizes the average daily percent change for each stock.
Here is a comparison table of key metrics for the stocks analyzed:
Check out the list of contributors to this project here.
- Danny Srour
- Daniel Lui
- Ryan Brown
- Cathy Schassberger
- Austin Cappetta
- Caleb Kelson