This project analyzes Tesla stock data and builds machine learning models to predict and classify stock movements.
The analysis includes EDA, feature correlation, moving averages, and two models:
- Linear Regression → Predict Closing Price (regression task)
- Logistic Regression → Predict whether next day's price goes up (classification task)
- Predicts the Closing Price of Tesla stock.
- Evaluation metric: R² score, RMSE, MAE.
- Visualization: Actual vs Predicted Closing Prices.
- Predicts whether the price will go up or down next day (Price_Up = 1 or 0).
- Evaluation metrics: Accuracy, Precision, Recall, F1-score.
- Visualization: Confusion Matrix heatmap.
- Linear Regression (R²) → measures how well regression predictions fit actual prices
- Logistic Regression (Accuracy) → measures classification correctness
- Python, Pandas, NumPy
- Matplotlib, Seaborn
- Scikit-learn
git clone https://github.com/YOUR-USERNAME/Tesla-Stock-Prediction.git
cd Tesla-Stock-Prediction
pip install -r requirements.txt
jupyter notebook Tesla_Stock_Prediction.ipynb







