The Python Oracle

Probability distribution function in Python

--------------------------------------------------
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Over a Mysterious Island Looping

--

Chapters
00:00 Probability Distribution Function In Python
00:51 Accepted Answer Score 2
01:04 Thank you

--

Full question
https://stackoverflow.com/questions/7062...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #numpy #probability #histogram

#avk47



ACCEPTED ANSWER

Score 2


It's not clear what your hist function is. If you're using NumPy's histogram, try setting density=True. See http://docs.scipy.org/doc/numpy/reference/generated/numpy.histogram.html .