BaşlayınÜcretsiz başlayın

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.

Bu egzersiz, kursun bir parçasıdır

Foundations of Probability in Python

Kursa Göz Atın

Uygulamalı etkileşimli egzersiz

Bu egzersizi bu örnek kodu tamamlayarak deneyin.

# Import the poisson object
from scipy.stats import poisson

# Probability of 5 accidents any day
P_five_accidents = poisson.___(k=____, mu=____)

# Print the result
print(____)
Kodu Düzenle ve Çalıştır