All problems
Poisson Process Waiting CDF
Problem
The waiting time to the first event in a Poisson process with rate lambda has CDF 1 - exp(-lambda t).
Given lambda and t >= 0, return the probability that an event has occurred by time t.
Hint
The waiting time is exponential with the same rate.
Test cases
case 1
in: [1,1]
expected: 0.6321205588285577
case 2
in: [0.5,2]
expected: 0.6321205588285577
case 3
in: [3,0]
expected: 0
Starter codePython
def poisson_process_waiting_cdf(lam, t):
# Your code here
pass3 test cases · run your code against them in the editor