The binomial likelihood is . Multiplication by the beta distribution prior density and Bayes' theorem give the posterior density kernel . Normalizing by the beta function yields Beta-binomial conjugacy:This is proper for and , including counts at either boundary.
For the independent Bernoulli trials, the log likelihood function, apart from its constant, is . Its negative expected second derivative, the Fisher information, isFor , the Jeffreys prior is proportional to its square root. Since , its normalized form isThe Jeffreys prior is invariant under smooth one-to-one reparameterization as a measure. If , then , so . Thus recomputing it in the new coordinate gives precisely the transformed prior, rather than a new prior. In several dimensions the corresponding density is , with the same Jacobian transformation property.
Put , , and . Integrate the future binomial distribution against the current beta distribution posterior density:This is the beta-binomial distribution. For positive integer , the gamma function values reduce to factorials, givingUsing and rewrites this asSubstitution of gives exactly the two required factors. The probability is zero outside .
With a uniform beta distribution prior, the posterior predictive distribution for another batch of the same size isBut . HenceThe displayed expression is symmetric in . This is the uniform-count predictive property: the joint batch counts are exchangeable and both marginal counts are uniform. Conditional reversal is not a general property of arbitrary priors; it holds here because those marginal probabilities coincide.
Before collecting any observations, a uniform success-chance prior distribution givesThus the uniform-count predictive property assigns equal probability to every possible number of successes in a fixed-size batch under the prior predictive distribution. It is uniform over counts, not over all ordered binary sequences. After observing successes in trials, its familiar one-step posterior predictive probability is ; the count-uniform property refers to prediction before those data are observed.
For the uniform prior, write for the pooled success count in trials. Conditional on , exchangeability makes all placements of the successes equally likely. The successes in the second batch therefore have a hypergeometric distribution, and the factor in question isThis is hypergeometric allocation of exchangeable Bernoulli counts: sample positions without replacement from a population of positions containing successes. The uniform-count predictive property gives and , soAs varies with fixed, also varies. Therefore alone is not a normalized hypergeometric distribution over ; its normalization factor is essential.
Under the discrete uniform distribution, the observation has probability when its value is an available label, and zero otherwise. Therefore the likelihood function isThis is the discrete uniform endpoint posterior model's likelihood; all endpoints smaller than the observed label are excluded.
On its admissible support the likelihood function strictly decreases. Its maximum-likelihood estimate is consequently the smallest admissible endpoint:
A constant improper prior would give the formal posterior density kernel . However,There is no normalized posterior distribution under this prior. The failure is not simply that the prior is improper: some improper priors give proper posteriors. Here posterior propriety itself fails after this single observation, so probabilities, quantiles and a posterior mean cannot be assigned to that kernel.
Write , with . The truncated uniform prior gives the posterior distributionIts posterior mean isEach term in the numerator of the expectation is , which explains the exact count .
Keep fixed. Integral bounds for the decreasing function give , so . ConsequentlyThe 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 givesThus this discrete uniform endpoint posterior is proper. Its exact cumulative probability is . Integral approximation gives and , soThese 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 WinBUGS model uses a finite truncation of the reciprocal prior. The numbered lines have the following roles:
- Line (1) forms , the normalized prior probability vector on the integer labels . The deterministic sum may be declared after its use because the model is declarative.
- Line (2) assigns that categorical distribution. The following observation model treats the supplied value as observed data, rather than as an unknown parameter.
- Line (3) forms observation probabilities for and zero for . For integer , the small positive offset in
step(N-j+0.01)includes the endpoint without depending on the convention at zero. There are exactly nonzero entries, so this vector sums to one.
Combining that categorical distribution observation likelihood with the truncated reciprocal prior producesThe Markov chain Monte Carlo output approximates this posterior. The actual PDF separates the observation line from the preceding comment; it must remain an active stochastic statement.
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.
At several doses the three replicate plates differ much more than the square-root-of-mean scale expected from a Poisson distribution. For example the group at dose has sample mean about and sample variance about , rather than variance near . Its counts span a range of , compared with a Poisson standard deviation about . The dose- and dose- groups likewise have variances above their means. Thus extra plate-to-plate variation is plausible. With only three replicates per dose this is evidence suggesting overdispersion, rather than a precise determination of it; not every group has excess sample variance.
Let . The Poisson-lognormal random-effect model assigns each plate a random intensity . Conditional on that intensity its Poisson distribution has mean and variance both , but marginalizing over the normal distribution of the random effect givesThe law of total variance yieldsThis exceeds the mean whenever . The independent plate effects supply additional heterogeneity without inducing dependence between plates conditional on the global parameters. Also is the median random intensity, not its marginal mean; the factor matters for population predictions.
Centre and scale both predictors, particularly the raw dose whose scale is much larger than that of . For example use , and the linear predictor . This reduces the intercept-slope correlations and numerical scale disparities; further orthogonalizing correlated columns or updating coefficients jointly can improve Markov chain Monte Carlo mixing. The exact old prior can be retained through the corresponding coefficient transformation; assigning new independent priors to transformed coefficients would instead change the prior.
For weakly informed plate effects or small , use the non-centred Gaussian random-effect parameterisation with . This often reduces dependence between the scale and local effects; it is not guaranteed to outperform the centred version when plate effects are strongly informed. Sensibly calibrated proper priors also avoid the enormous initial log intensities permitted by the stated coefficient ranges. Use dispersed chains and Markov chain Monte Carlo convergence diagnostics to assess stationarity, agreement between chains and effective sample size of a Markov chain. Reparameterization can improve mixing; simply retaining more iterations does not remove poor mixing.
The regression coefficients have independent proper uniform distributions on very wide finite intervals. These are flat in the coefficients, not flat in fitted rates, and can be highly informative on the rate scale. The scale is uniform on , and WinBUGS receives the corresponding precision for each normal distribution random effect. Writing , the induced prior density isIt is proper and integrable at zero.
The usual scale-invariant variance prior would instead cause an improper posterior from a log-uniform random-effect scale prior. After integrating out the plate effects, the likelihood function tends as to the ordinary positive Poisson likelihood. On any compact interior set of coefficient values this limit is positive and bounded away from zero. Hence the posterior normalizing integral contains a divergent factor . There is no posterior distribution under that prior, even if formal full conditional distributions appear usable. Thus a proper prior with integrable mass near zero is needed here. The reciprocal-scale rule is the standard pure-scale Jeffreys prior; it should not be confused with the model-specific information prior for an additive variance component.
Delete the plate random effects from the linear predictor and remove their stochastic nodes and the unused scale/precision nodes. The observation layer then remains a Poisson distribution withFor example the essential WinBUGS observation block can be written asRetain the coefficient priors. This is the sampling model implemented directly; attempting to keep
for (i in 1:doses) {
for (j in 1:plates) {
y[i,j] ~ dpois(mu[i,j])
log(mu[i,j]) <- alpha + beta*log(x[i]+10) + gamma*x[i]
}
}1/(tau*tau) while fixing tau to zero would divide by zero.Under the common observation-level Bayesian deviance convention, DIC is , with the effective parameter count in DIC defined by . The no-random-effect model's effective count is near three, corresponding to its three fitted regression coefficients. With plate random effects, the effective count rises to : the local effects add flexibility, but their partial pooling means they do not count as eighteen fully independent unrestricted fitted parameters. The effective count need not be an integer or equal the raw parameter count; the scale parameter controls that shrinkage.
Adding the plate effects reduces the average Bayesian deviance by at an effective-complexity cost of . Therefore its DIC is lower byThe reported criterion favours the overdispersed model. This is a fit-complexity comparison, not a posterior probability or Bayes factor. In a hierarchical Bayesian model, the interpretation depends on whether deviance is conditional on local effects or has marginalized them out; these figures use the supplied observation-level convention.
For each plate use its conditional fitted intensity, including the fitted random effect. At a posterior draw form the Pearson residualA simpler plot uses in this expression, but posterior draws also display uncertainty in the fitted values. Look for residuals centred around zero, unexpectedly large tails or isolated outliers, and patterns with dose, fitted intensity or plate grouping. For known conditional parameters the Poisson distribution gives mean zero and variance one for this residual; approximate normality is reasonable only at adequate count sizes. Fitting the same data and estimating latent effects changes its calibration, so compare the diagnostics with residuals from conditional posterior predictive checks, rather than treating them as independent exact standard normals.
This checks the plate-level Poisson sampling layer given the effects and can reveal remaining unmodelled variation. It does not by itself establish the population dose-response curve: fitted plate effects can absorb departures from that curve.
Use conditional versus marginal posterior predictive checks to replicate new plates, rather than recycling the fitted plate effects. For each joint posterior draw of , draw fresh independent and thenUse the same doses and three-plate design, giving the posterior predictive distribution for repeated experiments. Compare observed dose means and their trend, the high-dose downturn, within-dose spreads, and outliers with the replicated curves and intervals. For example compare a discrepancywith draw by draw. The resulting posterior predictive tail fraction or graphical rank assesses whether the observed trend is unusual under this model. Fresh plate effects are needed to assess the population dose-response assumption. Reusing the fitted effects would mainly check the conditional sampling layer and could hide systematic departures from the proposed curve.
Compute the Bayesian model evidence for each model by integrating its sampling density against its parameter prior:The posterior odds are the prior odds multiplied by the Bayes factor:The parameter priors used for evidence must be normalized; arbitrary normalization constants in model-specific improper priors would make this comparison undefined.
Within the positive component, normal-normal conjugacy givesCompleting the square yieldsHere positive denotes membership in the variable-effect component, not the condition ; its normal prior permits effects of either sign.
Integrating the positive component's normal distribution prior gives its prior predictive distribution:The negative component gives . Let and denote those centred normal densities. The point-null mixture prior assigns component odds , so the posterior odds of the positive component areIts posterior probability is . Evidence depends on , so large effects of either sign favour the positive component. This is the marginal distribution before observing , not the posterior predictive law for a second observation conditional on it.
Under the independent-gene version of the model, integrating both component labels and effects givesThis product uses independence of the gene effects and observation errors conditional on the shared parameters. Maximize its logarithm over , for example with a one-dimensional bounded optimizer or a grid followed by refinement. Its derivatives areThus the log likelihood function is concave. An interior maximum-likelihood estimate solves the score equation; otherwise it is at zero or one, determined by the endpoint score signs. An alternative expectation-maximization algorithm iteratesFor , the components coincide and is not identifiable; for the full observation values carry information about the mixing fraction.
Use prior elicitation to make the qualitative judgments quantitative: ask whether represents a mean, median or mode, and what probability “unlikely above ” should mean, for example a upper-tail probability. A beta distribution on is a convenient family. If is taken as the mean, write its parameters as , , then choose so that the desired tail probability above is obtained. Check its quantiles and prior predictive distribution for plausibility, and assess sensitivity to reasonable alternative elicited values. The information suggests an informative prior near , but does not uniquely determine its parameters.
Introduce independent component indicators , and auxiliary slab effects , independent of the indicators. Set . Then inactive genes have exactly zero effect, while active genes have the stipulated normal distribution. With supplied as known data and elicited positive beta shapes, one suitable WinBUGS model isThe normal arguments are precisions, not variances. Supply all observed
model {
q ~ dbeta(aq, bq)
for (i in 1:N) {
z[i] ~ dbern(q)
u[i] ~ dnorm(0, 1/V)
theta[i] <- z[i]*u[i]
y[i] ~ dnorm(theta[i], 1)
}
}y values, monitor q, theta and optionally z, and assess Markov chain Monte Carlo convergence diagnostics. The proper auxiliary prior remains defined for inactive genes, where is not informed by the likelihood. This represents the exact point-null mixture prior, rather than replacing its point mass by a narrow continuous spike. Conditional on the indicators, has beta distribution , providing a useful check on the update.Let and , where is the standard normal distribution upper-tail probability. The mixture model givesFor , threshold inference for a mixture proportion therefore givesThis is a method-of-moments estimate when it lies in . More formally, if of the independent genes exceed the threshold, then , and its constrained maximum-likelihood estimate clips the displayed value to . No numerical estimate is determined without the given value of .
Here . Matching exactly requires , equivalently . For smaller positive , the maximum is at , and a large-sample exceedance fraction this high suggests a mismatch with the prescribed component variances. Sampling fluctuation is still possible; an observed fraction need not equal its expectation. If , the denominator vanishes and this summary gives no information about . Because for finite , matching in expectation also forces . Thus the summary suggests tension with the earlier prior concentrated near , under this mean-zero alternative model. The event is the one-sided exceedance , not .
Articles by others on the same topic
There are currently no matching articles.