Theory of probability and its applications