Question: Write python code for all. 1. Using the Boston Maraton data (bm_results2012.csv, pasted below), write a Python program that will sample 5 racers official time

Write python code for all.

1. Using the Boston Maraton data (bm_results2012.csv, pasted below), write a Python program that will sample 5 racers official time using random sampling and plot a histogram of the sample.

name city gender age official country
Masazumi Soejima Fukuoka City M 41 83.45 JPN
Gebregziabher Gebremariam Tigray M 27 142.93 ETH
Ernst F. Van Dyk Paarl M 39 84.38 RSA
Kurt H. Fearnley Hamilton M 31 81.65 AUS
Kota Hokinoue Iizuka M 38 83.43 JPN
Levy Matebo Trans Nzoia M 22 133.1 KEN
Sharon Cherop Marakwet F 28 151.83 KEN
Wilson Chebet Marakwet M 26 134.93 KEN
Joshua R. Cassidy Toronto M 27 78.42 CAN

2. We know that the probability of snow days in the month of February of 1984 was 0.13452. Write a Python program to create a PMF of the binomial distribution of this data. Write the appropriate title, X and Y axis labels, legends and markers.

3. Write a python program to generate a PDF of a normally distributed function with the range from 10 to 45 with a standard deviation of 2.

4. Suppose we have a full deck of 52 cards, and one card is picked and put back into the deck, one more is picked and put back into the deck and one more is picked and put back into the deck. Write a Monte Carlo simulation where you run the simulation of this 3 card picks for 100 times. Calculate the probability of getting the face card (King, Queen, Jack) for each pick .

5. The rate of exponential decay of a radioactive element is 0.2321 per month. Write a python program to plot the distribution of the radiation for 15 years, if the initial radiation is 60 Ci.

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 Databases Questions!