View source: R/monte_carlo_price_paths.R View source: R/monte_carlo_paths.R View source: R/monte_carlo_paths.R
monte_carlo_paths | R Documentation |
Simulates multiple possible future paths of a stock price using a Monte Carlo method.
monte_carlo_paths(
days = 250,
mean = 1.001,
sd = 0.005,
S0 = 40,
number_of_possible_futures = 1000
)
days |
Number of days to simulate. |
mean |
Mean of the daily returns. |
sd |
Standard deviation of the daily returns. |
S0 |
Initial stock price. |
number_of_possible_futures |
Number of paths to simulate. |
A tibble containing the simulated paths.
monte_carlo_paths(days = 250, mean = 1.001, sd = 0.005, S0 = 40, number_of_possible_futures = 1000)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.