Question 3 suppose we want to figure out what the

This preview shows page 13 - 16 out of 19 pages.

Question 3.Suppose we want to figure out what the biggest magnitude earthquake was in2017, but we are tasked with doing this only with a sample of 500 from the earthquakes table.To determine whether trying to find the biggest magnitude from a sample is a plausible idea,write code that simulates the maximum of a random sample of size 500 from theearthquakestable 5000 times. Assign your array of maximums tomaximums.
13
In [121]:_=ok.grade('q4_3')~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Running tests---------------------------------------------------------------------Test summaryPassed: 1Failed: 0[ooooooooook] 100.0% passedQuestion 4.Is a random sample of size 500 likely to help you determine the largest magnitudeearthquake in the population? Find the magnitude of the (actual) strongest earthquake in 2017 tohelp you determine your answer.
14
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Running tests---------------------------------------------------------------------Test summaryPassed: 1Failed: 0[ooooooooook] 100.0% passedQuestion 5.Explain whether you believe you can accurately use a sample size of 500 to de-termine the maximum. What is a specific con of using the maximum as your estimator? Use thehistogram above to help answer.
1.55. Assessing Gary’s ModelsGames with GaryOur friend Gary comes over and asks us to play a game with him. The gameworks like this:We will flip a fair coin 10 times, and if the number of heads is greater than or equal to5, we win!Otherwise, Gary wins.We play the game once and we lose, observing 1 head.We are angry and accuse Gary ofcheating! Gary is adamant, however, that the coin is fair.Gary’s model claims that there is an equal chance of getting heads or tails, but we do notbelieve him. We believe that the coin is clearly rigged, with heads being less likely than tails.

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 19 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Fall
Professor
N/A
Tags
Simple random sample, Test Summary

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture