FunctionRacerProblemsRace

Calls in an Hour

EasySciPyPython

A help desk gets rate calls an hour on average, and calls arrive independently (a Poisson process). Return the chance of exactly k calls in one hour.

Example 1

k 0
rate 1.0
returns 0.36787944117144233

With 1 call an hour on average, an empty hour has chance e to the power -1, about 0.368.

Constraints

Race itor take your time

Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.

More SciPy problems