For which range of values does the plot in question 3

This preview shows page 14 - 16 out of 24 pages.

Question 5.For which range of values does the plot in question 3 better depict the distribution ofthe population's player values: 0 to 0.3, or above 0.3? Explain your answer.
4. EarthquakesThe next cell loads a table containing information about every earthquake with a magnitudeabove 5in 2019 (smaller earthquakes are generally not felt, only recorded by very sensitiveequipment), compiled by the US Geological Survey. (source:())In [45]:earthquakes = Table().read_table('earthquakes_2019.csv').select(['time', 'mag', 'place'earthquakes Out[45]:timemagplace2019-12-31T11:22:49.734Z5245km S of L'Esperance Rock, New Zealand2019-12-30T17:49:59.468Z537km NNW of Idgah, Pakistan2019-12-30T17:18:57.350Z5.534km NW of Idgah, Pakistan2019-12-30T13:49:45.227Z5.433km NE of Bandar 'Abbas, Iran2019-12-30T04:11:09.987Z5.2103km NE of Chichi-shima, Japan2019-12-29T18:24:41.656Z5.2Southwest of Africa2019-12-29T13:59:02.410Z5.1138km SSW of Kokopo, Papua New Guinea2019-12-29T09:12:15.010Z5.279km S of Sarangani, Philippines2019-12-29T01:06:00.130Z59km S of Indios, Puerto Rico2019-12-28T22:49:15.959Z5.2128km 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 be in good shape - however, if the USGS didn’t publish the full data, we could still learnsomething about earthquakes from just a smaller subsample. If we gathered our sample correctly,we could use that subsample to get an idea about the distribution of magnitudes (above 5, ofcourse) throughout the year!In the following lines of code, we take two different samples from the earthquake table, andcalculate the mean of the magnitudes of these earthquakes.In [46]:sample1 = earthquakes.sort('mag', descending = True).take(np.arange(00)) sample1_magnitude_mean = np.mean(sample1.column('mag'sample2 = earthquakes.take(np.arange(100sample2_magnitude_mean = np.mean(sample2.column('mag'[sample1_magnitude_mean, sample2_magnitude_mean]
1
))
))
))
Question 1.Are these samples representative of the population of earthquakes in the originaltable (that is, the should we expect the mean to be close to the population mean)?Hint:Consider the ordering of the earthquakestable.

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture