Sampling statistics and applications: Fundamentals of the theory of statistics