Calculation of Posterior probability by Bayesian inference.
※Prior probability distribution:Uniform distribution.

Keyword

Prior probability,Posterior probability,Bayesian inference,binomial parameter,binomial experiment,uniform distribution.

Reference

・『生態学のためのベイズ法』(Michael A.McCathy,野間口眞太郎).
WIKIPEDIA.

Remarks

・For the case that Prior probability distribution is Uniform distribution.
・To calculate the Posterior probability,Simpson's rule is used in the calculation process.Because of that,it contains error.
・Simpson's rule:∫[x0~x2]f(x)≈h/3*[f(x0)+4*f(x1)+f(x2)].h=(x2-x0)/2.x1=(x0+x2)/2.

History

・2009/07/26:Upload.