Timeline Distribution graph

#### Description

The negative binomial experiment consists of performing Bernoulli trials, with probability of success $$p$$, until the $$k$$th success occurs. The successes are shown as red dots in the timeline. The number of trials $$V$$ is recorded on each update in the data table. This random variable has a geometric distribution if $$k = 1$$ and more generally has a negative binomial distribution for any $$k$$. The probability density function and moments of $$V$$ are shown in blue in the distribution graph and are recorded in the distribution table. On each update, the empirical density function and moments of $$V$$ are shown in red in the distribution graph and are recorded in the distribution table. The parameters $$k$$ and $$p$$ can be varied with scroll bars.