The probability theory begins in attempts to describe gambling (how to win, how to divide the stakes, etc.), probability theory mainly considered discrete events, and its…