Keep fixed. Integral bounds for the decreasing function give , so . Consequently
The posterior mean thus grows like instead of approaching a data-determined limit. Even the posterior distribution mass below a fixed endpoint is . Hence increasing the supposedly innocuous prior cutoff moves the inference to larger and larger endpoints. In an integral approximation its median is of order , also depending strongly on the cutoff. This explains the sensitivity of the entire inference, not just of its posterior mean.
Multiplying the reciprocal improper prior by the likelihood function gives
Thus this discrete uniform endpoint posterior is proper. Its exact cumulative probability is . Integral approximation gives and , so
These approximations are useful when is moderately large and are not exact discrete identities. For example the exact untruncated median at is . Although its quantiles are finite, its posterior mean is infinite, since its expectation numerator is the divergent sum .
The posterior distribution has a long right tail. Its posterior mean is pulled upward by relatively rare large endpoints and is sensitive to the artificial upper cutoff; its untruncated posterior mean does not exist. The median is a central quantile that stays finite as the cutoff is removed and is much less sensitive to extreme draws. It is also the Bayes estimator under absolute-error loss, whereas a mean corresponds to squared-error loss when the relevant expectation exists.
The median better represents the typical posterior endpoint in this strongly right-skewed distribution. It need not be preferable for every decision problem, since the loss function matters. For comparison, exact summation of the truncated kernel at cutoff gives median and mean about ; the displayed simulation summaries are Monte Carlo estimates, not exact posterior calculations.
Let the Bühlmann–Straub model structural parameters be
Here is the variance of hypothetical means and is the expected process variance. Assume the structural second moments are finite and the exposures are positive, as required by this least-squares problem. Write . Conditional independence separates the squared prediction error into squared conditional bias and conditional variance. The law of total expectation gives
Indeed, conditional on , the prediction has mean and variance ; there are no cross-covariances because the annual observations are conditionally independent.
For fixed slope coefficients the optimal intercept is . For fixed sum , the Cauchy-Schwarz inequality gives
with equality when . Thus the remaining minimization is the scalar quadratic
Differentiation gives . In the nondegenerate case , the quadratic is strictly convex and the equality condition determines the unique slope coefficients. The Bühlmann–Straub credibility factor and premium are therefore
and
This derives the Bühlmann–Straub credibility estimate from its minimization criterion. Increasing exposure increases the weight on experience; increasing process noise decreases it. No exposure for year appears because the estimate concerns the expected claim per car, not the variance of next year's observed average.
The degenerate cases have a direct interpretation. If and , the unknown conditional mean is the known constant , so take . If and , each observation already equals almost surely, so gives exact prediction. If both vanish, all observations and the target equal almost surely; use the constant predictor rather than the undefined ratio .
In the approximate normal model, , , , and . Substitution into the derived credibility estimate gives
We now derive, rather than assume, the Bayes estimator under squared error loss. For positive , the likelihood and normal distribution prior give a posterior density proportional to
The coefficient of is , and the coefficient in the linear term is . Completing the square proves the normal-normal conjugacy with unequal exposures formula
with
For any decision , the posterior quadratic loss is
Its unique minimizer is the posterior mean . Hence the Bayesian and credibility estimates coincide exactly in this normal model:
The reason is that the posterior mean is already affine in the observations, so restricting prediction to affine functions loses nothing. In the general Bühlmann–Straub model, the posterior mean need not be affine; the credibility estimate is then only the best affine squared-error predictor. The zero-variance limits of the normal formulas agree with the degenerate cases above.
Multiplying the Poisson distribution likelihood by the Jeffreys prior gives the posterior density kernel
Thus, in shape-rate convention,
It is a proper posterior distribution even when , provided . The posterior mean and posterior variance are and . This is Poisson-gamma conjugacy with unequal exposures, with the zero-rate prior interpreted as an improper kernel.
The new prior density contributes the factor . Multiplication by the Poisson distribution likelihood gives
Its posterior mean displays the resulting shrinkage:
The observed risk ratio is pulled towards one, most strongly for small exposures. The posterior variance is .
For retained Markov chain Monte Carlo draws , calculate both the parameter average and the average deviance . Two estimates are
The first uses the approximate equality of the posterior mean and maximum-likelihood estimator. The second subtracts the mean of the chi-squared distribution deviance excess. These are different operations: evaluation after averaging versus averaging after evaluation. Both rely on a well-mixed chain and the regular locally flat-prior approximation. The smallest sampled deviance is an upper bound on the true minimum, but merely taking that minimum can be inefficient in high dimension because few draws approach the mode closely.
The PDF gives an inverse-gamma distribution with shape and scale , and a gamma distribution prior with shape and rate . Write . The supplied conditional moments, together with and , give the three structural quantities of the Bühlmann model:
Here is the variance of hypothetical means and the expected process variance. The law of total covariance and conditional independence of different years imply
All these quantities are finite because .
For any coefficients , minimizing the mean squared error over the intercept first gives . Let and . Expanding the remaining mean squared error gives
Its normal equations are for every . Since , subtracting any two equations shows that all agree. The quadratic part is strictly positive for every nonzero coefficient change, so the solution is the unique global minimizer. Solving gives
A credibility estimate combines individual experience with the collective expected value, using an experience weight . In this equal-exposure setting, the Bühlmann credibility premium is
Thus the computed coefficients give exactly a credibility estimate, with a fixed credibility factor determined by known parameters and the number of observed years. This is Bühlmann credibility for inverse-gamma observations.
For the final Bayesian calculation, the likelihood function in is proportional to . Multiplication by the gamma distribution prior gives the Gamma prior for an inverse-gamma scale update
Under quadratic loss, the conditional risk of an estimate is . Its minimizer is therefore the posterior mean:
This is not a fixed-weight arithmetic-mean credibility estimate. For , the observations and have the same sample mean, but reciprocal sums and , hence different posterior means. For any , append the same positive observations to these two samples. For , the estimate is , with ; its second derivative is , so it is not affine either. Symmetry in the observations would force equal slopes in any affine representation, so these examples also exclude a general fixed-coefficient linear representation.
One can express the posterior mean as a broader data-dependent blend. With and harmonic mean , it is
This weights a harmonic-mean-based experience estimate, and the weight itself depends on the observations. It is not the credibility estimate based on and the fixed Bühlmann credibility factor derived above.
A credibility estimate blends the risk's own sample mean with a population or prior expected value. In the basic equal-exposure form it is , where the credibility factor is the weight attached to the individual experience. More data ordinarily increase that weight; greater within-risk variation relative to between-risk variation reduces it.
Write for the conditional claim expected value, keeping for the prior-level parameter. Normalization of the probability density function gives
At interior points of its finite domain, differentiation under the integral sign yields
This is an instance of the exponential-family derivative identities for natural parameter . The minus sign is present in the PDF and is lost in the converted TeX. The conditional variance is likewise .
Differentiate the log of the natural conjugate prior:
Integrate on a compact subinterval and then let its endpoints approach those of the parameter interval. The prescribed vanishing of the prior density eliminates the boundary term. Since , monotone convergence theorem justifies the limit of its expectation, and the identity gives
In particular the assumed proper prior and boundary conditions themselves establish this first-moment integrability.
For and , conditional independence makes the likelihood function proportional to . Multiplication by the prior distribution gives the Bayesian posterior
Thus this is a conjugate prior family, with updated parameters
The integration-by-parts calculation for the posterior mean also needs vanishing posterior boundary values. Here that property can be checked, rather than assumed. Let be the essential lower and upper endpoints of the claim support. Every nondegenerate tilted claim law has , so the established prior mean satisfies . Supported observations have ; hence . At a finite parameter endpoint the prior's vanishing forces , because its exponential factor has a finite positive limit; the increased power makes the posterior vanish there too. At , choose with positive base-measure mass below . Then and the unnormalized posterior is at most . At , choose with positive mass above to obtain the corresponding bound . These bounds also ensure posterior propriety at infinite endpoints. This is the endpoint control for a Laplace-family conjugate posterior.
Apply the previous score integration to the Bayesian posterior. The natural conjugate credibility identity is
Thus is the credibility factor. This is an exact posterior mean, rather than an affine approximation to one.
For the specific shape-two gamma distribution, take
Then and . The gamma rate gamma conjugacy prior is
that is, . Its normalizing constant in the notation of the question is . The gamma distribution density vanishes at both zero and infinity for . The posterior has shape and rate , so its conditional-mean posterior mean is again .
For the last calculation, gamma distribution integration gives
The second identity requires the printed . Therefore the expected process variance and variance of hypothetical means, denoted by in this question, are
Consequently , and the Bühlmann credibility factor agrees with the exact Bayesian weight:
This is the exact Bühlmann credibility for gamma claims, expressed using the reciprocal rate as the random scale. The symbols here are the process and between-risk variances, respectively; their roles should not be interchanged when comparing with other notation for the Bühlmann model.
Write and . The Bühlmann model uses the finite structural parameters
Here is the expected process variance and is the variance of hypothetical means. The target is the latent conditional mean , rather than the realized next count. The Bühlmann credibility estimate is the best affine predictor of that target under mean squared error.
The law of total expectation and law of total variance give and . Conditional independence gives for , and the law of total covariance therefore yields
To derive the optimal predictor, consider . Minimizing with respect to the intercept gives . Thus . The linear least-squares projection normal equations are
For , subtraction of any two equations forces all equal. Substituting a common coefficient then gives . Equivalently, the mean squared error of the centered predictor is , a convex quadratic with precisely these normal equations. Hence
The ratio notation assumes ; the credibility factor formula also handles . If , the target is the constant almost surely. If , one observation already equals almost surely, and the average gives it exactly. If both vanish, the target and observations are constant.
The result optimizes over affine functions of the observations. It need not equal the unrestricted posterior mean; exact Bayesian inference generally depends on the whole prior and likelihood, whereas the Bühlmann credibility estimate uses these second-moment structural parameters.
Under quadratic loss, the Bayes estimator under squared error loss of the latent mean is its posterior mean. For the Poisson-uniform posterior mean, the prior distribution has density on and the one-count Poisson distribution likelihood is . Consequently the Bayesian posterior density is proportional to on that interval, with normalizing integral .
By conditional independence, , so the law of total expectation makes the posterior predictive expected value equal to this same posterior mean. It is
The required antiderivatives are and . Evaluating at the two endpoints gives
This estimate differs from : the Bühlmann credibility estimate is an optimal affine rule, while the Bayes estimator under squared error loss optimizes over all rules and uses the truncated uniform prior through its exact Bayesian posterior.
Fit two hierarchical Bayesian models to the same observations, one with the bounded uniform distribution sampling density and the other with an exponential distribution density. Specify rate versus mean in the exponential model and assign appropriate, scientifically comparable proper prior distributions; that parameter is no longer a literal maximum size. Obtain posterior distributions, for example by Markov chain Monte Carlo, and check convergence.
At the same observational level in both models use the Bayesian deviance , excluding prior densities. Retain the same likelihood constants and consistently either condition on breed effects or integrate them out. Estimate , evaluate at the posterior mean, and compute the effective parameter count in DIC:
Smaller DIC favours the fit–complexity tradeoff. Supplement it with posterior predictive checks; the uniform model's parameter-dependent support and the hierarchical structure make the criterion a diagnostic rather than an automatic definitive decision.
The first coefficient is the posterior mean log odds of choosing invertebrates rather than fish for smaller alligators at Lake Hancock. It corresponds to
for those invertebrate-to-fish odds. This is not the absolute probability of choosing the second category, because the other categories also enter the normalization.
The size coefficient adds to the invertebrate-to-fish log odds on changing to the larger class, holding lake fixed. Its common-across-lakes odds ratio is
about a 78 percent reduction in the relative odds. Exponentiating a posterior mean log odds is a geometric summary, not the arithmetic posterior mean of the odds.
There are free category coefficients plus group intercepts, giving 28 free parameters in the fitted Poisson model. The effective parameter count in DIC, , is close to 28 and slightly smaller, consistent with some regularization or incomplete information. Comparing it with 20 would omit the nuisance intercepts. A direct conditional multinomial fit has 20 coefficients but a different observational likelihood, since it conditions on the totals.