Hints: Simulating a Poisson process
Eksempel
Hints
Recall that if N(t) is a homogeneous Poisson process with intensity λ, the waiting times between events are independent and exponentially distributed with rate λ. These can be simulated using the rexp-function in R.