728x90 Binomial1 np.random.poisson & np.random.binomial np.random.poisson(lam,size) 일정한 단위 시간, 혹은 공간에서 무작위로 발생하는 사건의 평균 회수인 λ(lambda)가 20인 포아송 분포로 부터 100개의 난수를 만들어보겠습니다. # (1-3) 포아송 분포 (Poisson Distribution) # np.random.poisson(lam=1.0, size=None) # Poisson distribution is the limit of the binomial distribution for large N In [20]: np.random.seed(seed=100) In [21]: rand_pois = np.random.poisson(lam=20, size=100) In [22]: rand_pois Out[22]: array([21,.. 2021. 1. 7. 이전 1 다음 728x90