The random experiment consists of performing \(n\) Bernoulli trials, each with probability of success \(p\). The successes are recorded as red dots on a timeline marked from 1 to \(n\). The number of successes \(Y\) and the proportion of successes \(M\) are recorded on each update. Either \(Y\) or \(M\) can be selected with the list box. The probability density function and moments of the selected variable 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 the selected variable are shown in red in the distribution graph and are recorded in the distribution table. The parameters \(n\) and \(p\) can be varied with scroll bars.