Introduction to the theory of statistics