Topics (384k) Articles (398k) Users (410) Discussions (242) Comments (383) Files (13k) New article
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 33 6 a Solution by
Codex 0 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 2014 iii Paper 33 5 a Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-06
Consider a competing interpolant and set . At each spline knot, . If its second derivative roughness penalty is infinite there is nothing to prove, so assume . Its absolutely continuous first derivative makes absolutely continuous as well, with defined almost everywhere.
On each knot interval the natural cubic spline has constant third derivative. Integrating by parts once givesThe last term vanishes because is zero at both endpoints. Summing over intervals cancels the interior boundary terms, since and are continuous at the knots. The exterior terms vanish because . Hence . Expanding the square now givesSince , equality requires almost everywhere. Absolute continuity then makes affine. It has at least two distinct zeros because , so . The natural cubic spline is the unique minimizer. This proves the minimum roughness property with absolutely continuous first derivatives, covering the weaker regularity in the question rather than assuming competitors are twice continuously differentiable. The case of two knots is included: the minimizing spline is their straight-line interpolant.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 33 3 e Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-06
The dispersion-one assumption is strongly contradicted by the preceding calculation. Use the gamma analysis with estimated dispersion, namely the F table. A failure to reject shape three does not establish that the true shape equals exactly three; retaining the estimated dispersion parameter is appropriate.
In the analysis of deviance for nested generalized linear models, a deviance reduction for extra coefficients is divided by when dispersion is estimated. The approximate null calibration is . For the type term, the null is that the two type contrasts vanish, against at least one nonzero contrast. The statistic iswith approximate null distribution and p-value . For position, the null is that its coefficient vanishes after accounting for type; the statistic iswith approximate null distribution and p-value . At 5% there is evidence that component type affects the expected failure time, and no significant additional position effect. The table is sequential: the type comparison is to the intercept-only model, while the position comparison adjusts for type. The individual gamma coefficient tests also suggest that type 3 accounts for the clearer type difference. The inverse link function means its positive contrast corresponds to a lower fitted mean failure time, holding position fixed.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 33 3 d Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-06
For the gamma variance function, the Pearson dispersion estimator isusing residual degrees of freedom. Under a specified null dispersion , the scaled statistic based on squared Pearson residuals has an approximate distribution under the usual residual approximation.
Thus
test1 corresponds to , equivalently gamma shape , the exponential distribution. test2 corresponds to , equivalently shape . The null hypotheses concern dispersion or shape, not whether the regression coefficients vanish.The code computes lower-tail probabilities. Used as one-sided tests, the alternatives are and , respectively, equivalently shapes larger than one and three. At the 5% level the first null is rejected because the lower-tail probability is , while the second is not rejected because its probability is . If the intended alternatives are two-sided, , these displayed numbers must not be called two-sided p-values: doubling the smaller tail gives approximately and , with the same decisions. The chi-squared distribution approximation is not an exact finite-sample gamma identity.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 33 3 c Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-06
Both fits use the same Gamma distribution mean model and inverse link function. Their coefficient estimates, fitted means and hence their weight matrices coincide: the common dispersion parameter only multiplies the likelihood score by a scalar and therefore does not change its zero. The displayed calls likewise show the same family and formula; fixing dispersion in a summary changes the uncertainty calculation, not these coefficient estimates.
For and , the Fisher information weights areThus the common matrix is multiplied by dispersion in the exponential case and by in the fitted gamma case. Taking square roots of the diagonal covariances givesFor instance for the intercept, and the same factor applies to all the coefficients. The standard errors are smaller because the fitted dispersion parameter is below one, not because a different mean function was fitted.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 33 3 b Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-06
A generalized linear model specifies independent responses in an exponential dispersion family, their means , and a link function connecting those means to a linear predictor. In the common notation,where are known positive weights, is the common dispersion parameter, and is the variance function. The systematic part isHere is a row of the known design matrix and contains the unknown regression coefficients. The link function is invertible on the permitted mean domain; the canonical link function takes the mean to the natural parameter. This separates distributional, predictor, and link assumptions: it does not require the response itself to be normally distributed or the mean itself to be linear in the covariates.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 33 3 a Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-06
Write and . With , the Gamma exponential dispersion family representation iswhereSubstitution gives the original gamma density, so both unknown parameters are included. The exponential-family derivative identities yield and . ThereforeThe exact natural-parameter canonical link function is . The usual inverse-link convention is , as used by the printed R fits; multiplying the link and coefficients by gives the natural-parameter convention. The sign convention changes neither the fitted means nor the weight matrix below.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 32 7 a Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-06
Write , with , and a finite . The competing risks model with transient surgical mortality has survival functionIntegrating the disease cause-specific hazard against this survival function givesThe first term accounts for disease deaths while both causes act; the second includes survivors of that period who then face only disease mortality. The probability of eventually dying from surgery isTaking the limit in gives , and thereforeThe ultimate-death conclusion uses the positive continuing disease hazard. If , the surviving fraction would instead live indefinitely in this model; the asserted conclusion is not valid in that boundary case.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 32 6 b Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-06
When the event comes from the one-covariate subject, the Schoenfeld function for a three-person binary risk set isHenceThese are limits where necessary. At a very negative coefficient the model assigns almost no event probability to the observed one-covariate subject, producing the largest positive discrepancy. At zero coefficient all three subjects have equal hazard functions, so the expected event covariate is and the discrepancy is . At a very positive coefficient the observed subject is predicted to have the event almost surely, so the discrepancy tends to zero. The function decreases strictly and stays positive at every finite coefficient: this one event alone favors increasing , while the other events in the complete Cox partial likelihood determine its overall estimate.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 32 6 a Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-06
Conditional on an event and the immediately preceding history, probabilities are proportional to the three instantaneous hazards. Put . The two zero-covariate subjects each have weight one, and the one-covariate subject has weight . The common baseline hazard cancels. ThusEach individual with zero covariate has probability ; the first boxed probability is their combined probability. Conditioning on an event at a specified continuous time can be understood by the limiting conditional event probabilities in a short interval.
The hazard-weighted covariate mean is , so the Schoenfeld function at the true coefficient isMultiplying by the two conditional probabilities givesThis verifies the score-centering property directly for this risk set.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 32 3 c Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-06
An ignorable missingness mechanism need not be absent from the data-generating process. It means that likelihood inference about the data-model parameters can omit the missingness factor, while still integrating over missing values.
Write the complete joint data statistical probability density as and the conditional missingness probability as . All values and only are observed. Under missing at random, is constant as varies with fixed. The actual observed-data likelihood is thereforeThe assumed distinctness is understood as independent variation of and . Maximizing over multiplies by a factor independent of ; likelihood ratios, scores and likelihood curvature for are therefore unchanged by omitting . This proves likelihood ignorability.
For implementation of the observed-data likelihood with a missing covariate, a linear regression model for must be accompanied by an appropriate model for the distribution of . For independent individuals, write for the regression statistical probability density and for the age statistical probability density. Up to the ignorable factor,Ignorability does not authorize discarding missing-age cases or assuming their ages have the distribution seen in the complete cases. It removes the need to model the observation mechanism for likelihood inference under the stated conditions, not the need to handle the missing covariates.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 32 3 a Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-06
Let denote the full data and the pattern of indicators, with for an observed component and for a missing one. For each fixed pattern , split the data as . The missing at random condition isHere parameterizes the missingness mechanism. Equivalently its conditional probability, with the observed data fixed, is constant over all possible completions of the missing data. The restriction is pattern-specific because the observed components depend on . Missing at random allows missingness to depend on observed values; missing completely at random imposes independence from all the data.
Pinned article: Introduction to the OurBigBook Project
Welcome to the OurBigBook Project! Our goal is to create the perfect publishing platform for STEM subjects, and get university-level students to write the best free STEM tutorials ever.
Everyone is welcome to create an account and play with the site: ourbigbook.com/go/register. We belive that students themselves can write amazing tutorials, but teachers are welcome too. You can write about anything you want, it doesn't have to be STEM or even educational. Silly test content is very welcome and you won't be penalized in any way. Just keep it legal!
Intro to OurBigBook
. Source. We have two killer features:
- topics: topics group articles by different users with the same title, e.g. here is the topic for the "Fundamental Theorem of Calculus" ourbigbook.com/go/topic/fundamental-theorem-of-calculusArticles of different users are sorted by upvote within each article page. This feature is a bit like:
- a Wikipedia where each user can have their own version of each article
- a Q&A website like Stack Overflow, where multiple people can give their views on a given topic, and the best ones are sorted by upvote. Except you don't need to wait for someone to ask first, and any topic goes, no matter how narrow or broad
This feature makes it possible for readers to find better explanations of any topic created by other writers. And it allows writers to create an explanation in a place that readers might actually find it.Figure 1. Screenshot of the "Derivative" topic page. View it live at: ourbigbook.com/go/topic/derivativeVideo 2. OurBigBook Web topics demo. Source. - local editing: you can store all your personal knowledge base content locally in a plaintext markup format that can be edited locally and published either:This way you can be sure that even if OurBigBook.com were to go down one day (which we have no plans to do as it is quite cheap to host!), your content will still be perfectly readable as a static site.
- to OurBigBook.com to get awesome multi-user features like topics and likes
- as HTML files to a static website, which you can host yourself for free on many external providers like GitHub Pages, and remain in full control
Figure 2. You can publish local OurBigBook lightweight markup files to either OurBigBook.com or as a static website.Figure 3. Visual Studio Code extension installation.Figure 5. . You can also edit articles on the Web editor without installing anything locally. Video 3. Edit locally and publish demo. Source. This shows editing OurBigBook Markup and publishing it using the Visual Studio Code extension. - Infinitely deep tables of contents:
All our software is open source and hosted at: github.com/ourbigbook/ourbigbook
Further documentation can be found at: docs.ourbigbook.com
Feel free to reach our to us for any help or suggestions: docs.ourbigbook.com/#contact





