The random experiment consists of tossing \(n\) coins, each with probability of heads \(p\). Random variable \(X_i\) gives the outcome (1 for heads, 0 for tails) for coin \(i\). The parameters \(n\) and \(p\) can be varied with scrollbars. The sequence of coin tosses \(\boldsymbol{X} = \left(X_1, X_2, \ldots, X_n\right)\) represents a sequence of \(n\) Bernoulli trials and also a random sample of size \(n\) from the Bernoulli distribution. This sequence is recorded in the data table on each run.