Our stock modeling project explores how effectively historical data can be used to predict future stock price movements. Using the Geometric Brownian Motion (GBM) model, we aimed to achieve over 50% accuracy when compared to historical data and investigate whether the validated model could serve as a reliable forecasting tool for future trends.
Modeling Question:
How accurately can we model previous years’ stock fluctuations to achieve over 50% accuracy against historical data, and can this validated model effectively predict future trends and prices?
This question emphasizes predictive accuracy and general market behaviors rather than specific market events, making it ideal for exploring stochastic financial models.
Modeling and predicting stock price movements is crucial due to the significant financial and economic implications for various stakeholders:
Achieving at least 50% accuracy in predicting stock price movements offers valuable insights for investment strategies and risk management practices.
The GBM model combines both predictable trends and random fluctuations to model stock prices over time. It’s commonly used in quantitative finance due to its ability to balance both elements in financial markets.
Mathematical Model:
Key Parameters:
The GBM model focuses on internal factors, such as daily closing prices, drift, and volatility. It deliberately excludes external factors like market news, economic events, and intraday price movements to maintain simplicity and focus on historical price patterns.
The GBM model was implemented using MATLAB and followed these steps:
% Simulate Stock Prices using GBM
mu_range = linspace(-0.5, 0.5, 100); % Drift coefficient range
sigma_range = linspace(0.1, 1, 100); % Volatility coefficient range
% Loop through parameter space
for mu = mu_range
for sigma = sigma_range
modeled_prices = simulatePrices(prices(1), length(prices), mu, sigma);
accuracy = calculateAccuracy(prices, modeled_prices);
if accuracy > best_accuracy
best_accuracy = accuracy;
best_mu = mu;
best_sigma = sigma;
end
end
end
The GBM model successfully achieved 92.99% directional accuracy, surpassing the original goal of 50%. This was validated by comparing historical Amazon stock prices against model-generated predictions.
Key Metrics:
The model’s sensitivity was tested with different volatility levels and drift rates:
The model was validated against historical data with the following results:
To enhance the model further, the following steps can be taken:
Our GBM-based stock modeling project successfully demonstrated high accuracy in predicting stock price movements. While limitations exist due to simplifying assumptions, the model offers valuable insights for investment strategies and risk management. The 92.99% directional accuracy, combined with a systematic parameter sweep and validation process, underscores its reliability for historical price modeling.
For more details, explore our project documentation and data here: Link to Project Data