This repository contains an in-depth analysis comparing the stock performance of Tesla and the S&P 500 index from 2011 to 2021. It includes visualizations and key insights into financial trends, trading volumes, and other metrics, leveraging Python and advanced data analytics techniques.
- Tesla's stock exhibits significantly higher volatility compared to the S&P 500.
- Periods of overbought and oversold conditions were identified using the RSI indicator.
- A positive correlation exists between Tesla's performance and the S&P 500 during certain timeframes.
- Detailed analysis highlights Tesla's trading volume trends and their relationship with closing prices.
- Python Libraries:
pandas
andnumpy
: For data manipulation and calculations.matplotlib
andseaborn
: For creating visualizations.
- Data Sources:
- Tesla Data:
better tesla data.csv
(processed Tesla stock data). - S&P 500 Data:
SPX.csv
(S&P 500 index data).
- Tesla Data:
- Files:
- Analysis script:
TslaAnalysisCode.py
.
- Analysis script:
- Clone this repository to your local machine:
git clone https://github.com/segevcoh7/Tesla-vs-SPX-Analysis.git