Autologistic binary-image model 2026-10-07
On a graph, a binary configuration has probability proportional to , with each edge counted once. The full conditional probability of a one is logistic with linear predictor . Local neighbor sums eliminate the need to evaluate the normalizing constant.
Chordal graph Created 2026-10-14 Updated 2026-10-18
A chordal graph is a finite simple graph with no induced cycle of length at least four. Equivalently, every cycle in a graph with at least four vertices has a chord: an edge joining two nonconsecutive vertices of that graph cycle. The word "induced" matters: the induced subgraph on the chosen vertices must contain exactly the cycle's edges, with no chords. Triangles are allowed. This definition concerns adjacency, independently of how the graph is drawn.
For the square cycle graph , take vertex set and set of edges , where abbreviates . Its graph neighbourhoods are and . The square is an induced cycle, so is not a chordal graph. Add the single edge : now , , , and . The only possible four-vertex graph cycle has chord , so this new graph is a chordal graph. Its maximal cliques are exactly and .
An induced cycle loses its obstruction when one diagonal is added; the resulting maximal cliques form a junction tree
. Details. Connect these two maximal cliques by a single edge labelled with their intersection . The result is a junction tree, also called a clique tree: its nodes are maximal cliques, and the nodes containing any fixed original vertex induce a connected graph inside the tree. Here occur in both nodes, while each occur in just one. This is the running intersection property. More generally, a nonempty connected graph is a chordal graph exactly when its maximal cliques admit such a tree; a disconnected chordal graph can be represented by one such tree per connected component of a graph.[ref]
A chordal graph need not be a planar graph: the complete graph is a chordal graph, since every pair of distinct vertices is adjacent, but its ten edges violate the planar graph edge bound . Conversely, even a plane drawing whose bounded faces are triangles can hide an induced cycle: a wheel graph with a four-vertex rim and a central vertex joined to the whole rim still has the rim as an induced cycle. Adding chords to obtain a chordal graph is called triangulation of an undirected graph; this is an adjacency condition, rather than a requirement about planar faces.
Why is this structure useful? The maximal cliques collect local interactions, and the running intersection property makes their overlaps sufficient for consistent communication. For random variables with finite state sets, a probabilistic graphical model of the square-plus-diagonal form can havewhere the two nonnegative clique potentials have a positive normalizing constant . Eliminating produces the two-variable junction-tree sum-product messageThe shared clique carries everything needed from the eliminated side. For possible states per random variable, this example uses two sums over configurations after reusing the message, rather than directly summing over configurations. The example's message is an exact finite sum, with no simulated data. Large maximal cliques still make exact inference expensive; chordal graphs provide a decomposition, not a universal guarantee of cheap inference.[ref]
Gamma function Created 2026-09-24 Updated 2026-10-20
The Gamma function extends factorials to a continuous argument. Its defining Gamma integral iswhere uses the real natural logarithm for . The Gamma function recurrence gives its meromorphic continuation to the complex plane, with simple poles at and no zeros. See Gamma function residue at a nonpositive integer and Gamma function has no zeros for proof outlines.[ref]
For nonnegative integers , the factorial identity has a shift of one:Thus for positive integers . Half-integer arguments supply a different familiar constant:The first value follows from the Gaussian integral; the second follows from the Gamma function recurrence.[ref]
The Gamma function on the positive real axis passes through the factorial values 0! through 5! at arguments 1 through 6
. Details. The plot shows only positive real arguments; the gamma function also accepts complex numbers away from its poles. Matching the factorials alone does not select a unique interpolation, even if the Gamma function recurrence is imposed: has the same positive-integer values and the same recurrence relation. The Bohr-Mollerup theorem supplies the extra condition that selects the gamma function.
The useful idea is to replace a discrete product of numbers by an integral whose exponent varies continuously. The Gamma integral then evaluates whole families of integrals at once, provides the normalizing constant for the Gamma distribution in probability theory, and appears in physics, for example in the Bose integral. Its large-positive-argument growth reconnects this continuous description to factorials through Stirling's formula.[ref]
Historically, Leonhard Euler studied the interpolation of factorials in his paper E19, written in 1729 and published in 1738. His integral over becomes the Gamma integral after a change of variables, with the same one-step shift in the argument.[ref]
https://scholarlycommons.pacific.edu/euler-works/19/. Euler Archive, E19: original-paper record, dates, and integral construction
Gamma integral Created 2026-09-28 Updated 2026-10-20
For real and , the change of variables in the defining improper integral for the Gamma function givesThe improper integral converges absolutely: near zero its absolute integrand behaves like , and at infinity the exponential function overcomes every fixed power.[ref]
For real and , the integrands are , , and , with total areas , , and . The third integrand is taller and has six times the area of the first, although the exponential function makes each tail decay.
Gamma integral kernels for shapes 1, 2, and 4 have total areas 1, 1, and 6 before probability normalization
. Details. For real , the kernel becomes the probability density function of a Gamma distribution with shape and unit rate only after division by its normalizing constant . In particular, the shape-four probability density function is . More generally, the Gamma integral verifies that integrates to one for shape and rate .
For the half-integer evaluation, the change of variables reduces the Gamma integral to the Gaussian integral:Consequently, for real ,
Junction tree algorithm 2026-10-14
The junction tree algorithm performs exact inference in a finite probabilistic graphical model. First moralize a Bayesian network if necessary; then apply triangulation of an undirected graph, organize its maximal cliques into a junction tree, and assign each original factor to one containing clique. Inward and outward junction-tree sum-product messages compute the normalizing constant and marginal distributions. Its cost depends exponentially on the largest clique's number of variables, rather than necessarily on the total number of variables.
Junction-tree sum-product message 2026-10-14
Assign each factor exactly once to a containing clique and multiply the factors there into . The displayed sum-product belief propagation message sums out variables of outside the separator . By the running intersection property, eliminating all variables in the subtree on the side creates precisely this function of the separator. An inward pass computes the normalizing constant at the root; an outward pass produces marginal distributions. For pedigree likelihoods, observed genotypes and penetrance factors simply multiply the relevant potentials.
Normalizing constant Created 2026-10-06 Updated 2026-10-14
A normalizing constant makes a nonnegative integrable function into a probability density function: if , then is a probability density function.
Past exam of the mathematics course of the University of Cambridge 2001 iii Paper 33 2 iii Solution Created 2026-10-03 Updated 2026-10-20
Here the proposal is with . Its probability density function depends only on , so . The determinant and normalizing constant of the target also cancel. With as in the preceding entry,Equivalently, writing and ,One can also compute the exponent without subtracting two large quadratic forms:Generate two independent standard normal distribution proposal increments, compute this log ratio, and accept when . Retain the previous pair on rejection. Detailed balance gives the correct invariant distribution, and the everywhere-positive Gaussian proposal makes this random-walk Metropolis algorithm chain irreducible; a rejection probability provides a holding step. The resulting target-distributed pairs are dependent, with proposal scale and target anisotropy controlling how quickly they mix.
Past exam of the mathematics course of the University of Cambridge 2001 iii Paper 33 2 i Solution Created 2026-10-03 Updated 2026-10-14
For the Metropolis–Hastings algorithm, start at a point with positive target probability density function. Draw from a proposal probability density function , generate an independent uniform distribution value , and set the next state to ifOtherwise retain , including that repeated state in the sample. Where a proposed forward move is possible but its reverse probability density function vanishes, its acceptance probability is zero. Unknown normalizing constants in cancel.
For distinct states, the accepted probability flow iswhich is symmetric in . This detailed balance identity, together with the holding probability, proves that is invariant. Under appropriate irreducibility and aperiodicity conditions the chain converges to ; successive states are generally dependent.
The Gibbs sampler updates coordinates from their full conditional distributions. In a systematic sweep, draw successivelyEach update preserves the target joint law: integrating the old coordinate against its conditional probability density function and replacing it by an independent draw from that same conditional leaves the joint probability density function unchanged. The composition of the coordinate updates therefore also preserves . A Gibbs sampler coordinate move can be regarded as a Metropolis–Hastings algorithm move with acceptance probability one. Systematic sweeps preserve stationarity but need not themselves be reversible. Initialization away from stationarity requires convergence before treating the draws as approximately target-distributed, and dependence must be accounted for in Monte Carlo method error estimates.
Past exam of the mathematics course of the University of Cambridge 2002 iii Paper 38 1 Solution Created 2026-10-03 Updated 2026-10-14
The P-star approximation describes the sampling density of a regular maximum-likelihood estimator in sample coordinates consisting of the fitted parameter and a suitable ancillary statistic . For a -dimensional parameter, write for the log-likelihood expressed in these coordinates, and for the fitted observed information. The approximation isThe determinant factor supplies the local volume scale, while the exponential retains the full likelihood ratio, rather than replacing it by a quadratic. The normalizing constant is chosen by integrating over the fitted-parameter coordinates; its leading regular large-sample value is . These ingredients arise from a statistical saddlepoint approximation. Their use requires an interior, locally unique fit, nonsingular information and suitable smoothness; an ancillary statistic specifies the conditioning surface when the fit alone does not exhaust the relevant sample coordinates. In a regular model the unnormalized leading expression has relative error of order locally; normalization and conditioning matter for refined inference. It is not a universal exact density. Under a smooth one-to-one parameter transformation, the Hessian at the fit transforms without a score term, so its determinant supplies precisely the density Jacobian determinant. This proves the invariance of the construction under one-to-one changes of statistical parameters.
Here put and . The log-likelihood, apart from a data-only constant, isThe two score equations giveThe sample sums form a sufficient statistic, and there is no need to retain an additional ancillary in calculating their joint density. Inverting the fitted coordinates gives and . With parameter order , the fitted observed information isAlso,Thus the required joint P-star approximation isTo integrate out , substitute inTaking and rearranging the powers yieldsThe beta function identity therefore givesBoth normalized approximations are actually exact. To check the joint assertion independently, and have independent gamma distributions with shape and rates and . Their joint density is . The inverse-coordinate Jacobian determinant iswhich reproduces the normalized joint expression. This is the P-star density for two exponential rates; its marginal gives the stated F-distribution. Stirling's approximation gives , so using only the leading normalizer retains the exact shape but not its exact total mass.
Past exam of the mathematics course of the University of Cambridge 2002 iii Paper 38 6 i Solution Created 2026-10-03 Updated 2026-10-14
Saddlepoint approximation methods retain the nonquadratic shape of a distribution through its cumulant-generating function. Suppose are independent and identically distributed, is finite on an open interval containing zero, and . For an interior target mean , solve the saddlepoint equation . Introduce exponential tilting byUnder the tilted distribution the mean and variance are and . For the product sample the Radon-Nikodym derivative is . Consequently the exact density relation for the sample mean isA local central limit approximation to the tilted density at its own mean gives . HenceFor the sum , the equivalent expression is , with . Under the usual smooth nonlattice density conditions this approximation has relative error of order for a fixed interior target. In the tilted Edgeworth expansion the order odd term vanishes at the mean. The exponent retains the Legendre-transform rate , rather than a quadratic Taylor approximation to that rate, explaining the useful tail and skewness behavior. Normalization is not automatic, and accuracy statements need their regularity and range restrictions.
For a normal distribution, and . Substitution recovers exactly the normal density of the sample mean. For an exponential distribution of rate , , and . The approximation becomesIt has exactly the gamma density shape. Replacing its leading constant by the exact normalizing constant makes it exact, illustrating why exactness of shape and exactness of the unnormalized approximation are separate questions.
For a vector sample mean, tilt by , solve , and use the local multivariate normal density at the tilted mean. This givesJoint and marginal saddlepoint densities can also be divided to approximate conditional densities, for example after conditioning on a nuisance sufficient statistic. The p* approximation uses likelihood and fitted-information coordinates to obtain a closely related approximation to a maximum-likelihood estimator's density, usually conditional on an ancillary statistic.
Tail probabilities need a corresponding integration approximation. The Lugannani-Rice saddlepoint tail approximation usesand givesHere are the standard normal distribution functions. The upper-tail correction has the opposite sign: . Inverting a cumulative distribution function introduces a pole in addition to the density's saddlepoint; treating both supplies the correction term, which is why simply integrating a normal approximation at the untilted mean is less accurate. At the apparent singularities cancel. With and , expansions give and , so . For the normal distribution the correction is zero everywhere.
These methods require care for lattice distributions, where summation and lattice corrections replace the density inversion, and near boundaries or singular covariance matrices. A distribution with no moment-generating function in a neighborhood of zero does not satisfy the starting assumptions. A successful saddlepoint approximation is therefore a structured refinement of regular asymptotic inference, not a formula guaranteed uniformly in every tail or for every model.
Past exam of the mathematics course of the University of Cambridge 2003 iii Paper 34 1 Solution Created 2026-10-03 Updated 2026-10-14
Use one particle for each telephone line, including unused lines. Let be the number of free lines, the number of callers waiting for or being checked by an operator, and the number using automated service. Then . These are the three colonies of a closed migration process, with directed cycle and departure ratesRejected attempted calls leave the state unchanged. They must not be represented as extra customers in the waiting stage.
Equivalently the state is with . Its transitions areThe directed cycle has equal traffic weights; choosing each weight to be gives the unnormalized product-form stationary distribution of a closed migration processWe can verify global balance for a continuous-time Markov chain directly. Weighted incoming transitions from , and contribute, respectively,Their sum equals the weight times the outgoing rate. This proves stationarity after normalization, without falsely asserting reversibility of the directed migration cycle.
For occupied lines, summing over the automated population givesThe normalizing constant is . The attempted calls form an independent Poisson process, so Poisson arrivals see time averages: the rate of attempted arrivals seeing a full state is times its stationary probability, and division by the total attempted-arrival rate gives the loss proportion. ConsequentlyThe numerator is essential; the PDF contains it even though the converted TeX loses it.
With two independent operators, the total check-completion rate is . In particular it is only when one caller is present. DefineThe human-stage weight becomes , while the free and automated weights are unchanged. The same global-balance calculation applies using these departure rates. ThusThis is the blocking probability in a finite-line sequential-service network with two operators. It remains valid for , when every attempted call is lost; for it coincides with the single-operator answer.
Past exam of the mathematics course of the University of Cambridge 2003 iii Paper 34 4 Solution Created 2026-10-03 Updated 2026-10-14
For active-route per-flow rates , feasibility means for every resource. The defining condition for a proportionally fair allocation is that every feasible alternative satisfiesThis is equivalent to maximizing weighted logarithmic utility over the feasible set. Its gradient is , so the displayed inequality is precisely the first-order condition for this concave function. Strict concavity gives unique active-flow rates. Routes with have no utility term or actual per-flow rate to determine; set their aggregate service to zero. This is the inactive routes in proportional fairness convention.
Abbreviate the route populations as in cyclic order and let denote aggregate route service. The resource constraints areEquivalently, . Fix these two maxima as . Because utility is increasing in each active allocation, every active odd route attains and every active even route attains . Dropping terms constant in the populations, the objective becomesIf both groups are nonempty, the maximum has and derivative , giving . If one group is empty, every route in the other group gets aggregate service one. For , all cases are summarized, on active routes, byAt there are no flows and all aggregate services are zero. In particular whenever , as printed in the PDF. The per-flow rate is not generally : opposite routes can use the same resource capacities in parallel.
An exponential document size with parameter has completion hazard when a flow is served at rate . Summing over its flows gives the transition ratesThus an active odd route departs at rate , and an active even route at rate . An empty route has departure rate zero even if its opposite route is populated.
Put andFor an active odd route and an active even route respectively,Hence aggregate service is the neighboring-state ratio of this balance function of a flow-level network. Consider weights . For every birth edge,These are detailed balance equations. The total departure rate is bounded by and total arrival rate by , so the process is nonexplosive. Provided the normalizing sum is finite, its stationary distribution is thereforeThe large parentheses in the original PDF represent a binomial coefficient, not a ratio. The verified adjacent-state ratios explain why that distinction matters.
The required stability condition can be established directly from the normalizing sum. Set , and . Grouping opposite-route counts givesIf and , then , with the same bounds for the other group. Restriction to the routes attaining the maxima bounds below by . If , the upper bound is at most , which converges. ThusEquivalently every resource's offered load is strictly below its unit capacity. With positive arrival rates the irreducible chain then has the unique stationary probability distribution above. Without this condition the weights remain an invariant measure but are not normalizable; the question's probability-distribution claim implicitly needs this hypothesis.
For completeness, the normalizing constant has the four-cycle partition function expressionTo derive it when and , substitute into the double sum and use . The resulting expression iswhich simplifies to the displayed formula. Continuity within the stability region covers equal opposite loads and zero loads.
Past exam of the mathematics course of the University of Cambridge 2004 iii Paper 40 5 iv Solution Created 2026-10-03 Updated 2026-10-14
The full conditional log probability density functions of the effects are, up to constants,These are Gaussian-prior Poisson log-effect conditional probability density functions. The exponential likelihood term prevents a standard normal distribution conjugate update. A Metropolis-within-Gibbs algorithm conveniently updates one effect at a time without computing its conditional normalizing constant.
For example, propose with , and accept withUse an analogous normal distribution random-walk proposal for . The proposal is symmetric and lives on the appropriate unrestricted real parameter space, so no proposal ratio is needed. It makes local moves compatible with a unimodal conditional probability density function. Tune the positive scale in a pilot or freeze it after warm-up; a scale far too large causes rejection and a scale far too small moves slowly.
A useful scale can be inferred from the conditional curvature: , with the analogous formula for . A normal proposal near the conditional mode with variance approximately is another sensible choice, but an asymmetric or state-dependent proposal must include its full reverse-to-forward proposal-density ratio. Metropolis–Hastings is convenient, not logically mandatory; these concave conditionals also admit other specialized samplers.
Past exam of the mathematics course of the University of Cambridge 2005 iii Paper 47 4 a Solution Created 2026-10-03 Updated 2026-10-14
For independent draws from a normalized proposal , use the importance sampling identityThus the unbiased estimator and its variance areThe probability support condition is wherever , and the variance formula requires a finite second moment. Since both probability densities are normalized, no self-normalization of weights is needed.
In the proposed example, normalize to on . It is sampled by for uniform . Taking givesAs a check, . The second moment of one weighted observation isso . The weight's singularity at zero does not make this variance infinite.
To prove the optimal proposal rule, apply the Cauchy-Schwarz inequality:Equality holds when the two factors are proportional almost everywhere, giving the minimum-variance importance distributionFor the present nonnegative integrand, normalization givesUnder this proposal, is constant, so the variance is exactly zero. If sampling is wanted, its distribution function is , with inverse . In general the optimal proposal's normalizing constant can itself be the unknown integral, limiting this zero-variance construction's practical use.
Past exam of the mathematics course of the University of Cambridge 2005 iii Paper 47 5 a Solution Created 2026-10-14 Updated 2026-10-20
The Metropolis–Hastings algorithm is useful when a target posterior can be evaluated up to a normalizing constant but direct independent sampling or simple conditional sampling is unavailable. It constructs a Markov chain with that posterior as invariant law. After adequate convergence, averages of functions of the chain estimate posterior expectations, and the retained draws approximate marginal distributions, quantiles and credible intervals.
For the random-walk Metropolis algorithm, at current propose , where has a symmetric distribution, often . With a symmetric proposal the acceptance probability isAccept the proposal when an independent uniform is below this probability; otherwise retain the current value. For a nonsymmetric proposal , include in the ratio. Detailed balance follows because the accepted flow is the minimum of the two proposed directional flows; rejection supplies the remaining self-transition probability. Irreducibility, appropriate recurrence and aperiodicity are also needed for convergence.
In the displayed trace plots, the first parameter moves in small increments with pronounced long-term wandering and a shift from its early region to a later region. This is consistent with an undersized proposal or a strongly correlated slow direction. Measure its acceptance rate: if it is very high, increase that coordinate's proposal variance. The second parameter moves rapidly within regions but changes its level around iteration 4500; that is evidence against treating the full run as a settled stationary sample, and it suggests investigating dependence with the first parameter or separated posterior regions. Its local scale may already be reasonable, so a blanket reduction of all proposal variances would be unwarranted. The third parameter has conspicuous long plateaus, indicating many repeated states: if the recorded acceptance is low, reduce its proposal variance; also check constraints and dependence before deciding that scale alone is the cause.
Rerun with coordinate-specific scale changes, inspect joint dependence, consider a covariance-based block proposal, and run longer chains from dispersed starting points. The MCMC trace diagnosis and proposal tuning should include actual acceptance rates and effective sample sizes; the three marginal trace plots do not by themselves identify correlations or prove convergence. Further practical details are in the three subparts.
Past exam of the mathematics course of the University of Cambridge 2006 iii Paper 34 4 Solution Created 2026-10-03 Updated 2026-10-14
Only active routes, those with , enter the proportional fairness inequality and the weighted logarithmic utility. Their rates must be positive; inactive routes have no per-flow rate to determine and may be assigned zero. This convention removes otherwise meaningless terms and .
For positive active rates, concavity of the logarithm gives, for any positive feasible competitor ,Thus the proportional fairness inequality proves that maximizes the log-utility objective. A competitor with an active zero rate has utility and cannot improve it. Conversely, if maximizes utility, the right directional derivative along at is nonpositive, giving exactly that inequality. Positive resource capacities and finitely many active routes allow a feasible allocation with every active rate positive, so an optimizer cannot have an active zero rate. Strict concavity gives uniqueness of the active rates. Hence proportional fairness is equivalent to the stated log-utility maximization.
Index the four adjacent-pair routes in cyclic order and put , the aggregate service on route . The resource constraints areThey involve every odd-even route pair, so they are equivalent toFor given maxima, increasing each active odd service to and each active even service to remains feasible and improves utility. Apart from the constant , the objective therefore reduces toWhen both groups are present the constraint is tight, and differentiation gives . If one group is empty, the other receives unit aggregate service on each of its active routes. Thus the opposite-route reduction for a proportionally fair four-cycle yields, with ,Inactive rates can be set to zero, including every rate in the empty state. In particular whenever that route is active. This proves the required formula even when other routes are empty.
For the flow-level network model, an active document's residual size retains an exponential distribution with parameter . Receiving service at rate gives completion intensity , so independent active documents give total completion intensity . Consequently the population continuous-time Markov chain hasAll death intensities are zero at . Their total is bounded by , and the total arrival rate is constant, proving nonexplosion.
Put . The required stationary weight uses a binomial coefficient, as printed in the PDF; the converted TeX incorrectly rendered it as an ordinary fraction. DefineFor an odd route, the neighboring binomial coefficient ratio iswhile its death intensity at the neighboring state is . Their product is , so . For an even route, replace by in the same calculation. This proves detailed balance and the stationary law of a proportionally fair four-cycle:A finite is essential for this expression to be a probability distribution. We determine its exact convergence condition rather than asserting stationarity for arbitrary arrival rates. LetGrouping the states by odd and even population givesWith and , the bounds and show that convergence holds exactly when . For necessity, the lower bound sums to , which diverges at or above one. For sufficiency, choose slightly larger with ; the polynomial factors are absorbed into constants times , giving a convergent geometric generating series. Thus the stability region for the reversible four-cycle flow network isEquivalently, the offered load on each resource, , , , or , is strictly below its unit capacity. For positive arrival rates this finite normalizing constant gives the unique stationary distribution of the irreducible process. At or beyond the boundary, the displayed invariant weights are not summable and do not define a stationary probability law.
If an explicit normalizing constant is desired, for , and . Hence for , in the stable region,Equal-parameter cases are obtained by continuity or directly from the positive series. In particular the empty-traffic limit is .
Past exam of the mathematics course of the University of Cambridge 2009 iii Paper 40 5 b Solution 2026-10-14
At , complete the square:For fixed , all factors not involving enter its conditional normalizing constant. Interchanging the roles of the coordinates givesThese are the full conditional distributions of the standard bivariate normal distribution with correlation .
A systematic Gibbs sampler starts at a chosen and, at each sweep, draws independent standard normals and setsThe second update uses the newly drawn . Both coordinate updates preserve the target by part (a), hence so does the sweep. The Gaussian two-coordinate Gibbs recursion is explicitlyan AR(1) recursion with innovation variance . Its stationary variance is one, and its correlation at sweep lag is , displaying the dependence of the sample.
The printed general- expression has a separate normalization defect: for its integral is , not one, since the exponent has covariance , whose normalizing denominator is . Retaining that exponent requires in the prefactor. The requested target is already normalized, so this defect does not alter the conditional distributions above.
Past exam of the mathematics course of the University of Cambridge 2012 iii Paper 38 4 Solution Created 2026-10-03 Updated 2026-10-07
A Gibbs sampler updates one coordinate by drawing from its full conditional distribution, leaving the others unchanged and using their current values. Each coordinate kernel preserves the target joint law : integrate first over the unchanged coordinates, then over the old coordinate, and finally draw the new coordinate from the same conditional distribution. The resulting joint law is again . In the discrete notation, if two states share the remaining coordinates,which is symmetric in . Thus a coordinate update satisfies detailed balance. A systematic full sweep has kernel and remains invariant because each factor preserves . A fixed-probability random-scan mixture also preserves ; the mixture is reversible, whereas a systematic composition need not be.
In the autologistic binary-image model, count each neighboring pair once. Changing one pixel from zero to one raises by one and by the number of neighboring ones. The ratio of its two conditional weights is . ThereforeFor single-site Gibbs sampling, select a pixel, compute its current neighbor sum and replace it by a draw from a Bernoulli distribution with this probability. One may use random scans or complete ordered sweeps. The normalizing constant is not needed. For finite , every conditional probability lies strictly between zero and one; the finite chain is irreducible and has self-transitions, so its stationary law is unique and iterating converges to it.
For checkerboard Gibbs sampling, no edge joins two black pixels or two white pixels. Conditional on the whites, the black-pixel law factorizes:Draw all black pixels independently with these probabilities, then draw all white pixels independently conditional on the newly drawn blacks. Each color block is a full conditional update, so the two-block sweep preserves the joint target. Pixels of the same color can be updated together because their conditional distribution factorizes.
For the noisy image, the log likelihood contributes . Since , dropping terms independent of givesThe Gaussian-noise posterior for an autologistic image therefore has conditional probabilitiesUse this probability in both single-pixel and sequential color-block schemes. The independent observation factors change only the local field, so conditional independence within each color is retained. The same invariance proof then targets the posterior distribution rather than the prior.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 208 6 a Solution Created 2026-10-03 Updated 2026-10-06
Let be a nonnegative target kernel and a proposal distribution. At state , propose , draw an independent uniform , and move to ifOtherwise keep . This is the Metropolis–Hastings algorithm. Start on the positive target support, with the usual zero-ratio conventions. The unknown normalizing constant cancels.
An unnormalized kernel is sufficient, provided . A genuinely improper target with infinite integral is not a probability density and cannot supply a stationary target probability distribution. The acceptance formula can still be written formally, but cannot be said to generate samples from that nonexistent probability law.
Because rejected proposals leave the state unchanged, the Markov kernel includes an atom:Detailed balance with a probability measure means the measure identityWhere both sides have ordinary densities, this reads . The measure formulation also includes the rejection atom. Integrating it shows that is invariant.


