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 2012 iii Paper 37 4 c Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-07
A Poisson model assumes independent counts between rats conditional on time, a common mean at a given time, and conditional variance equal to that mean. Comparable observation units and consistent counting are needed; unexplained rat-to-rat heterogeneity is excluded by this simple specification. The quadratic Poisson regression isThe printed nested analysis of deviance tests against . Its likelihood-ratio statistic is , approximately under the null hypothesis and regular Poisson asymptotics. The reported gives borderline rejection of the log-linear time effect at 5%, conditional on the Poisson assumptions. This is curvature of the log mean, rather than an ordinary quadratic model for the count itself.
There are only three distinct time values, so the intercept, linear term, and quadratic term span every possible set of three log means. This is Poisson mean saturation at three distinct times: the quadratic fit is saturated for the time-group means, which are , , and . A grouped deviance comparison against unrestricted time-group means has zero statistical degrees of freedom: the quadratic functional form cannot be tested at these three times. The individual-observation deviance 24.515 still describes within-group departure from the Poisson distribution, but small means and zeros make the naive goodness-of-fit calibration doubtful. Poisson variation itself can be checked using the replicates, preferably by a parametric bootstrap; it is not rendered untestable by the saturated mean specification.
Overdispersion means conditional variance exceeding the variance assumed by the Poisson mean model. For example, rats may have different latent susceptibility, so if , the law of total variance gives . A quasi-Poisson model instead uses . The Pearson-residual dispersion estimate is , using .
For the conventional quasi-likelihood comparison with estimated dispersion, useIts upper-tail probability is about 0.096, so the evidence for curvature no longer reaches 5%. The F-distribution is an approximate calibration, not an exact small-sample result for arbitrary overdispersed counts; quasi-likelihood does not supply a full Poisson likelihood. With known dispersion one would instead compare approximately with . The displayed dispersion code uses the undefined name
acf.glm2; its fitted values must be those of aom.glm2 for the stated calculation. Past exam of the mathematics course of the University of Cambridge 2012 iii Paper 37 4 b Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-07
The saturated model estimates each Poisson mean separately as , permitting the boundary value zero when . Subtracting fitted from saturated log-likelihood gives the Poisson deviancewith . A zero observation contributes . If the model includes an intercept, the score equation gives , so the summed linear terms cancel; the unsimplified expression applies generally.
For goodness of fit, the null hypothesis is that the specified independent Poisson mean model is correct; the alternative is an unrestricted collection of means. When a quadratic likelihood approximation is valid, for example with fixed and large expected counts, has approximately a chi-squared distribution with statistical degrees of freedom. Reject for a large upper-tail deviance. Merely increasing the number of sparse observations does not make this saturated-model reference reliable: the alternative dimension also increases. With small fitted means, replication-based checks or a parametric bootstrap are more defensible. This qualification concerns the absolute goodness-of-fit deviance; a fixed-dimensional nested likelihood-ratio comparison can have a better chi-squared approximation.
Past exam of the mathematics course of the University of Cambridge 2012 iii Paper 37 4 a Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-07
For the Poisson regression, the log-likelihood isSince , the score function and its derivative areConsequently a finite maximum-likelihood estimator satisfiesThese nonlinear equations are normally solved by iteratively reweighted least squares. If has full column rank, the Hessian is negative definite and any finite solution is the unique maximizer. Full rank does not by itself rule out a boundary solution at infinite coefficients for every conceivable data set. The Poisson generalized linear model has dispersion one, so there is no separate scale parameter in this likelihood.
Past exam of the mathematics course of the University of Cambridge 2012 iii Paper 37 3 e Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-07
The relevant no-preference benchmark is , because two of the three equally supplied egg types count as other-species eggs. Its log odds is , which is below the entire confidence interval. Under the fitted binomial model, species A preferentially consumes other-species eggs. The estimate is , and transforming the log-odds confidence interval by gives approximately .
Comparing the interval with zero would test equal numbers of own- and other-species eggs eaten, which is not the no-preference hypothesis for this supply. The conclusion remains model-dependent: eggs are taken from a finite supply without replacement, and depletion or dependence within a vial can affect the binomial approximation. This fitted analysis supports an association with egg type; it does not by itself establish the mechanism of recognition or avoidance.
Past exam of the mathematics course of the University of Cambridge 2012 iii Paper 37 3 d Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-07
In the species-only model, the log odds for adult species A is the intercept, so with standard error 0.07824. This also follows directly by pooling its vials: there are 570 other-species eggs among 799 eggs eaten, giving andFor a regular maximum-likelihood estimator, asymptotic normality of a maximum likelihood estimator gives , with information . Substitution of gives . An approximate 95% Wald confidence interval isThis interval treats the selected species-only model as fixed; it does not account separately for uncertainty from choosing that model.
Past exam of the mathematics course of the University of Cambridge 2012 iii Paper 37 3 c Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-07
Compare the species-only model against the additive day-and-species model. The null hypothesis is , with the alternative that at least one is nonzero. The likelihood-ratio statistic is the reduction in residual deviance,Under the null hypothesis, regular binomial likelihood asymptotics give , because the larger model has two additional parameters. For this chi-squared distribution the upper-tail probability is . There is no evidence of a day effect after controlling for species, and the species-only model is a reasonable simpler choice. The sequential day-only statistic 0.273 from the preceding table answers a different question and must not replace this comparison.
Past exam of the mathematics course of the University of Cambridge 2012 iii Paper 37 3 b Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-07
There are 23 independent vial responses. The intercept-only fit has 22 residual statistical degrees of freedom and deviance 33.631. Adding two day indicators removes two statistical degrees of freedom and reduces the residual deviance by . Adding the two species indicators then reduces it by . Thus the six replacements, in their printed order, are .
The residual deviance statistical degrees of freedom are , , and . These sequential analysis-of-deviance rows compare nested generalized linear models in the displayed order. In an unbalanced design, the first day row does not test day after controlling for species.
Past exam of the mathematics course of the University of Cambridge 2012 iii Paper 37 3 a Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-07
Index independent experimental vials by , write for the observed total eaten and for the number of other-species eggs eaten. The grouped-binomial logistic regression usesHere and identify day and adult species, and the free effects are . There is no day-species interaction. The weights in the binomial generalized linear model are the denominators , so fitting the proportions gives this binomial likelihood, not 23 Bernoulli observations. The dispersion is fixed at one. This is a model for the composition of eggs eaten conditional on the total, rather than a model for the total appetite.
Past exam of the mathematics course of the University of Cambridge 2012 iii Paper 37 1 e Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-07
The largest positive regression residual divided by the residual standard error is about , , and in the three models. In comparison, the most negative regression residual is only about two residual standard errors below zero. At least one observation is much heavier than its fitted value, even after adjusting for sex and height.
A standardized regression residual is , so the regression leverage adjustment can make these ratios larger. The maximum is selected among 100 correlated regression residuals, however; it is not a prespecified single standard-normal observation. These summaries do not give a formal regression outlier test or identify which student is extreme. Ask to check the measurement and data entry, examine residual plots and a normal quantile-quantile plot, and inspect regression leverage and influential observations. A valid observation might reveal a heavier-tailed error distribution, an omitted predictor, or a nonlinear relation. Do not remove it solely because it is unusual, and do not infer from the three summaries alone that all three maxima belong to the same student.
Past exam of the mathematics course of the University of Cambridge 2012 iii Paper 37 1 d Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-07
The additive model gives useful evidence for both predictors. To test for no adjusted sex effect, use against . The statistic has a Student t-distribution with 97 statistical degrees of freedom under the normal linear model and the null hypothesis. Here and . Similarly, against a nonzero common slope gives under the null hypothesis, with . Thus, at a fixed height males have a higher fitted mean weight, and within sex greater height is associated with greater weight.
The interaction model adds . Its female height slope is and its male height slope is . Test against using under the null hypothesis, or equivalently . The -value is 0.73139. The additive model is a reasonable parsimonious choice; the data give no evidence for different height slopes between sexes. This does not establish exact equality of population slopes. The additive model also has the higher adjusted coefficient of determination, 0.405 versus 0.3996, and a slightly smaller residual standard error.
Ignoring sex gives a height slope of 0.8769, appreciably above the adjusted slope 0.6211. This is omitted-variable bias in the descriptive regression: a taller group with a larger intercept makes the pooled height association steeper. Algebraically, with ,The printed estimates imply a positive height-sex covariance. Pooled and adjusted slopes therefore describe different comparisons; the difference is not evidence that adding sex changed a physical effect of height. For predictions, retain both sex and height, check regression diagnostics, and assess performance on new students. The residual standard error near 5.7 remains substantial and the coefficient of determination near 0.42 does not promise precise individual prediction.
Past exam of the mathematics course of the University of Cambridge 2012 iii Paper 37 1 c Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-07
In an R formula,
I(...) protects ordinary arithmetic from the formula operators: the predictor is the numerical variable , rather than an instruction to remove a formula term. Predictor centering leaves fitted values and the height slope unchanged but places the intercept at a meaningful height. It often reduces the correlation between intercept and slope estimates.With , treatment contrasts use female as the reference level in a regression factor. The fitted normal linear model isThe estimates and their standard errors areThe intercept estimates female mean weight at height 165. At that same height the male fitted mean is . Holding height fixed, the fitted male mean exceeds the female mean by 4.3294 weight units. Within either sex, one additional height unit increases fitted mean weight by 0.6211 weight units. If height is in centimetres and weight in kilograms, these interpretations use centimetres and kilograms accordingly. A standard error for the male intercept would require the covariance between and , which is not printed.
The prediction equation is . Predictions for individual students also have residual uncertainty, estimated by , beyond uncertainty in the fitted mean.
Past exam of the mathematics course of the University of Cambridge 2012 iii Paper 37 1 b Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-07
The regression residual vector is , where is the hat matrix. Both and are symmetric idempotent matrices, and . Therefore and the linear image of a multivariate normal vector givesThis multivariate normal distribution is singular, with rank : fitted-residual orthogonality forces . Specifically, and for distinct observations. Thus regression residuals are generally neither independent nor identically distributed, even though the model errors are. Also and is independent of , which justifies the standard errors and exact Student t-tests below.
Past exam of the mathematics course of the University of Cambridge 2012 iii Paper 37 1 a Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-07
Use the normal linear model , with fixed full-column-rank design matrix , independent errors , and . Its log-likelihood isFor fixed , differentiating with respect to gives . Since is positive-definite, the unique least-squares estimate isLet . The variance score equation is , givingThis is the maximum-likelihood estimator, whereas the residual standard error reported by linear-regression software is . The latter uses the unbiased residual estimate of Gaussian noise variance. These formulas assume and positive RSS; exact interpolation gives a variance-boundary degeneracy rather than an interior maximum.
Past exam of the mathematics course of the University of Cambridge 2012 iii Paper 36 4 d Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-07
First use the additional admitted form of the efficient score. Write and let . The difference is the orthogonal projection onto the nuisance tangent space. Part (c) makes every orthogonal to that space. Therefore, for all ,The function in braces belongs to L2 space; choosing it as shows it vanishes -almost everywhere. Hence the required conditional deduction isUnder the regular tail condition at both infinities, integration by parts gives , and the formula becomes . This also confirms the sign.
The admitted product form is an extra restriction; it does not follow for every independent-error regression model. To locate the restriction precisely, suppose the error-density nuisance statistical paths preserve both normalization and mean to first order. Their closed mean-preserving error tangent space is . The full nuisance tangent space is the orthogonal sum of this space and the centered functions of .
For completeness, bounded functions satisfying the two constraints are dense in the error space. Truncate an arbitrary element, subtract its expected value, and then subtract a multiple of a fixed bounded centered function with . Such a exists by truncating , since . The correction coefficients tend to zero by the Cauchy-Schwarz inequality, so the corrected truncations converge in L2 space.
Let . With and , the orthogonal projection of onto the error nuisance space is ; its projection onto the covariate nuisance space is zero. Thus the general efficient score in independent-error regression isThe orthogonality of the two terms gives the displayed efficient information. For a normal distribution of the error, , so this reduces to the admitted formula. It also does so when is constant.
A concrete counterexample to the generality of the admission is , with uniform on and independent standard logistic distribution error. Here and , so the actual efficient score is . It cannot equal because is not constant. This score function is already orthogonal to every nuisance score function: its factor is centered against error-only directions, and its factor is centered against covariate-only directions. The requested formula is valid under its stated additional admission, with the general independent-error formula above explaining its limits.
Past exam of the mathematics course of the University of Cambridge 2012 iii Paper 36 4 c Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-07
Now . With and the location score , differentiation of the log-likelihood givesTake the usual regularity conditions and so that this score function belongs to L2 space.
For the specified nuisance statistical path, differentiating at zero gives the score function . Normalization requires . There is a second constraint: the statistical path must preserve the model's zero error expected value. ThusThis constraint follows from being a path through the model, rather than from normalization alone. For a centered symmetric logistic distribution, for example, is bounded and has zero expected value, but ; it would not preserve the mean.
For any , independence impliesAll these products are integrable by the Cauchy-Schwarz inequality, since is square-integrable. Thus every such error-density score function is orthogonal to every . Covariate-density nuisance score functions are also orthogonal to these functions, since . This is the mean-preserving error tangent space orthogonality used in the final calculation.
Past exam of the mathematics course of the University of Cambridge 2012 iii Paper 36 4 b Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-07
Vary only the probability density function of , using with bounded and . The nuisance score function is , giving the statistical tangent setIts closed linear span is the nuisance tangent space of all centered functions of , by density of bounded centered scores.
The conditional expectation of the parametric score function given is zero:It is therefore orthogonal to this nuisance tangent space. Its orthogonal projection onto that space vanishes, so the efficient score is unchanged. By independence and ,These equal the parametric score function and Fisher information when is known. There is no loss of information from the unknown covariate density. This is adaptivity to an unknown covariate distribution; it follows from score orthogonality, without having to estimate the nuisance parameter.
Past exam of the mathematics course of the University of Cambridge 2012 iii Paper 36 4 a Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-07
Write and . Holding the nuisance parameter fixed, the parametric score function is the derivative with respect to of the one-observation log-likelihood. The joint probability density function isBecause , differentiating givesFor instance ensures a square-integrable score function. Its expected value is zero by independence and the centered normal distribution of the error. This is the Gaussian regression score.
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





