Python Poisson Distribution - Numpy Random Poisson

preview_player
Показать описание

^Downloadable code & more!

1. the expected number of occurrences (lambda - mean/variance)
2. the length of the output array (how many times to draw a random sample)

For more videos see Python Marathon playlist by Rylan Fowers.





#PythonMarathon #LearnPython #PythonTutorial Learn Python:

Video Equipment:

Other:
Рекомендации по теме
Комментарии
Автор

what if we want to plot a histogram of time between arrivals? from the histogram in your video we see that we mostly get zeros and sometimes ones. lets say that first 1 occurs at location 5, then this is our first arrival and the next 1 occurs at location 27 which means that our second arrival is 27-5 = 22, if i want to repeat this process until we get to the end of the points, and then plot a histogram of that list, how can we do that?

hussainfmhhaskar
Автор

how would you do this

Say you started a YouTube channel about a year ago. You’ve done quite well so far and have collected some data. You want to know the probability of at least x visitors to your channel given some time period. The obvious choice in distributions is the Poisson distribution which depends only on one parameter, λ, which is the average number of occurrences per interval. We want to estimate this parameter using Maximum Likelihood Estimation.

Simulate 100 visits to your youtube channel, assuming that they will a Poisson distribution with a mean of 10 visits per minute. Plot the arrival time vs visitor index.

Captinofthemudslayer
Автор

Hi Rylan,

Can you help me with this:
You are waiting for a bus to take you home. There are two buses you can take to get home: red buses arrive at an average rate of 4 per hour, and blue buses arrive at a rate of 5 per hour. You always take whichever bus comes first. If you want to do Python simulation to determine [a] what is the average time you wait before catching a bus, and [b] the likelihood of taking a red bus home.
How can I do that can you guide me please?

Mr.AsKaRoo
Автор

Good explanation with code, but note for the future that it's pronounced like "pwus-son". Source: I have a math PhD :)

tunercvr
Автор

How to do the Poisson distribution with mean and standard deviation, pls help Rylan

ArunKumar-skng