Failed 0 ooooooooook 1000 passed question 5 for which

This preview shows page 12 - 14 out of 22 pages.

Failed: 0 [ooooooooook] 100.0% passed
Question 5. For which range of values does the plot in question 3 better depict the distribution of the population’s player values : 0 to 0.3, or above 0.3? Explain your answer.
1.4 4. Earthquakes The next cell loads a table containing information about every earthquake with a magnitude above 5 in 2019 (smaller earthquakes are generally not felt, only recorded by very sensitive equipment), compiled by the US Geological Survey. (source: ) [54]: earthquakes = Table() . read_table( 'earthquakes_2019.csv' ) . select([ 'time' , 'mag' , , 'place' ]) earthquakes [54]: time | mag | place 2019-12-31T11:22:49.734Z | 5 | 245km S of L'Esperance Rock, New Zealand 2019-12-30T17:49:59.468Z | 5 | 37km NNW of Idgah, Pakistan 2019-12-30T17:18:57.350Z | 5.5 | 34km NW of Idgah, Pakistan 2019-12-30T13:49:45.227Z | 5.4 | 33km NE of Bandar 'Abbas, Iran 2019-12-30T04:11:09.987Z | 5.2 | 103km NE of Chichi-shima, Japan 2019-12-29T18:24:41.656Z | 5.2 | Southwest of Africa 2019-12-29T13:59:02.410Z | 5.1 | 138km SSW of Kokopo, Papua New Guinea 2019-12-29T09:12:15.010Z | 5.2 | 79km S of Sarangani, Philippines 2019-12-29T01:06:00.130Z | 5 | 9km S of Indios, Puerto Rico 2019-12-28T22:49:15.959Z | 5.2 | 128km SSE of Raoul Island, New Zealand … (1626 rows omitted) If we were studying all human-detectable 2019 earthquakes and had access to the above data, we’d 12
Question 1. Are these samples representative of the population of earthquakes in the original table (that is, the should we expect the mean to be close to the population mean)? Hint: Consider the ordering of the earthquakes table. Question 2. Write code to produce a sample of size 200 that is representative of the popula- tion. Then, take the mean of the magnitudes of the earthquakes in this sample. Assign these to representative_sample and representative_mean respectively. Hint: In class, we learned what kind of samples should be used to properly represent the population. [29]: representative_sample = earthquakes . sample( 200 ) representative_mean = np . mean(representative_sample . column( 'mag' )) representative_mean [29]: 5.3229 [30]: ok . grade( "q4_2" ); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Running tests --------------------------------------------------------------------- Test summary Passed: 3 Failed: 0 [ooooooooook] 100.0% passed

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture