Past exam of the mathematics course of the University of Cambridge 2009 ia Paper 2 9F a Solution Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2010 ia Paper 2 9F a Solution Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2011 ia Paper 2 10F b Solution Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2011 ia Paper 2 3F a Solution Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2012 ia Paper 2 11F iii Solution Created 2026-09-24 Updated 2026-10-07
For , substitute in the probability generating function. The moment-generating function of isThe domain follows from convergence of the generating series; at or above that positive threshold the expectation diverges, even though a rational continuation can be written.
Conditioning on survival, the probability mass function from part (ii) becomes a positive-integer geometric distribution:Its conditional moment-generating function is , tending to for fixed . We can prove the required limit directly, without invoking a continuity theorem. Set . For every , the strict upper tail is exactlySince and ,At both tails equal one. This is the exponential limit of surviving geometric branching. Conditioning is essential: the unconditional variable has probability of being zero, whereas the rare surviving population has size of order .
Past exam of the mathematics course of the University of Cambridge 2012 ia Paper 2 3F Solution Created 2026-09-24 Updated 2026-10-07
For events with , the conditional probability is . Applying the definition in both orders gives Bayes theorem:Conditionally on , independent fair tosses give a binomial distribution for the head count, so . The joint probability mass function is consequentlyUse the law of total probability and the differentiated geometric series, , to obtain . The posterior coin count after exactly one head is thereforeThese probabilities sum to one by the same series identity. The conditioning weights possible coin counts by their likelihood of producing exactly one head.
Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 34 3 a Solution Created 2026-10-03 Updated 2026-10-07
The multinomial distribution has probability mass functionIt is zero outside this count simplex. The multinomial coefficient counts the individual category sequences giving the same aggregate counts; the probability vector satisfies .
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 33 6 a Solution Created 2026-10-03 Updated 2026-10-06
Introduce a latent indicator for a structural zero. In this parametrization , and conditional on the response has a Poisson distribution with mean . The zero-inflated Poisson regression usesIts observed probability mass function is at zero and at a positive count. The zero-mixing probability here is explicitly ; it is distinct from the weight of the count component.
For the expectation-maximization algorithm, start with positive and . At iteration , the E-step computesThis distinguishes structural zeros from Poisson-generated zeros. Up to terms independent of the new parameters, the expected complete-data log-likelihood isIt separates into a fractional-response logistic fit and a weighted Poisson fit. Because treatment is binary, each component is saturated over its two treatment groups, so the M-step has closed forms.
For , let , , , and . The M-step score equations giveHere , since every positive count has . The explicit coefficient updates areIterate the E- and M-steps until the observed log-likelihood and parameter estimates stabilize. This is the EM algorithm for zero-inflated Poisson regression with explicit binary-group updates; merely naming two regression routines would not supply these expressions. Both treatment groups must be represented for both contrasts to be identifiable. Zero fitted group means or endpoint mixing probabilities are boundary solutions, interpreted through limits of the log or logit coefficients. As with other mixture models, multiple starts help distinguish competing stationary solutions; EM increases the likelihood but does not guarantee a global maximum from an arbitrary start.
Past exam of the mathematics course of the University of Cambridge 2017 ia Paper 2 11F c Solution Created 2026-09-24 Updated 2026-10-05
If exactly spins equal , then . Therefore its possible values are , with for . Choosing the positive spins gives the binomial coefficientEvery such configuration has the same Curie–Weiss model weight because . The probability mass function of this spin magnetization is consequentlyand zero elsewhere. Grouping the original partition function by the same count also giveswhich verifies normalization without counting any configuration twice.
Past exam of the mathematics course of the University of Cambridge 2017 ia Paper 2 9F a Solution Created 2026-09-24 Updated 2026-10-05
The binomial theorem makes the sum of the proposed probability mass function equal to ; every term is nonnegative. Realize the associated binomial distribution as , where the are independent variables with the Bernoulli distribution of parameter . Each has expected value and variance . Linearity of expectation and variance additivity for independent random variables yieldAt or this is a constant random variable; the same formulas apply, with the endpoint mass understood by continuity.
Past exam of the mathematics course of the University of Cambridge 2017 ia Paper 2 9F b Solution Created 2026-09-24 Updated 2026-10-05
For fixed and sufficiently large ,The finite product and last factor tend to one, while . Thus the Poisson limit theorem givesThese numbers form a probability mass function because they are nonnegative and their sum is , by the exponential series. They define the Poisson distribution of parameter . Only is needed to make the binomial parameter valid, which is sufficient for the limit.
Past exam of the mathematics course of the University of Cambridge 2017 ib Paper 1 19H a Solution Created 2026-09-24 Updated 2026-10-05
A sufficient statistic has a conditional distribution of the full data given its value that is independent of the unknown parameter. A minimal sufficient statistic is sufficient and is a function of every other sufficient statistic, up to null sets. For a dominated family with common positive support, the likelihood-ratio criterion for minimal sufficiency states that is minimal sufficient if holds exactly when is independent of .
For , the joint probability mass function isThe Fisher-Neyman factorization theorem proves sufficiency of . For two samples, the likelihood ratio is , independent of exactly when their sums agree. Thus is minimal sufficient. Any one-to-one transformation of it is also minimal sufficient, so chooseThis chosen estimator is an unbiased estimator, since each observation has mean . If instead the statistic is reported as , its expectation is , and as an estimator of it has bias (zero only when ). Being a minimal sufficient statistic is unchanged by this rescaling; being an unbiased estimator is not.
Past exam of the mathematics course of the University of Cambridge 2017 ib Paper 1 7H b Solution Created 2026-09-24 Updated 2026-10-05
Since , the indicator is an unbiased estimator of . The joint probability mass function isThe Fisher-Neyman factorization theorem therefore makes a sufficient statistic. More explicitly, conditioning on gives a multinomial distribution with trials and cell probabilities , so has the binomial distribution . Consequently conditioning by the Rao-Blackwell theorem givesFor , interpret the value at as and at as ; thus the same expression uses in this probability convention. For all observations and are zero almost surely. For and , the reduction in variance is strict: given , the event still has a nondegenerate conditional probability. Directly, using the probability generating function of , the new variance is .
Past exam of the mathematics course of the University of Cambridge 2020 ii Paper 4 6B ii Solution Created 2026-09-24 Updated 2026-09-29
Put and propose . The initial condition follows from . Since ,On the other hand,and expanding the bracket gives the same expression. The formula also sums to one by the geometric series, so it is the required probability mass function.
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 224 1 c Solution 2026-09-28
Put . The assumption ensures that still takes values in , and its probability mass function at is . Using the paper's unhalved convention for the total variation distance,
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 224 2 b Solution Created 2026-09-28 Updated 2026-10-03
The conditional probability mass function is
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 224 3 b Solution 2026-09-28
For the direct half of the code-distribution correspondence, let be the length function of a binary prefix code and putThen is a probability mass function andThus every prefix code determines a distribution whose ideal description lengths do not exceed the codeword lengths.
Conversely, given a probability mass function , setfor . Then , so the Kraft inequality is satisfied. Its converse supplies a binary prefix code with these lengths, andIf real lengths are allowed, the ideal choice satisfies Kraft with equality.