Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

Generate random numbers following Poisson distribution, Geometric Distribution, Uniform Distribution, and Normal Distribution, and plot them

from scipy.stats import poisson
data_poisson = poisson.rvs(mu=3, size=10000)
ax = sns.distplot(data_poisson,
                  bins=30,
                  kde=False,
                  color='skyblue',
                  hist_kws={"linewidth": 15,'alpha':1})
ax.set(xlabel='Poisson Distribution', ylabel='Frequency')
Comment

PREVIOUS NEXT
Code Example
Python :: how to get the end of a item in a python array 
Python :: função anonima python 
Python :: txt to image python 
Python :: how to import something in python 
Python :: model.predict knn 
Python :: class in python 
Python :: remove list from list python 
Python :: django-tool-bar 
Python :: get element from string with deliminator python 
Python :: python get time executed by function 
Python :: django group permissions method 
Python :: python matplotlib pyplot set axis equals 
Python :: django log queryset 
Python :: python print without optional argument 
Python :: pandas make currency with commas 
Python :: django request.data example 
Python :: how can I convert dataframe to list with in python without changing its datatype? 
Python :: fraction to float 
Python :: aiohttps 
Python :: django 3 create async rest api 
Python :: stemmer nltk 
Python :: python async await function 
Python :: uninstall python ubuntu 18.04 
Python :: kivy display pil image 
Python :: NumPy bitwise_and Syntax 
Python :: print string python 
Python :: dict comprehensions 
Python :: with torch.no_grad() if condition 
Python :: how to get a character from a string in python 
Python :: how to make every item compare the rest items of list in python 
ADD CONTENT
Topic
Content
Source link
Name
7+7 =