next up previous
Next: Problems which occur with Up: The Continuous Binomial distribution Previous: The Beta prior distribution

Finding the parameters a and b for the Beta prior

Recall that a Beta distribution has variance

 \begin{displaymath}
\sigma^2 = {{ab} \over {(a+b+1) (a+b)^2}}
\end{displaymath} (7)

If we make the change of variable from a and b to n and pusing equation 4 we get.

 \begin{displaymath}
\sigma^2 = {{\left( 1 + n\,\left( 1 - p \right) \right) \,\...
...) }^2}\, \left( 3 + n\,\left( 1 - p \right) +
n\,p \right) }}
\end{displaymath} (8)

which simplifies to

\begin{displaymath}\sigma^2 = {{\left( 1 + n - n\,p \right) \,\left( 1 + n\,p \r...
...
}\over {{{\left( 2 + n \right) }^2}\,\left( 3 + n \right) }}
\end{displaymath} (9)

We know $\sigma^2$ and p and would like to solve for n. This cannot be done directly, so it is necessary to use Newton's Method. Of course, Newton's Method requires the derivative of equation 8 which is given by

 \begin{displaymath}
\matrix{ {{{\rm d}\sigma^2} \over {{\rm d}n}} = -{{\left( 1...
... }^2}\, \left( 3 +
n\,\left( 1 - p \right) + n\,p \right) }}}
\end{displaymath} (10)

This equation simplifies to

\begin{displaymath}{{{\rm d}\sigma^2} \over {{\rm d}n}} = {{-2 - 6\,n - 2\,{n^2}...
...r {{{\left( 2 + n \right)
}^3}\,{{\left( 3 + n \right) }^2}}}
\end{displaymath} (11)

Once the parameter n has been solved, it is possible to calculate a and b, giving us the exact distribution of the parameter p. From here it is possible to generate a confidence interval for p.


next up previous
Next: Problems which occur with Up: The Continuous Binomial distribution Previous: The Beta prior distribution
Murray Todd Williams
1998-08-14