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:

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

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

bottom of page