Probabilistic stock price forecasting using Geometric Brownian Motion. 90% validated accuracy on historical backtests.
| Metric | Value |
|---|---|
| Validation Accuracy | 90.0% (30+ backtests) |
| Performance | 1000 simulations in <1 sec |
| Statistical Significance | p-value 0.67 (within expected range) |
- Monte Carlo Simulation — Normal and Student-t (fat-tailed) distributions
- Risk Metrics — VaR (95%, 99%), Sharpe Ratio, confidence intervals
- Validation Dashboard — Automated backtesting with regime analysis
- Model Comparison — Side-by-side Normal vs Student-t performance
git clone https://github.com/XCODESSS/Monte-Carlo-Simulation
cd Monte-Carlo-Simulation
pip install -r requirements.txt
streamlit run app.pyModel: Geometric Brownian Motion
S(t+1) = S(t) × exp((μ - 0.5σ²)Δt + σ√Δt × ε)
μ,σestimated from historical log returnsε~ Normal(0,1) or Student-t(df) for fat tails- 90% confidence intervals from simulation percentiles (5th, 95th)
Why Student-t? Real markets have fatter tails than Normal distribution predicts. Student-t captures extreme events (crashes, rallies) more accurately.
- Constant volatility — Model uses historical σ, but real volatility changes over time
- Log-normal returns — Assumes returns follow GBM; ignores jumps, mean reversion
- No fundamental factors — Doesn't consider earnings, P/E, macroeconomic data
- Historical parameters — Future may not resemble past
| Condition | Behavior |
|---|---|
| High volatility regimes | Hit rate drops ~5-10% |
| Regime changes (bull→bear) | Model lags behind transitions |
| Black swan events | Even Student-t underestimates extreme tails |
| Long forecast horizons (>3 months) | Intervals become very wide (50%+) |
Directional accuracy: ~50% — The model quantifies uncertainty well but doesn't predict direction better than chance.
Good for:
- Understanding price uncertainty ranges
- Risk assessment (VaR, downside scenarios)
- Comparing volatility across assets
- Educational purposes
Not good for:
- Trading signals
- Predicting direction
- Long-term forecasts (>3 months)
Python · NumPy · Pandas · SciPy · Streamlit · yfinance
Seeking Data Science / Financial Analysis internships for Summer 2026.