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