3.1 The binomial distribution

3.1.1 Conjugate prior

In this section, the parameter of interest is the probability π of success in a number of trials which can result in success (S) or failure (F), the trials being independent of one another and having the same probability of success. Suppose that there is a fixed number of n trials, so that you have an observation x (the number of successes) such that

Unnumbered Display Equation

from a binomial distribution of index n and parameter π, and so

Unnumbered Display Equation

The binomial distribution was introduced in Section 1.3 on ‘Random Variables’ and its properties are of course summarized in Appendix A.

Figure 3.1 Examples of beta densities.

ch03fig001.eps

ch03fig001.eps

ch03fig001.eps

ch03fig001.eps

If your prior for π has the form

Unnumbered Display Equation

that is, if

Unnumbered Display Equation

Get Bayesian Statistics: An Introduction, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.