top of page

Predicting Stock Prices with
Geometric Brownian Motion

The project predicts the price of a stock after a desired period of time. It takes the mean and standard deviation of returns, then runs 1000 simulations using the Geometric Brownian Motion model to estimate the price range, then takes the mean of each day in the simulations to come up with a single price prediction.

Importing the necessary libraries:

Screen Shot 2022-09-12 at 13.56.16.png

Getting historical data, calculating mean and standard deviation of returns, then running the simulations using the Geometric Brownian Motion model:

Screen Shot 2022-09-12 at 13.56.36.png

Final output where the stock price is predicted and the simulations are plotted:

Screen Shot 2022-09-12 at 13.57.06.png
bottom of page