高速公路事故範例
在一條相當繁忙的高速公路的某個轉彎處,平均每天發生 2 起事故。假設每天事故的次數可用 Poisson 隨機變數建模,且其分佈如下圖所示:

為方便你操作,scipy.stats 函式庫中的 poisson 物件已經匯入。
為了提升道路安全,區域政府的交通機關指派你完成以下任務。
本練習屬於課程
Python 機率基礎
動手互動練習
試著完成這個範例程式碼,體驗一下這個練習。
# 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(____)