The CDF of
NegativeBinomialDistribution is an example of a right-continuous function:
The number of tails before getting 4 heads with a fair coin:
Plot the distribution of tail counts:
Compute the probability of getting at least 6 tails before getting 4 heads:
Compute the expected number of tails before getting 4 heads:
A coin was flipped 10 times and the 8

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

:
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 number of shots the player is expected to shoot:
Find the probability that the player requires 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 shipment of products is inspected in batches of 60 and each batch is inspected up to rejection when the 10

defective item is found. What is the probability of a batch being rejected if 20% of the items are defective?
Alternatively, compute the same result by truncating the distribution:
Simulate the number of non-defective products in rejected batches:
Illustrate the ratio in each batch:
Find the average ratio of non-defective to defective products in rejected batches:
A data stream containing

data packets is repeatedly sent without order information. Find the distribution of the number of unordered data stream arrivals until all the packets arrive in the right order for the second time:
Find the probability that packets will arrive the second time in the correct order after at most 18 fails:
Find the average number of fails until the second ordered data stream:
Simulate the number of fails until the second ordered data stream: