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
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?