Set and . Conditional independence of the binomial distribution observations gives the likelihood function
The prior distribution is the beta distribution with parameters . By Bayes' theorem, multiplying the prior density by the likelihood function gives a posterior density proportional to
Recognizing and normalizing this beta distribution gives
for . This is Beta-binomial conjugacy; the original binomial coefficients cancel in the normalization because they are independent of .
The prior mean, posterior mean, and maximum-likelihood estimate are
For , the last follows by maximizing . At or , use the usual binomial likelihood convention that admits the endpoints and as maximum-likelihood estimates; if the parameter domain is strictly , these are boundary suprema rather than attained maxima. The posterior mean remains interior in all cases.
Taking
gives
Since and , . Thus the posterior mean is a convex combination of the prior mean and observed binomial proportion, with larger prior weight when is large relative to .
The prior mean decreases as increases. More strongly, its cumulative distribution function and upper-tail probability are
For every fixed , that upper-tail probability decreases with . The statistician increasingly favors smaller values of ; as , the prior distribution concentrates near zero. For , its variance also decreases. This is concentration of a beta prior near zero.
With the data fixed, the derivatives are
Thus the prior weight increases and the posterior mean decreases. Their limits are and . Both the changing prior mean and the increasing weight contribute to the change in the posterior mean.
Let , , and . The independent observations in the normal linear model give
The centered design condition removes the term:
The stated prior density factors into independent normal distributions for the regression intercept and regression coefficient . Multiplication by the likelihood function therefore leaves separate quadratic expressions in the two coefficients. Define the positive posterior variances
and the posterior means
By completing the square, the joint posterior density is
Equivalently,
This is Gaussian conjugacy for a normal linear model. Each posterior precision parameter is the sum of its data and prior precision parameters. The formulas remain valid when : all are then zero, so the posterior distribution of equals its prior distribution.
Put . As a linear combination of independent normal random variables under the posterior distribution,
The shortest 95% credible interval is
Here is the standard normal distribution cumulative distribution function. To justify shortest length, consider all intervals of a fixed length . If is this normal distribution posterior density, the interval probability has derivative with respect to . The normal distribution is symmetric and its density strictly decreases with distance from its mean, so this probability is uniquely maximized when the midpoint is . The centered interval can therefore attain 95% posterior probability with the least length. It is both an equal-tailed credible interval and a highest posterior density interval.
The target is the experiment's mean at . A posterior predictive distribution for a new noisy observation would instead have variance ; that extra observation variance does not belong in the requested interval.
An unknown variance requires a joint prior distribution for . The analysis is not determined until a prior for the unknown variance, and its relation to the coefficients, is specified. A maximum-likelihood estimate substituted for does not by itself account for its posterior uncertainty.
For example, retain the independent coefficient prior distributions from part (b) and independently assign an inverse-gamma distribution with shape and scale , whose probability density function is proportional to . Then the joint posterior density is proportional to
Conditional on , the two coefficient posterior distributions are still the independent normal distributions in part (b), with substituted for . The other full conditional distribution is
The marginal coefficient posterior distribution requires marginalization over ; it is generally nonnormal and the two coefficients need not remain independent. In particular, the posterior cumulative distribution function of the requested mean becomes
Its shortest 95% credible interval must be found from this marginal posterior distribution, for example by numerical integration or posterior simulation. This is normal regression with independent coefficient and variance priors.
A different, convenient choice is a normal-inverse-gamma prior, in which the conditional coefficient prior covariance matrix is proportional to . That choice gives a multivariate Student's t-distribution after marginalization, so the interval uses its univariate Student's t-distribution quantiles. It changes the coefficient prior specification; a Student interval does not follow automatically from retaining the fixed- priors in part (b).

Articles by others on the same topic (0)

There are currently no matching articles.