The CDF of
PascalDistribution is an example of a right-continuous function:
The number of fair coin flips before 3 heads:
Plot the distribution of the number of flips:
Find the probability of getting 3 heads in no more than 6 flips:
Find the average number of flips before getting 3 heads:
Simulate the number of coin flips before getting 3 heads:
A coin was flipped 10 times and the

head occurred at the 10

flip. Find the probability of such an event if the coin is fair:
Assuming the coin may not be fair, find the most likely value for p:
A basketball player shoots free throws until he hits 4 of them. His probability of scoring in any one of them is 0.7. Simulate the process:
Find the average number of throws until 4 hits:
Find the probability that the player needs exactly 4 shots:
Assume the probability of fouling for each minute interval is 0.1 independently. Simulate the fouling process for 30 minutes:
A basketball player fouls out after 6 fouls. Find the expected playing time until foul out:
A data stream containing 4 data paclets is repeatedly sent without order information. Find the distribution of the number of tries until the data stream arrives with all the paclets in the right order for the second time:
Find the probability that paclets will arrive the second time in the correct order on the 20

try or sooner:
Find the average number of tries until the second ordered data stream:
Simulate the number of tries until the second ordered data stream: