Emmanuel M.

asked • 04/10/19

Use python programming to make simulations

1.    One of the many methods of generating values ​​of a Poisson X random variable with parameter l is as follows.


1-Generate random variables Uniforms U1, U2, ...

            2-Let I be the smallest index such that

                    

          

             3- Do X = I-1


            Make a function in Python that simulates n Poisson values ​​with parameter using the given method.
(4) The number of customers arriving at a restaurant car behaves like a Poisson variable with  l=25 per hour. Simulate the arrival process by time intervals of 5 minutes.
(3) Using the simulated data, estimate the mean and variance of the number of clients that arrive at the car service in a period of 10 minutes.
(3) Estimate the probability that more than 10 cars arrive in half an hour. Compare the estimate with the true result.
If X is a Poisson with parameter l. Generate 1000 values ​​of the variable Y=(X-l)/l1/2      for l=5,10,20,30,40 and 50 and make your histogram, what comments do you deserve?


I need help solving this problem. It would be beneficial if you could answer it and provide the code used to prove the simulations. You can use anything to make the code, there are no limitations of any kind. Please check that code works on jupyter enviorment.



1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.