Python 統計學入門
Maggie Matsui
Content Developer, DataCamp
Poisson 事件間隔的機率
範例
也使用 lambda(速率)
連續(時間)


以速率(Poisson)表示:
以事件間隔(指數分配)表示:
from scipy.stats import expon
scale = $1/\lambda$ = $1/0.5$ = $2$$P(\text{wait} < \text{1 min})$ =
expon.cdf(1, scale=2)
0.3934693402873666
$P(\text{wait} > \text{4 min})$ =
1- expon.cdf(4, scale=2)
0.1353352832366127
$P(\text{1 min} < \text{wait} < \text{4 min})$ =
expon.cdf(4, scale=2) - expon.cdf(1, scale=2)
0.4711953764760207


其對數服從常態分配的變數
範例:

Python 統計學入門