Description Usage Arguments Value Source References See Also Examples
Define the posterior distribution function for π ( μ | x ), with a gamma prior distribution π ( μ; α, λ ) and a poisson sampling distribution f (x | μ).
1 |
x |
the sample data from poisson distribution (x > 0). |
shape |
the shape parameter for a gamma distribution (> 0). |
rate |
the rate parameter for a gamma distribution (> 0). |
scale |
equals 1 / rate (> 0). |
An object of class "g12post
" is returned.
prior |
the prior distribution, i.e. the gamma(α,λ) distribution. |
likelihood |
the likelihood function of x given μ, i.e. the Poisson( x | μ) distribution. |
posterior |
the posterior distribution of μ given x. |
mu |
the expected number of occurence which is the parameter of poisson distribution. |
pri.shape |
the shape parameter for the gamma distribution of prior. |
pri.rate |
the rate parameter for the gamma distribution of prior. |
pos.shape |
the shape parameter for the gamma distribution of posterior. |
pos.rate |
the rate parameter for the gamma distribution of posterior. |
model |
the prior and likelihood type to produce the posterior. |
STATG012 slides5 Example5.6 on Moodle at UCL STATG012 slides5
Bolstad, W.M. 2007. Introduction to Bayesian Statistics. (2nd ed.). Hoboken, New Jersey: John Wiley & Sons, Inc.
summary.g12post
for summararies of prior
and posterior distribution.
plot.g12post
for plots of prior and posterior
distribution.
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.