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, 21.06.2019 16:00
In the 30-60-90 triangle below side s has a length of and side r has a length
Answers: 2
question
Mathematics, 21.06.2019 22:10
Rationalize the denominator- 12x/√x-10
Answers: 1
question
Mathematics, 21.06.2019 23:00
Which graph represents the linear function below? y-3=1/2(x+2)
Answers: 2
question
Mathematics, 21.06.2019 23:00
Edger needs 6 cookies and 2 brownies for every 4 plates how many cookies and brownies does he need for 10 plates
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, 23.10.2020 17:40
question
Mathematics, 23.10.2020 17:40
question
Social Studies, 23.10.2020 17:40
question
Social Studies, 23.10.2020 17:40