Check out the code notebook for more details! Stock Price Prediction
Dataset link: TSLA.csv
This project was developed as part of the Artificial Intelligence and Machine Learning Academy following my participation in the Ford Otosan "Gelecek Hayalim" Project. Through this program, I gained hands-on experience and mentorship, which significantly contributed to the successful implementation of the stock price prediction model.
This project aims to predict Tesla's stock prices using various machine-learning models. By utilizing historical stock price data, we built a predictive model to analyze whether it is beneficial to buy Tesla stock based on its predicted future prices. The project focuses on feature engineering and hyperparameter optimization to improve the accuracy of the model.
- Stock Price Prediction: Predicted Tesla's stock prices using various machine learning models.
- Exploratory Data Analysis (EDA): Analyzed the dataset to identify trends, patterns, and potential issues with the data.
-
- Data Visualization: Visualized stock price trends and prediction results using Matplotlib and Seaborn.
- Machine Learning Models: Utilized models such as Logistic Regression, Random Forest, Support Vector Machine (SVM), and XGBoost for predictions.
- Feature Engineering & Hyperparameter Tuning: Focused on enhancing the model's accuracy using feature engineering and hyperparameter optimization techniques.
- Programming Language: Python
- Libraries & Frameworks:
- Pandas
- NumPy
- Scikit-learn
- Matplotlib
- Seaborn
- Algorithms:
- Logistic Regression
- Random Forest
- Support Vector Machine (SVM)
- XGBoost
- Techniques:
- Feature Engineering
- Hyperparameter Optimization
The dataset used in this project was obtained from Kaggle and contains Tesla stock price data from 2010 to 2022. This dataset includes the following columns:
- Date: Date of the stock data entry.
- Open: Opening stock price.
- High: Highest stock price of the day.
- Low: Lowest stock price of the day.
- Close: Closing stock price.
- Volume: Number of shares traded.
- Adj Close: Adjusted closing price.
- Data Collection: The historical stock price data for Tesla was collected from Kaggle.
- Exploratory Data Analysis (EDA): Analyzed the dataset to identify trends, patterns, and potential issues with the data.
- Preprocessing: Data was cleaned and prepared for training the models.
- Feature Engineering: Key features were selected and engineered to improve model performance.
- Model Training & Evaluation: Various machine learning models were trained, evaluated, and optimized for accuracy.
- Prediction: The best-performing model was used to predict future stock prices.
- Clone this repository to your local machine:
git clone https://github.com/gamzegenc99/Stock_Price_Prediction.git
- Install the required dependencies:
pip install -r requirements.txt
- Open the
Stock_Price_Prediction.ipynbfile in Jupyter Notebook. - Run the cells sequentially to preprocess the data, train the models, and view the results.
- Modify the input parameters and data as needed to experiment with different configurations.
- Gamze Genç - Project Developer (Ford Otosan AI & ML Academy)
- Nesrin Vatansever - Project Developer (Ford Otosan AI & ML Academy)
This project is licensed under the MIT License - see the LICENSE file for details.