subject
Mathematics, 16.04.2020 01:02 sakinahunt

Load the data file united summer2015.csv in Python. The data contains dates, flight numbers, destination and delay in minutes for United airline flights during summer 2017. A negative number for the delay implies the flight arrived early. a. We are interested in the variable 'Delay'. Create a histogram for this variable. Now re-draw the histogram with bins of width 10 and range starting and ending from -30 to 301 respectively. Comment in a few lines what you can say about this variable? Make sure your output includes both histograms. b. Subset your data set to only include flights that are between 10 to 20 minutes late. Use Python to find the proportion of flights that are 10 to 20 minutes late. c. We want to next randomly sample n flights from the whole data set and look at the median value of the variable 'Delay'. Define a function random_sample_median which will randomly sample 1000 values from the data set with replacement and return us the median of the variable 'Delay'. d. Using the function defined in the above part, simulate 5000 medians from samples of size 1000 using a for loop. e. Create a histogram of the simulated median values. Which value for the median appears to be most probable?

ansver
Answers: 2

Another question on Mathematics

question
Mathematics, 20.06.2019 18:04
Ihonestly don’t understand this at all
Answers: 2
question
Mathematics, 21.06.2019 17:40
Atriangle has an area of 72 square inches. if the base of the triangle has a length of 18 inches, what is the height of the triangle? use the formula for the area of a triangle: area = (base)(height) type a numerical answer in the space provided. do not include the units or spaces in your answer.
Answers: 1
question
Mathematics, 21.06.2019 18:30
The base of a triangle is 8 1 3 meters and the height of the triangle is the fourth root of 16 meters meters. what is the area of the triangle?
Answers: 3
question
Mathematics, 21.06.2019 19:30
How are sas and sss used to show that two triangles are congruent?
Answers: 1
You know the right answer?
Load the data file united summer2015.csv in Python. The data contains dates, flight numbers, destina...
Questions
question
Mathematics, 19.01.2021 03:10
question
Mathematics, 19.01.2021 03:10
question
Mathematics, 19.01.2021 03:10
question
Chemistry, 19.01.2021 03:10
question
Mathematics, 19.01.2021 03:10
question
Mathematics, 19.01.2021 03:10
question
Mathematics, 19.01.2021 03:10
Questions on the website: 13722360