Theory of probability and Its applications