An introduction to statistics