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 results are recorded on each update in the data table. The parameters \(n\) and \(p\) can be varied with scroll bars. The coin tosses represent a sequence of \(n\) Bernoulli trials and also represent random sample of size \(n\) from the Bernoulli distribution.