Question: We will use the Minitab macro BinoBP or R function binobp to nd the posterior distribution of the binomial probability when the observation distribution
We will use the Minitab macro BinoBP or R function binobp to nd the posterior distribution of the binomial probability π when the observation distribution of YΙπ is binomial(n,π) and we have a beta(a, b) prior for π. The beta family of priors is the conjugate family for binomial observations. That means that if we start with one member of the family as the prior distribution, we will get another member of the family as the posterior distribution. It is especially easy, for when we start with a beta(a, b) prior, we get a beta(a', b') posterior where a' = a + y and b' = b + n – y.
Suppose we have 15 independent trials and each trial results in one of two possible outcomes, success or failure. The probability of success remains constant for each trial. In that case, Y Ιπ is binomial(n = 15, π). Suppose that we observed y = 6 successes. Let us start with a beta(1,1) prior.

Store, the prior g(T), the likelihood f(y|T), and the posterior g(y) in columns c1-c4 respectively. (a) What are the posterior mean and standard deviation? (b) Find a 95% credible interval for .
Step by Step Solution
3.38 Rating (151 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
