Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 124 4 ii Solution Created 2026-09-24 Updated 2026-09-25
First suppose . Run the RP algorithm for and the RP algorithm for its complement with fresh random bits. If the first accepts, output one; if the second accepts, output zero; otherwise repeat. Neither output can be wrong, and on every input the appropriate algorithm accepts in each round with probability at least . The number of rounds is dominated by a geometric distribution of mean two, so this is an always-correct algorithm with polynomial expected running time.
Conversely, let be always correct when it halts and have expected running time at most . Run it for steps. Markov inequality givesAccept exactly when halts and outputs one; this is an RP algorithm for . Accepting exactly when it halts and outputs zero is an RP algorithm for the complement. Thereforeis equivalent to zero-error expected polynomial time.
Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 201 3 b Solution Created 2026-09-24 Updated 2026-10-03
Each completed visit to radius begins a new radial excursion. By part (a), the conditional probability that the following excursion reaches radius before radius isThe Strong Markov property at the successive stopping times makes these trials independent with the same success probability. Consequently has a geometric distribution on with parameter :As , andSlutsky theorem now gives
Past exam of the mathematics course of the University of Cambridge 2026 iii Paper 224 4 a Solution Created 2026-09-24 Updated 2026-09-25
For , let be the geometric distributionIf is the law of , Gibbs inequality givesThereforeFor , the nonnegative random variable is zero almost surely and both sides vanish. This proves that the maximum entropy distribution on the nonnegative integers with fixed expected value is geometric.
Put . Since takes positive integer values, . Taking differences of the given tail probabilities therefore yields, also for ,This is the probability mass function of the geometric distribution on .
For the geometric distribution, , so the probability generating function of the size-biased distribution isIf are independent and identically distributed with geometric distribution of parameter , the probability generating function of an independent sum givesAt zero, interpret the expression by its continuous extension. The probability generating functions agree, henceOne can also check the probability mass functions directly: for , there are positive integer pairs with sum , each having probability . Thus both sides assign probability to .
With independent Bernoulli trials of success probability , counts the failures before the first success. There are failures followed by one success with probability , giving the stated geometric distribution on . It counts failures, rather than the total number of trials including the success.
Summing the joint probability mass function over with the geometric series gives the marginal probability mass functionDivide the joint probability mass function by this positive marginal probability mass function to obtain the conditional distribution:It is the geometric distribution counting failures before the first success, with success probability . For the other nonnegative integers , ; the elementary conditional probability given is undefined and supplies no additional case.
For a geometric distribution on positive integers, the probability generating function is . Conditional averaging over the red die yieldsAs a power series, its exact domain of absolute convergence isIndeed the slowest decaying component has failure probability , so . At , the terms of the power series fail to tend to zero; outside that disk they grow. All six component series converge inside it. In particular, the probability generating function is defined on the usual real interval , with . The rational expression beyond the convergence disk is only an algebraic continuation, not the defining expected value.
Let denote the red die. Conditional on , each white roll succeeds independently with probability . Consequently has the geometric distribution on and expected value . The law of total expectation givesThis is rolls; the averaging must be over conditional expected values, not over success probabilities before taking a reciprocal.
With replacement, successive draws are independent, with red probability and green probability . The first red on draw requires greens followed by one red. HenceThis is a geometric distribution. Its total probability is one because the geometric series sums to .
Let count tests up to and including the first failure. By independence of random variables, the event requires passes and then a failure. With pass probability and failure probability , this is the geometric distributionUsing part (iii), its expected value isThis counts the test that discovers the fault. The expected number of earlier passing tests alone would be one.
State can be reached from state only at an even time. In the two-step sampled chain, each step while still at state reaches state with probability , and otherwise stays at state with probability . Thus, if is the original hitting time,Equivalently where has the geometric distribution on positive integers with parameter .
For the stated geometric distribution, write . ThenSince , we have . Taking expectation gives the sample Fisher informationThe support begins at one, so this expectation uses the trials-until-first-success convention of the geometric law.
For the same sample size , the geometric distribution provides more Fisher information:The corresponding asymptotic variances of the maximum-likelihood estimators areHence choose the geometric sample for more precise inference at equal numbers of observations. Its asymptotic variance is times as large, and its standard error is times as large. This illustrates Fisher information per observation and per trial. It is a per-observation comparison: one geometric observation records a waiting time containing, on average, Bernoulli trials. A constraint on the total number of underlying trials would be a different sampling-budget comparison.
For sufficiently large , lies in . The waiting time has the geometric distribution on , so summing its geometric series giveswhenever . Fix . The expansions show that the numerator is and the denominator is . ThereforeThe convergence theorem for moment-generating functions says that pointwise convergence of finite moment-generating functions on a fixed open interval about zero to the moment-generating function of a probability distribution implies convergence in distribution to that distribution. For example take ; all large satisfy the convergence condition throughout that interval. The limit is the moment-generating function from part (a), proving
At a fixed index, independence and uniformity giveThe match indicators are independent Bernoulli trials. Thus the waiting times between successive matches are independent geometric variables on with success probability . Their moment-generating function isprovided . Since is the sum of such waiting times,For , the finite domain is . For , every index is a match, so deterministically and the moment-generating function is for every real .
For , the geometric distribution tail givesFor , . The limiting cumulative distribution function is therefore for negative and for nonnegative , and it is continuous everywhere. This proveswith rate parameter and mean .
Past exam of the physics A course of the University of Cambridge 2014 Paper 1 Section C C10 Solution 2026-10-20
Each electromagnetic normal mode is a quantum harmonic oscillator with . For its canonical partition function and occupation probabilities areThe geometric distribution is normalized and gives thermal mode energy . The zero-point term is not part of the thermally emitted black-body intensity. The equilibrium photon chemical potential is zero because photon number is not conserved.
Counting two transverse polarizations gives modes per volume per frequency interval. Thus the spectral energy density is . In an isotropic radiation field, spectral radiance is . Transforming the spectral measure, , givesHere intensity means radiance per wavelength and solid angle; the hemispheric spectral exitance of a black surface is . The extra Jacobian is essential: the wavelength peak is not found by simply converting the frequency peak using .
At short wavelength the exponential suppresses radiation. At long wavelength the Rayleigh-Jeans limit is ; using classical equipartition at every frequency instead would produce the ultraviolet catastrophe. The wavelength maximum solves , with nonzero root , yielding Wien's displacement law. For the specified temperature,Integrating the hemispheric flux gives the Stefan-Boltzmann law, . The plot uses the specified ideal temperature, rather than substituting a later measured value. The physical black-body description of the cosmic microwave background is tested by comparing the sky spectrum with an absolute reference blackbody and separating instrumental and Galactic contributions.[ref]
The Cosmic Microwave Background Spectrum from the Full COBE/FIRAS Data Set by Dale J. Fixsen and others. abstract; FIRAS comparison with a precise blackbody and limits on spectral residuals
Since almost surely, only finitely many early values can attain the global minimum; it is a finite integer. Also . For every nonnegative integer , the unit-step property and translation invariance of the increments giveSubtracting consecutive tails yields the probability mass functionThus has the geometric distribution counting failures before the first success, with success parameterThis support convention is essential: the minimum of an upward-biased random walk can equal its starting position, so has positive probability.
Starting at one, state two can first be reached only after an even number of steps. At every even time before that hit, the chain is again at one. By the Markov property and part (i), each successive two-step block hits two with probability , while a failure returns to one with probability . Therefore, for the first hitting time ,Equivalently has the geometric distribution on the positive integers with success probability .
