Skip to content

Rakeshks7/gbm-stock-simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Geometric Brownian Motion Stock Simulator ๐Ÿ“ˆ

A quantitative finance tool that uses Monte Carlo simulations to predict future stock price paths based on historical volatility and drift. Built with Python.

๐Ÿš€ Overview

This project applies the Geometric Brownian Motion (GBM) modelโ€”the mathematical foundation of the Black-Scholes equationโ€”to real-time financial data. It allows users to:

  • Fetch live data for any stock/index (default: NIFTY 50).
  • Simulate 100+ potential future price paths over 1 year.
  • Calculate key risk metrics like Value at Risk (VaR) and expected returns.

๐Ÿ› ๏ธ Technology Stack

  • Python: Core logic.
  • yfinance: Real-time market data API.
  • NumPy & Pandas: Vectorized financial calculations.
  • Matplotlib: Visualization of simulation paths.

๐Ÿ“Š How to Run

  1. Clone the repository:
    git clone [https://github.com/YOUR_USERNAME/gbm-stock-simulator.git](https://github.com/YOUR_USERNAME/gbm-stock-simulator.git)
    

Disclaimer: This tool is for educational purposes only to demonstrate the mathematics of volatility. It does not constitute investment advice or a recommendation to buy/sell any securities.

About

Real-time Stock Price Simulator using Geometric Brownian Motion (GBM) & Monte Carlo methods. Includes Value at Risk (VaR) analysis for Risk Management.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages