The Rao-Blackwell theorem says that if is a sufficient statistic and a finite-variance estimator, then is an estimator with the same expectation and no larger variance. Sufficiency ensures the conditional distribution, and hence this formula as a function of the data, does not involve the unknown parameter. The tower property of conditional expectation gives , while the law of total variance gives
This proves the theorem and shows that equality holds exactly when is already determined by , almost surely. In particular, unbiasedness is preserved.
Assume . Independence gives , so the proposed indicator is unbiased and has variance . The type counts are a sufficient statistic: conditional on them, every ordering of the labels is equally likely. Consequently,
For example, the conditional probability of the ordered first three labels is . This is Rao-Blackwellization of a multinomial probability product.
If all three are positive, there is positive probability that all three counts are positive. On such an event the conditional indicator has probability strictly between zero and one, so its conditional variance is positive. Thus for interior parameter values. If any , then and both estimators have zero variance; the printed strict inequality is impossible at those boundary parameters. The valid unrestricted statement is the non-strict inequality.
For an aggregate claims model, let denote one claim size, with expected value and variance . The total is zero when the claim count is zero. Given , independence gives
The law of total expectation and law of total variance, together with for a Poisson distribution, imply
The raw second moment appears because the random count itself contributes to the variance.
Conditional on , the moment-generating function of the sum is . Averaging with the Poisson distribution therefore gives the compound Poisson distribution transform
This is valid wherever is finite. Finite first and second moments alone do not ensure positive exponential moments; for positive claims the corresponding Laplace transform always exists.
For the independent portfolios put and . Their Poisson distribution counts add to a Poisson distribution with parameter . By Poisson-multinomial conditioning, conditional on the total count the first risk count has a binomial distribution with parameters , and the second is the remaining count. Thus one can generate the same total loss by drawing independent risk labels with these weights, then drawing each claim from its label's law. The merged severity has mixture distribution
It follows that has a compound Poisson distribution with count parameter and this severity law. This is the fixed-year version of Poisson superposition of insurance portfolios. Its expected value and variance are
Alternatively, multiplying the two independent aggregate Laplace transforms yields wherever finite, confirming the same compound Poisson distribution.
For the retained compound Poisson aggregate under per-claim reinsurance, replace each claim by its retained payment . Assume the retention is measurable, with as usual. The count parameter remains , and the severity law is the pushforward measure of the mixture severity under . Thus the retained compound Poisson aggregate has a compound Poisson distribution with that transformed severity and
Its moment-generating function is on its finite domain. For a general retention , zero retained payments can occur and are allowed as compound-Poisson marks; they may equivalently be removed by Poisson thinning. The two specified contracts retain strictly positive payments for strictly positive claims.
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.
Write the year- count as a sum of its individual counts, with . The specified conditional independence within that year gives
Dividing by and scaling the conditional variance by therefore gives
This is the Bühlmann–Straub model: larger exposures reduce the process noise in a year's average.
Define the population parameters and total observed exposure by
Here is the expected process variance and the variance of hypothetical means. Assume finite second moments. The law of total variance gives , and conditional independence between years gives for : their only shared variation is the latent conditional mean.
To derive the Bühlmann–Straub credibility estimate, minimize mean squared error among affine estimates of . For coefficients and , the optimal intercept is . Centering at and conditioning on shows that the resulting error is
The cross term vanishes because has conditional mean zero; the conditional noise cross terms vanish by the between-year independence assumption.
For fixed , the Cauchy-Schwarz inequality gives
with equality when . Minimize the remaining quadratic . Its minimizing value is the Bühlmann–Straub credibility factor
The experience term is exposure-weighted:
Since the future conditional mean count is , multiplying the optimal estimate by the known future exposure gives
It is the best affine linear least-squares projection, not a claim that the exact conditional expectation given all data is always affine. If , the conditional mean is a known constant almost surely and one takes ; if , the observations reveal it without process noise and . The ordinary case has .
Under missing completely at random, the observed second-year outcomes form a random subsample, so the direct pooled complete-case analysis estimate is
It is valid under missing completely at random because dropout no longer changes the marginal distribution of second-year use. Pooling is simpler than reporting separate conditional probabilities, but MCAR alone does not make this estimate more efficient than the estimate in the previous part. The fully observed first-year variable carries useful outcome information and can improve precision even when dropout is completely random.
To make the qualification explicit, write , , and for the constant response probability. For patients the leading variance of the pooled estimator is . The standardization estimator in the preceding part has leading variance
Indeed its first-order centered contribution is : the two terms have zero covariance, and their variances give that expression. The law of total variance therefore yields
The inequality is strict when there is dropout and first-year use predicts second-year use, as the distinct conditional rates suggest here. Thus the requested universal efficiency claim needs qualification. In the unrestricted joint binary-outcome model, maximizing the observed-data likelihood under either missing at random or missing completely at random gives the same standardization estimate : the all-patient first-year proportion and the two observed conditional second-year proportions maximize its factored outcome likelihood. Restricting the distinct missingness parameters to a common response probability affects their factor, not this estimate. The pooled value is the simple valid MCAR answer; retaining the first-year information gives the efficient MCAR answer and does not require replacing the previous estimate.
Conditional on , the auxiliary binomial distribution gives and . Thus large makes close to . The law of total variance also gives
The latent variable encodes the first draw increasingly accurately.
The law of iterated expectation yields
One may obtain either from its unchanged marginal distribution proved below or directly from the law of total variance: the variance of its conditional mean is and its expected conditional variance is . Hence the correlation coefficient is exactly
Also . The two probabilities become close while keeping their original beta marginals.
To distinguish the random intensity from its possible values, write it as . Its law is a gamma distribution with shape and rate . Hence
For the Poisson mixture, conditional expectation and conditional variance both equal . The law of total expectation and the law of total variance yield
where . Applying the random sum of independent claims formulas with the exponential distribution of the claim sizes gives the portfolio B moments
At the matched intensity , the expected value for portfolio A is also , whereas its variance is . Thus the expected totals agree, but mixing increases the variance:
The extra term is precisely .
Write and . For the random sum of independent claims, conditioning on gives
The law of total expectation and the law of total variance therefore give the aggregate moments
The first term in the variance measures variation of the individual claims at a fixed count; the second measures variation of the count itself. These formulas require the indicated moments to be finite.
For the moment-generating function, independent random variables give
where is the probability generating function. This identity holds wherever the expectations are finite; in particular a moment-generating function need not exist for positive for an arbitrary positive claim distribution. The empty sum for is zero.
In the Bühlmann model, a latent risk parameter is drawn from a population distribution. Conditional on , the yearly observations are independent and identically distributed random variables, with conditional expectation and conditional variance . Define the structural parameters
Here is the expected process variance, while is the variance of hypothetical means. The Bühlmann credibility premium is the best affine estimate of from the observed claims, under mean squared error. Predicting the next claim gives the same affine estimate: the extra conditional observation noise contributes the constant to the prediction error.
The law of total variance and conditional independence give
An affine estimate can be written as : for any chosen , optimizing the constant makes its expected value equal to . The normal equations for the linear least-squares projection are
For they force all to agree, with . Thus the credibility factor and premium are
The credibility factor increases with the observation count and between-risk variance, and decreases with within-risk variance. If , the risk mean is known and ; if and , one observation reveals it and . If both vanish, the premium is the fixed value and the factor is immaterial.
In the specified model, the conditional law is a gamma distribution with shape and scale . Therefore
The prior is an inverse-gamma distribution with shape and scale . To obtain its moments directly, substitute in the defining integral, obtaining
The Gamma function recurrence yields
The assumption makes both structural variances finite. Hence
It follows that the model-specific credibility estimate is
For the Bayes estimator under squared error loss, the quantity to estimate is , so the optimum is its posterior mean. The likelihood function, viewed as a function of , is proportional to
Multiplication by the prior shows gamma scale inverse-gamma conjugacy:
Although the printed hint only mentions integer shapes, the same substitution and Gamma integral normalize this posterior for every positive real shape, so no integrality of is needed. Its posterior mean gives the Bayesian estimate and comparison
This exact Bühlmann credibility for gamma claims holds for every observed sample, not merely on average. Here the posterior mean is affine in the sample mean, so the best affine Bühlmann credibility premium is also the unrestricted Bayes estimator under squared error loss.
The Rao-Blackwell theorem says that an unbiased finite-variance estimator of a parameter function can be improved using a sufficient statistic . Define
Because the conditional distribution given is parameter-independent, this is a statistic computable without knowing . The tower property of conditional expectation gives , so it remains unbiased. The law of total variance gives
Hence the improved estimator has no larger variance or mean squared error:
Equality holds precisely when almost surely under the relevant parameter. More generally, even without unbiasedness, conditional Jensen inequality shows that conditioning on a sufficient statistic cannot increase risk for any convex loss in the estimate, provided the expectations exist. The squared-loss result above is the usual variance form of the theorem.
The printed identity needs an expectation on its right-hand side. For fixed , condition on and use independence of :
The expression inside this expectation is generally random and cannot equal the unconditional probability by itself.
For each independent Monte Carlo method replicate, draw from its given distribution. If , draw independent -variables, form and set . For the empty sum is . If may equal zero, use when , since . The law of total expectation gives
Since , the estimator has statistical consistency by the strong law of large numbers. It is the conditional Monte Carlo estimator obtained by Rao-Blackwellization of the direct indicator , and the law of total variance gives .
This version assumes that the cumulative distribution function can be evaluated. An easy sampler alone does not automatically supply an easy cumulative distribution function evaluation. If only sampling is available, use the direct indicator estimator, or replace each conditional cumulative distribution function by the average of several independent indicators ; the nested version remains an unbiased estimator. With such inner draws its variance per outer replicate is .
The Rao-Blackwell theorem applies to an estimator with finite second moment and a sufficient statistic . The conditional estimator can be chosen as a function of the observed that does not depend on the unknown parameter: this uses the parameter-independent conditional data distribution in the definition of sufficient statistic. The tower property of conditional expectation gives , so their bias agrees. The law of total variance gives
For any target it follows that
Equality holds exactly when almost surely under that parameter value. This proves variance reduction and reduction of mean squared error, whether or not the original estimator is an unbiased estimator. More generally, conditional Jensen inequality proves the corresponding inequality for any convex loss in the estimate, whenever the expectations exist.
Introduce a latent Bernoulli distribution indicator , with denoting a structural zero and . Conditional on , retain the negative binomial regression with and . This gives a zero-inflated negative binomial model:
A participant who fishes may still catch zero, so an observed zero does not reveal the latent class. This distinguishes zero inflation from a hurdle model, which truncates the count component at zero. The marginal expectation becomes , and the law of total variance gives
A constant is a parsimonious starting model. If there is evidence that nonparticipation changes with day or other recorded predictors, use logistic regression for instead. Conditional independence of visitors remains an assumption; extra zeros alone do not establish its validity.
Independence gives . Moreover, , while . Adding proves the law of total variance
Write , , and . We keep the model's printed coefficient literally. Its latent log odds can be written
The independence of the is conditional on : they are not marginally independent when the random effects are correlated.
Holding the other predictors and the random-effect realization fixed, increasing predictor by one shifts the latent log odds by , so it multiplies the conditional odds of a late departure by . For a binary snow indicator, this compares the snow and no-snow days with other predictors held fixed. This is a conditional odds ratio, not generally the same as a marginal odds ratio after integrating the random effects.
Randomizing allows unmeasured daily conditions to change the success probability beyond the systematic linear predictor. In this logistic-normal regression with autoregressive random effects, let and . The law of total variance gives
so the mixture allows overdispersion beyond a binomial distribution with fixed probability. The correlated part also allows related outcomes on nearby days.
The stationary autoregressive process of order one has and . Hence
The term is unstructured daily variability, whereas is the temporally correlated component under the printed parameterization. Larger gives greater persistence: the lag- correlation of the latent log odds is .
The PDF itself prints both the coefficient and the requested combination . They are inconsistent as a marginal variance. If the intended coefficient were , the variance and off-diagonal covariance would instead be and . The prior's argument list also repeats ; its displayed density indicates the intended second variance parameter is .
There is a further substantive issue with that improper prior. After integrating the latent variables, the observed-data likelihood function is positive and continuous at for fixed finite , positive , and . On a compact positive-volume set of those parameters it therefore has a positive lower bound for small . The prior density is , so integrating over gives . Thus the stated joint posterior distribution is improper, an instance of improper posterior from a log-uniform random-effect scale prior. The requested fixed-parameter conditional laws below are nevertheless proper; their existence does not remedy the joint impropriety.
Let be the input photoelectron count and its mean, with quantum efficiency and mean incident photon count . Independent arrivals give a Poisson distribution, so . Conditional on , the preceding gamma distribution gives and . The law of total variance therefore yields
One contribution is the ordinary photon shot noise; the other is multiplication excess noise. Thus, neglecting read noise and backgrounds,
This is an excess-noise factor in analog operation: actual photon conversion efficiency has not been halved. At low occupancy, thresholding each pixel as zero or one event can avoid most multiplication noise, but high arrival rates produce coincident events that cannot be counted separately. That is why the high-rate result concerns charge measurement rather than ideal binary photon counting.
Immediately after departure , either and one of those customers starts the next service, or and the next arrival both initiates service and is not counted among those waiting after it. During that service further customers arrive. Thus the embedded departure chain of an M-G-1 queue obeys
Conditional on the next service time , the Poisson process property gives
The law of total expectation and law of total variance therefore give
and
In equilibrium let have the common distribution of and put . The fresh pair is independent of . Taking expectations in the recursion gives
Because and , stationarity of the second moment gives
Solving,
In stationarity, level crossing together with Poisson arrivals see time averages identifies this as the mean number in the shop. The Little law gives , where is waiting time before service. Since ,
This is the Pollaczek-Khinchine mean formula.
The Rao-Blackwell theorem states that if is sufficient and is an estimator with finite variance, then
has the same expectation as and no larger variance; it preserves unbiasedness. The tower property of conditional expectation gives
The law of total variance gives
Sufficiency ensures that is a statistic whose definition does not depend on the unknown parameter. The inequality is strict exactly when the conditional variance is positive with positive probability.
Let be independent with laws . We prove the claim by induction. Split the law of total variance at the last coordinate:
The first term is at most . Apply the induction hypothesis to . Differentiation under the expectation and Jensen inequality give
Writing and combining the terms yields
This is the Tensorization of a Poincaré inequality.