A machine learning model to predict Nifty 50 stock prices with a Mean Absolute Error (MAE) of ₹60.
This project implements a stock price prediction model for Nifty 50 companies using historical data. The model achieves high accuracy with a Mean Absolute Error of just ₹60, making it a reliable tool for price forecasting.
- Historical stock price data analysis
- Price prediction for Nifty 50 companies
- MAE of ₹60 on test data
- Easy-to-use prediction script
- Comprehensive Jupyter notebook with analysis
nifty50-prediction/
├── main.ipynb
├── requirements.txt
├── .gitignore
└── README.md
- Clone the repository
git clone https://github.com/yash373/nifty-price-predictor.git
cd nifty-price-predictor
- Install required packages
pip install -r requirements.txt
- Open
main.ipynb
- Follow the step-by-step analysis and model development process
- Mean Absolute Error (MAE): ₹60
- Dataset: Historical Nifty 50 stock prices (All time series)
- Training-Testing Split: 75-25
- Validation Strategy: Time-series cross-validation
- Python 3.8+
- Pandas
- NumPy
- Scikit-learn
- Jupyter
- Fork the repository
- Create a new branch (
git checkout -b feature/improvement
) - Commit your changes (
git commit -am 'Add new feature'
) - Push to the branch (
git push origin feature/improvement
) - Create a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- NSE India for providing historical stock data
- Open-source community for various tools and libraries