This project implements a Long Short-Term Memory (LSTM) neural network model to predict Microsoft (MSFT) stock prices. The model analyzes historical stock data to forecast future price movements, utilizing deep learning techniques for time series prediction.
- Historical stock data analysis
- LSTM-based price prediction model
- Data preprocessing and normalization
- Time series analysis
- Visualization of predictions vs actual prices
- Python
- TensorFlow/Keras
- Pandas
- NumPy
- Matplotlib
- Scikit-learn
- Clone the repository:
git clone https://github.com/yourusername/Stock-Prediction-Microsoft.git
cd Stock-Prediction-Microsoft
- Install required dependencies:
pip install -r requirements.txt
- Open the Jupyter notebook:
jupyter notebook Microsoft_Stock_Forecasting_with_LSTMs.ipynb
- Follow the notebook cells sequentially to:
- Load and preprocess the stock data
- Build and train the LSTM model
- Generate predictions
- Visualize results
The project uses historical Microsoft stock price data, including:
- Opening price
- Closing price
- High and low prices
- Trading volume
- Date information
- LSTM neural network
- Multiple stacked LSTM layers
- Dropout layers for regularization
- Dense output layer for price prediction
The model's performance is evaluated using:
- Mean Squared Error (MSE)
- Root Mean Squared Error (RMSE)
- Visual comparison of predicted vs actual prices
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
- Data source: Yahoo Finance
- Inspiration: Deep Learning for Time Series Forecasting
- LSTM architecture references
Harshim Saluja - harshimsaluja1@gmail.com Project Link: https://github.com/harshim1/Stock-Prediction-Microsoft