- This project is a stock price prediction model that uses linear regression to predict the closing price of a given stock.
- The model is trained on the history of the data and evaluated on the a portion to determine its accuracy.
- The model acquires an accuracy of 90-99%
Get an API key from https://www.alphavantage.co/support/#api-key.
Choose the symbol ticket for the stock you want to predict from https://finance.yahoo.com or https://www.google.com/finance/.
- Download the Jupyter notebook file stock-price-prediction.ipynb from this repository.
- Open the downloaded file in Jupyter Notebook.
- Replace the api_key variable with your API key in the code cell that imports data from Alpha Vantage.
- Replace the symbol variable with your desired stock symbol in the code cell that imports data from Alpha Vantage.
- Run the notebook cells to see the data visualization and perform feature engineering and linear regression modeling.
- To predict the stock price for a specific date, modify the end_date_str variable in the notebook and run the appropriate cells.