P9.2: Reaction Yields

The file KCl-yields.txt, contains the results of an experiment in which 30 students measured the yield of KCl resulting from the decomposition of \(50\;\mathrm{g}\) of potassium chlorate, \(\mathrm{KClO_3}\) when it is heated in the presence of a manganese dioxide catalyst:

$$ \ce{2KClO_3 ->[\Delta, \ce{MnO2}] 2KCl + 3O2} $$

Read in these data with numpy.genfromtxt and identify missing data and mass values equal to zero or more than three standard deviations from the median. Omitting these entries, determine the maximum and minimum yields reported. Also calculate the mean and standard deviation of the sample's valid entries.

Create a new NumPy array of the students' yields as a percentage of the theoretical maximum yield and output it as a sorted list. Take the molar masses of \(\mathrm{KClO_3}\) and \(\mathrm{KCl_3}\) to be \(122.6\) and \(74.6\;\mathrm{g\,mol^{-1}}\)