# Using Monte Carlo methods for stock price prediction

As we explored in *Chapter 4**,* *Monte Carlo Simulations*, Monte Carlo methods simulate different evolutions of the process under examination using different probabilities that the event may occur under certain conditions. These simulations explore the entire parameter space of the phenomenon and return a representative sample. For each sample obtained, measures of the quantities of interest are carried out to evaluate their performance. A correct simulation means that the average value of the result of the process converges to the expected value.

## Exploring the Amazon stock price trend

The stock market provides an opportunity to quickly earn large amounts of money, that is, in the eyes of an inexperienced user at least. Exchanges on the stock market can cause large fluctuations in price attracting the attention of speculators from all over the world. In order to obtain revenues from investments in the stock market, it is necessary...