This applet simulates the experiment of tossing four times a coin and computes the frequency of ocurrence of the five possible outcomes (independently of order):[br][br][list][br][*] Tail-Tail-Tail-Tail[br][*] Tail-Tail-Tail-Head[br][*] Tail-Tail-Head-Head[br][*] Tail-Head-Head-Head[br][*] Head-Head-Head-Head[br][/list][br][br]The coin can be a rigged one, having probability of landing on the head equal to [math]p[/math].
Choose a probability ([math]p=0.5[/math] corresponds to a balanced coin), click on [i]Initialisation[/i] to set up the simulation and then to [i]Start[/i].[br]To end the simulation click on [i]Stop[/i].[br][br]The binomial distribution is shown in red, while the simulated distribution appears in blue. See how an increase in the number of experiments results in a better approximation of the binomial distribution by means of the distribution of frequencies.