Statistics for UV-visible spectroscopy