Skip to content

๐Ÿ”ฎ A simple machine learning project to predict stock prices using Linear Regression. Includes model training, .pkl file, and a Streamlit web app for live predictions.

Notifications You must be signed in to change notification settings

dhanraj-parigi/stock_price_prediction-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

9 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ“ˆ Stock Price Prediction Web App

๐Ÿ”ฎ Goal:
Build a machine learning-based web app that predicts future stock prices ๐Ÿ“‰๐Ÿ“ˆ using historical data and helps users make informed investment decisions ๐Ÿ’น.

Built with Streamlit for an interactive and user-friendly experience. ๐Ÿง‘โ€๐Ÿ’ป๐Ÿ“Š

๐Ÿง  Project Breakdown

๐Ÿ“Š 1. Exploratory Data Analysis (EDA)

  • Visualized historical stock trends
  • Analyzed volume, moving averages, and volatility
  • Checked seasonality and patterns in prices

๐Ÿงน 2. Data Preprocessing

  • Handled missing values
  • Scaled and normalized features
  • Converted date-time for trend analysis

๐Ÿค– 3. Model Training

  • Used regression models like:
    • ๐Ÿ“ˆ Linear Regression
    • ๐Ÿ” LSTM (Optional - for deep learning enhancement)

๐ŸŽฏ 4. Outcome

  • A trained model that predicts future stock prices
  • Helps support data-driven ๐Ÿ“Š investment strategies

*** ๐Ÿง  Features

  • ๐Ÿ“… Upload or fetch historical stock data (CSV or via API)
  • ๐Ÿ” Analyze stock trends with dynamic charts
  • ๐Ÿค– Predict future prices using:
    • Linear Regression
    • (Optional: Add LSTM or other models later)
  • ๐Ÿ“Š Visualize prediction results interactively
  • โšก Simple & clean UI using Streamlit **

๐Ÿง  Features

  • ๐Ÿ“… Upload or fetch historical stock data (CSV or via API)
  • ๐Ÿ” Analyze stock trends with dynamic charts
  • ๐Ÿค– Predict future prices using:
    • Linear Regression
    • (Optional: Add LSTM or other models later)
  • ๐Ÿ“Š Visualize prediction results interactively
  • โšก Simple & clean UI using Streamlit

๐Ÿงฐ Tech Stack

  • Python ๐Ÿ
  • Pandas, NumPy for data handling
  • Matplotlib, Seaborn for visualization
  • Scikit-learn for ML models
  • Streamlit ๐ŸŒ for web UI
  • (Optional) yfinance or Alpha Vantage for real-time data

๐Ÿš€ How to Run the App

๐Ÿ–ฅ๏ธ 1. Clone the repository

git clone https://github.com/your-username/stock-price-prediction.git
cd stock-price-prediction

๐Ÿ“ฆ 2. Install dependencies

bash
Copy
Edit
pip install -r requirements.txt


โ–ถ๏ธ 3. Run the Streamlit app

bash
Copy
Edit
streamlit run app.py


๐Ÿ“‚ Dataset Info

Format: CSV with columns like Date, Open, High, Low, Close, Volume

Can use:

Your own historical data

Or fetch using APIs like yfinance



๐ŸŽฏ Outcome
A lightweight, fast, and interactive app that:

Predicts next-day or future closing prices

Helps traders, investors, and students understand market patterns

Can be extended for other financial assets or use cases

About

๐Ÿ”ฎ A simple machine learning project to predict stock prices using Linear Regression. Includes model training, .pkl file, and a Streamlit web app for live predictions.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published