What is a possible R code to simulate a one-dimensional Brownian Motion path with each step explained?

前端 未结 0 1595
予麋鹿
予麋鹿 2020-12-02 03:49
n <- 1000
t <- 100
bm <- c(0, cumsum(rnorm(n,0,sqrt(t/n))))
steps <- seq(0,t,length=n+1)
plot(steps,bm,type="l",xlab="Time",ylab=&quo         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题