Skip to content

This project aims to build a machine learning model which can predict the closing price of Yes Bank stocks using regression analysis .

Notifications You must be signed in to change notification settings

Datawithabhishek/Yes-Bank-Stock-Closing-Price-Prediction

Repository files navigation

🔬 Regression Analysis On Yes Bank Stock Closing Price Prediction.

--------------------------------------------------------------------------------------------

N|Solid

This repository contains the code and dataset for predicting the closing price of Yes Bank stock using regression analysis. The project uses a dataset containing historical stock prices of Yes Bank from 2005 to 2020

--------------------------------------------------------------------------------------------

Problem Statement

Yes Bank is a well-known bank in the Indian financial domain. Since 2018, it has been in the news because of the fraud case involving Rana Kapoor. Owing to this fact, it was interesting to see how that impacted the stock prices of the company and whether any predictive models can do justice to such situations. This dataset has monthly stock prices of the bank since its inception and includes closing, starting, highest, and lowest stock prices of every month. The main objective is to predict the stock’s closing price of the month.

💾 Project Files Description

This Project includes :-

  • Google Colab NoteBook
  • Project Summary (with the GitHub Repo link inside)
  • Presentation Video
  • Data Source:

    • Dataset - Dataset taken from AlmaBetter

    Input Files:

  • data_YesBank_StockPrices.csv - It contains monthly observation of stock parameter such as open, high , low and close.
  • 🗺️ Roadmap and Navigation guide


    Step 1: Data Collection

    Collect the historical stock prices of Yes Bank from January 2005 to September 2020. Include variables such as opening price, highest price, lowest price, and closing price and date


    Step 2: Data Cleaning and Preprocessing

    Clean the dataset by removing any missing values, outliers, or errors. Preprocess the dataset by scaling or normalizing the features as necessary.


    Step 3: Regression Model Building

    Divide the dataset into training and testing sets. Implement Multiple Linear Regression ,Lasso Regression, Ridge Regression, Elastic net Regression, knn regressor and Random forest regressor models to predict the closing price of Yes Bank stock. Tune the models by adjusting the hyperparameters to optimize performance.


    Step 4: Model Evaluation

    Evaluate the models' performance using root mean squared error (RMSE) and mean absolute error (MAE) metrics. Compare the performance of the models to determine which one performs better.


    Step 5: Results and Conclusion

    Present the results of the regression analysis. Discuss the implications of the results and their potential impact on investors. Provide conclusions and suggestions for future research.

    --------------------------------------------------------------------------------------------

    🛠️ Builds with

    Python

    NumPy

    Pandas

    Matplotlib

    Seaborn

    scikit-learn

    SciPy

    Plotly

    GoogleColab

    📜 Conclusion

    After implementing various regression model and analyzing their respective performance matrics we came to the conclusion that the "KNN Regressor" is top performing models with respect to all the matrics. But when we look for the cross validation score and other factores such as time complexity

    About

    This project aims to build a machine learning model which can predict the closing price of Yes Bank stocks using regression analysis .

    Resources

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published