This project aims to predict stock prices using various machine learning techniques. We utilized a dataset containing historical stock data for a specific company, ABBV. The objective was to develop a robust predictive model to forecast future stock prices based on historical trends and other relevant features. Techniques such as linear regression, gradient descent optimization, and dimensionality reduction (PCA) were employed. The project's success is measured by evaluating the model's performance using metrics like Mean Absolute Error (MAE), Root Mean Squared Error (RMSE), and accuracy.
The dataset used in this project is historical stock data for ABBV. The data includes features such as the opening price, closing price, high, low, and volume of stocks traded. The preprocessing steps involved:
EDA was conducted to understand the data distribution and identify patterns. Key findings include:
The project utilized multiple machine learning techniques to predict stock prices:
Models were evaluated using MAE, RMSE, and accuracy. Cross-validation techniques were employed to ensure model robustness.
The results of the models are summarized as follows:
This project demonstrates the application of machine learning techniques to predict stock prices. Gradient descent optimization provided better performance compared to simple linear regression. PCA effectively reduced dimensionality, enhancing model performance. Future work involves exploring more advanced models such as LSTM and reinforcement learning for stock prediction.
Stock Price Prediction results showing original and predicted values for both training and test datasets.