Probability theory: A field of mathematics concerned with the examination of random processes is known as probability theory. A random…