Introduktion till statistik i Python
Maggie Matsui
Content Developer, DataCamp
Sannolikhet för tid mellan Poisson-händelser
Exempel
Använder också lambda (hastighet)
Kontinuerlig (tid)


I termer av hastighet (Poisson):
I termer av tid mellan händelser (exponential):
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


Variabel vars logaritm är normalfördelad
Exempel:

Introduktion till statistik i Python