In the following lines of code, we take two different samples from the earthquake table, and calculate the mean of the magnitudes of
these earthquakes. 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)?
Consider the ordering of the
Suppose we want to figure out what the biggest magnitude earthquake was in 2017, 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 the
table 5000 times. Assign your array of maximums to
Write code producing a sample that should represent the population of size 500 then take the mean of the magnitudes of the
earthquakes in this sample. Assign these to
In class, what sort of samples can properly represent the population?