Python ile İstatistiğe Giriş
Maggie Matsui
Content Developer, DataCamp



Haftalık ortalama sahiplenme sayısı 8 ise, $P(\text{\# bir haftadaki sahiplenme} = 5)$ nedir?
from scipy.stats import poissonpoisson.pmf(5, 8)
0.09160366
Haftalık ortalama sahiplenme sayısı 8 ise, $P(\text{\# bir haftadaki sahiplenme} \le 5)$ nedir?
from scipy.stats import poisson
poisson.cdf(5, 8)
0.1912361
Haftalık ortalama sahiplenme sayısı 8 ise, $P(\text{\# bir haftadaki sahiplenme} \gt 5)$ nedir?
1 - poisson.cdf(5, 8)
0.8087639
Haftalık ortalama sahiplenme sayısı 10 ise, $P(\text{\# bir haftadaki sahiplenme} \gt 5)$ nedir?
1 - poisson.cdf(5, 10)
0.932914
from scipy.stats import poisson
poisson.rvs(8, size=10)
array([ 9, 9, 8, 7, 11, 3, 10, 6, 8, 14])

Python ile İstatistiğe Giriş