Question: Very confused on how to do the python section. Any help would be appreciated! (10 points) (Without Python) On any day at UCSB, the number

Very confused on how to do the python section. Any help would be appreciated!

Very confused on how to do the python section. Any help would

(10 points) (Without Python) On any day at UCSB, the number of bike accidents on the bike path has a Poisson distribution with parameter A. The parameter A varies from day to day and is itself a randorn variable. Find the mean and variance of the number of bike accidents per day when A is uniformly distributed on [0, 3). (30 points) (With Python) In this Python exercise, you will estimate the average and variance of the number of accidents per day. The setup for the problem is the same as above. Be sure to annotate your code with short explanations of what you are doing (worth 10 points). (a) Simulate choosing 50,000 points from the distribution of X. Start by choosing a ran- dorn number in the interval [0, 3). For each value chosen, choose a point from a Poisson distribution. (b) Compute the average and variance of X. Print out your results using the print function in Python. Please be sure to say want you are printing/outputting. For example, print("After our simulations, the average number of bike accidents per day is %s days." ZaverageNumberBikeAccidents) (c) Create a histogram of the frequencies of each value of X found in your simulations. Be sure to label your axes and title your plot. (d) Take a screenshot showing your code and your results side by side

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!