montecarlo - How to do Monte Carlo simulations in R -


i have following information:

a = b/c b has mean of 50 sd of 10 c has mean of 3 sd of 0.5 

the distribution variables presumed normal.

how can run monte carlo simulation such situation? help.

for rough monte carlo, can run n experiment:

set.seed(1) n = 1000 = rnorm(n, 50, 10)/rnorm(n, 3, 0.5) mean(a) #[1] 17.09732 

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -