Theory of probability is applied to