The binomial experiment

Recall that the multi-stage random experiment is an experiment that is formed by the execution of several other random experiments. In the simplest case, these other random experiments are all identical, independent of each other, and can only have 22 different outcomes (so called Bernoulli Experiments). If this is the case, we call the multistage experiment a binomial experiment.

The prototypical binomial experiment you should always have in mind is "flipping a coin" a fixed number of times, say n=5n=5 times. Indeed, the experiment "flipping a coin once" is a Bernoulli experiment: there are only two outcomes (head or tail), and if executed several times, the results of the experiment are independent of each other other.

Let's be a bit more formal:

Definition 1

Consider an experiment with the two events success (SS) and failure (FF). We call this experiment a Bernoulli experiment if SS and FF form a partition of the sample space, and repeating the experiment does not change the proabability for SS and FF to occur (they are independent).

In other words: Each time we perform the experiment, either SS or FF will happen, but not both, and the probabilities p(S)p(S) and p(F)p(F) do not change and

p(S)+p(F)=1p(S)+p(F)=1

We call p(S)p(S) the success probability and p(F)p(F) the failure probability.

Example 1
  1. Flipping a coin with SS="head occurred" and FF="tail occurred" is a Bernoulli experiment (assuming that the case "landing on its edge" is excluded as a possibility). If the coin is fair, the success probability is p(S)=p(H)=0.5p(S)=p(H)=0.5 and the failure probability is p(F)=p(T)=0.5p(F)=p(T)=0.5.
  2. Rolling a die with SS="a six occurred" and FF="no six occurred" is a Bernoulli experiment. If the die is fair, the success probability is p(S)=1/6p(S)=1/6 and the failure probability is p(F)=5/6p(F)=5/6.
Definition 2

Consider a Bernoulli experiment with success probability p=p(S)p=p(S), which is repeated nn times. This new experiment is called a binomial experiment with repetition number nn and success probability pp.

Other names for a binomial experiment are a sequence of Bernoulli experiments or a Bernoulli chain of length nn and success probability pp.

We can make this definition more formal, but it is quite technical. Uncollapse to see.

Show

To be more precise, if we define the events

Si="success in repetition i"Fi="failure in repetition i"\begin{array}{lll} S_i&=&\text{"success in repetition $i$"}\\ F_i&=&\text{"failure in repetition $i$"}\end{array}

then the constant (non-changing) probability can be expressed as:

p=p(S1)=...=p(Sn)1p=p(F1)=...=p(Fn)\begin{array}{rll} p&=&p(S_1)=...=p(S_n)\\ 1-p&=&p(F_1)=...=p(F_n)\end{array}

and the independence of the events as:

p(S2)=p(S2S1)=p(S2F1)p(S3)=p(S3S1S2)=p(S3F1S2)=p(S3S1F2)=p(S3F1F2)...p(Sn)=p(SnS1...Sn1)=p(SnF1...Sn1)...=p(SnF1...Fn1)\begin{array}{rll} p(S_2)&=&p(S_2\vert S_1)\\ &=&p(S_2\vert F_1)\\ p(S_3)&=&p(S_3\vert S_1\cap S_2)\\ &=&p(S_3\vert F_1\cap S_2)\\ &=&p(S_3\vert S_1\cap F_2)\\ &=&p(S_3\vert F_1\cap F_2)\\ ...&&\\ p(S_n)&=& p(S_n \vert S_1\cap ...\cap S_{n-1})\\ &=& p(S_n \vert F_1\cap ...\cap S_{n-1})\\ &...&\\ &=& p(S_n \vert F_1\cap ...\cap F_{n-1})\\ \end{array}

A binomial experiment with parameters nn and pp is best represented with the following tree:

The tree has nn generations, and

Si="success in repetition i"Fi="failure in repetition i"\begin{array}{lll} S_i&=&\text{"success in repetition $i$"}\\ F_i&=&\text{"failure in repetition $i$"}\end{array}

and pp is the success probability and 1p1-p the failure probability.

Example 2

Are the following experiments binomial experiments? If so, what is the repetition number nn and success probability pp?

  1. Flipping a fair coin 1010 times, success is "head occurs".

  2. Rolling a fair die twice, success is "a six occurs".

  3. A box contains 44 red, 55 white and 66 black balls. You select at random 44 balls. Success is "a black ball is selected".

Solution
  1. yes, n=10,p=0.5n=10, p=0.5.

  2. yes, n=2,p=1/6n=2, p=1/6.

  3. Define S1S_1="black ball in first selection" and p(S2)p(S_2)="black ball in second selection". If the selection is with replacement then it is a binomial experiment because the repetitions (or events S1S_1 and S2S_2) are independent of each other. It is n=4n=4 and success probability p=6/15p=6/15.

    However, if the selection is without replacement, then it is not an binomial experiment, because p(S1)p(S_1) and p(S2)p(S_2) are not the same: p(S1)=6/15p(S_1)=6/15, and p(S2)=6/14p(S_2)=6/14 (first selection was red), p(S2)=6/14p(S_2)=6/14 (first selection was white) and p(S2)=5/14p(S_2)=5/14 (first selection was black).

Recall the path rules for probability trees. For example, if n=3n=3, the probability for three successes is calculated by multiplying the three branch probabilities:

p(SSS)=p(S1S2S3)=ppp=p3p(SSS)=p(S_1\cap S_2\cap S_3)=p\cdot p\cdot p=p^3

and the probability that there are two successes followed by a success or a failure is the sum of the corresponding path probabilities:

p(SSS or SSF)=p(S1S2S3)path 1+p(S1S2F3)path 2=p3path 1+p2(1p)path 2\begin{array}{lll} p(SSS \text{ or } SSF) &=& \underbrace{p(S_1\cap S_2\cap S_3)}_{\text{path }1}+\underbrace{p(S_1\cap S_2\cap F_3)}_{\text{path }2}\\ &=& \underbrace{p^3}_{\text{path }1}+\underbrace{p^2(1-p)}_{\text{path }2}\end{array}
Example 3

Consider a biased coin with p(H)=0.2p(H)=0.2 and p(T)=0.8p(T)=0.8. The biased coin is flipped 44 times.

  1. Is this a binomial experiment? Why?

  2. Draw the corresponding probability tree. Use HH and TT instead of SS and FF. The indices can be ignored as well.

  3. Determine the probability p(HTHT)p(HTHT).

  4. Determine the probability that there is exactly one head.

Solution
  1. Yes, experience shows that the head or tail in one repetition does not influence the occurrence of head or tail in the next repetition, and the probability for success (for example head) does also not change.
  2. See figure below.
  3. p(HTHT)=0.20.80.20.8=0.0256p(HTHT)=0.2\cdot 0.8\cdot 0.2\cdot 0.8=\underline{0.0256}
  4. Add all path probabilities with paths containing exactly one head and three tails:
p(1 head)=40.20.83=0.4096p(\text{1 head})=4\cdot 0.2\cdot 0.8^3 = \underline{0.4096}
Exercise 1

A fair die is rolled 33 times. Success is "the die shows a 6". Draw the corresponding probability tree and determine the probability for the event "exactly two times a 6".

Solution

It is a binomial experiment with n=3n=3 and p=16p=\frac{1}{6} (success is "a 6 occurs"). The tree is shown below.

The probability of the event EE="exactly two times a 66" is the sum of the path probabilities where the paths pass through two 66 and one "no 6". Thus,

p(E)=3161656=0.069p(E)=3\cdot \frac{1}{6}\cdot\frac{1}{6}\cdot\frac{5}{6}=\underline{0.069}