Exercise

Highway accidents example

On a certain turn on a very busy highway, there are 2 accidents per day. Let's assume the number of accidents per day can be modeled as a Poisson random variable and is distributed as in the following plot:

Probability mass function

For your convenience, the poisson object has already been imported from the scipy.stats library.

Aiming to improve road safety, the transportation agency of the regional government has assigned you the following tasks.

Instructions 1/4

undefined XP
  • 1

    Determine and print the probability of there being 5 accidents on any day.

  • 2

    Determine and print the probability of having 4 or 5 accidents on any day.

  • 3

    Determine and print the probability of having more than 3 accidents on any day.

  • 4

    Determine and print the number of accidents that is likely to happen with 0.75 probability.