This repository contains a Python script for predicting stock prices using historical data. The script utilizes machine learning models to forecast the future performance of a stock based on historical price and volume data.
- Fetches historical stock data from Yahoo Finance API
- Preprocesses and cleans the data
- Trains a machine learning model to predict stock prices
- Evaluates model performance using regression metrics
- Provides predictions for the next day's stock price and range
- Python 3.x
- Pandas
- Scikit-learn
- Requests
- yfinance
Install the required packages using pip:
pip install pandas scikit-learn requests yfinance