Statistical Inference for EveryoneXYZ Homework Edition

⇩ Download ▾

3.3 Binomial Distribution

The distribution of the possible number of heads, given NN flips with a coin with probability pp of flipping heads, is referred to as the Binomial Distribution. It has the form of Equation 3.3, with the “fair coin” probability, 1/21/2, replaced with pp:

P ( h | N , p ) = N ! h ! ( N h ) ! × p h × ( 1 p ) N h (3.3) \begin{eqnarray} P(h|N,p)&=&\frac{N!}{h!(N-h)!}\times p^{h}\times (1-p)^{N-h}\label{eq:binomial} \end{eqnarray}

Probability of flipping hh heads and tt tails with an unfair coin Given the probability of flipping a single heads is, say, pp and the total number of flips is N=h+tN=h+t, we have the following equivalent forms:

P ( h , t ) = ( h + t ) ! h ! t ! × p h × ( 1 p ) t (3.4) P ( h , N ) = N ! h ! ( N h ) ! × p h × ( 1 p ) N h P ( h , N ) = ( N h ) × p h × ( 1 p ) N h \begin{eqnarray} P(h,t)&=&\frac{(h+t)!}{h!t!}\times p^{h}\times (1-p)^{t}\\ \nonumber P(h,N)&=&\frac{N!}{h!(N-h)!}\times p^{h}\times (1-p)^{N-h} \\ \nonumber P(h,N)&=&\binom{N}{h}\times p^{h}\times (1-p)^{N-h} \end{eqnarray}

where the probability of tails is 1p1-p.

Three dotted probability curves for the number of heads in 30 flips under different coins: p=0.1 peaks near 3 heads (about 0.24), p=0.5 peaks at 15 heads (about 0.145), and p=0.8 peaks near 24 heads (about 0.18). The three bells barely overlap.
Figure 3.2. Probability of getting hh heads in 30 flips given a possible unfair coin. One coin has p=0.1p=0.1, where the maximum is for 3 heads (or 1/10 of the 30 flips), but 2 heads is nearly as likely. Another has p=0.5p=0.5, and is the fair coin considered earlier with a maximum at 15 heads (or 1/2 of the 30 flips). Finally, another coin shown as p=0.8p=0.8 where 24 heads (or 8/10 of the 30 flips) is maximum.

Adapted from Statistical Inference for Everyone, by Brian Blais (Bryant University), licensed under CC BY-SA 4.0 (dual-licensed under the GNU FDL 1.2 or later; this adaptation uses the CC BY-SA grant). Changes were made; this adaptation is distributed under the same license. License: CC-BY-SA-4.0.

These eBooks are a prerelease and are not yet certified conformant with WCAG 2.1 AA or ADA Title II. Every page is built against an automated accessibility gate, and the published editions will meet ADA Title II requirements when they release in late September 2026. If something is unusable, please tell us.