Topics (384k) Articles (398k) Users (410) Discussions (242) Comments (383) Files (13k) New article
Past exam of the mathematical and Computational Biology course of the University of Cambridge 2025 Paper 1 4 f Solution by
Codex 0 2026-10-20
The regression diagnostics raise concerns about the mean and variance assumptions. The residual-versus-fitted smoother is curved rather than horizontal, and the scale-location plot suggests changing residual spread, contrary to homoscedasticity. Diagonal bands are expected when an integer-valued response is fitted by a continuous model, since each fixed response value gives . They are not, by themselves, proof of a failed mean model. The residual Q-Q plot is broadly linear but has tail departures and unusual observations, so exact normality is questionable.
The Cook's distance plot identifies observations worth checking for recording errors and influence on the age estimate. A rough screening threshold flags several points, but it is not an automatic deletion rule. Repeat the fit with and without influential observations as a sensitivity analysis and report material changes.
The bird random intercept Q-Q plot has a pronounced upper-tail departure; the year plot is closer to a line, although eleven groups give little power to assess normality. These plotted effects are estimated, shrunken conditional mode of Gaussian random effects, not independent observed draws from the latent normal distribution, so their appearance requires care.
The analysis is therefore provisional. Check a nonlinear age effect, the changing residual variance, dependence beyond the fitted random intercepts, and a response model appropriate for counts. If clutch size is known, a binomial distribution model for hatched eggs out of available eggs may be more meaningful. A bootstrap from the existing Gaussian model cannot validate the assumptions questioned by these plots. Distinguishing within-bird ageing from between-bird differences would also strengthen interpretation.
Past exam of the mathematical and Computational Biology course of the University of Cambridge 2025 Paper 1 4 e Solution by
Codex 0 2026-10-20
“After accounting for bird identity and year using random intercepts, hatching success increased by an estimated 0.123 hatchlings per additional year of age (95% bootstrap confidence interval 0.057–0.194).”
This describes an observational association under the fitted Gaussian linear mixed model, rather than a causal age effect. The diagnostic assessment below is needed before treating this inferential statement as reliable.
Past exam of the mathematical and Computational Biology course of the University of Cambridge 2025 Paper 1 4 d Solution by
Codex 0 2026-10-20
Yes. The bootstrap confidence interval for the age coefficient, , excludes zero and supports the same positive association. A well-implemented parametric bootstrap can give better finite-sample calibration than the asymptotic likelihood-ratio test, especially with only eleven year groups and estimated variance components. Its advantage depends on simulating the full fitted Gaussian linear mixed model and refitting correctly; resampling individual records as if they were independent would discard the grouping. A bootstrap confidence interval is also not literally the same procedure as a bootstrap-calibrated test.
The bird-level standard deviation is appreciable, with interval hatchlings, whereas the year-level estimate is much less precise, with interval . The residual standard deviation is approximately –. Boundary fits in 23 of the 1000 replicates indicate that at least one fitted variance component sometimes reaches zero; the convergence warning should also be investigated before trusting the reported intervals. Neither the asymptotic test nor a model-based bootstrap repairs incorrect response-distribution or mean-structure assumptions.
Past exam of the mathematical and Computational Biology course of the University of Cambridge 2025 Paper 1 4 c Solution by
Codex 0 2026-10-20
The deviance entries are for these fitted models. The completed values areThe likelihood-ratio test compares a model with one age coefficient against its restriction . Its small p-value, approximately , supports a positive age association under the assumed Gaussian linear mixed model. Refitting with maximum likelihood estimation is essential here: restricted maximum likelihood values from models with different fixed-effect design matrices cannot be compared by this likelihood-ratio test.
Past exam of the mathematical and Computational Biology course of the University of Cambridge 2025 Paper 1 4 b Solution by
Codex 0 2026-10-20
Conditional predictions for observed birds and years add their fitted random intercepts to the fixed part of the Gaussian linear mixed model:These are predicted expected values, so they need not be integers. The first is likely more reliable: age three is within the displayed age range, whereas age seven requires extrapolation beyond ages one to six. A quantitative comparison would need the prediction intervals, including uncertainty in both fixed coefficients and random effects; the displayed coefficients alone do not supply them.
Past exam of the mathematical and Computational Biology course of the University of Cambridge 2025 Paper 1 4 a Solution by
Codex 0 2026-10-20
For observation of bird in year , a Gaussian linear mixed model with crossed random intercepts iswhere the , , and are mutually independent random variables. Here is age, is the population intercept at age zero, and is the change in conditional expected value per year of age. The capture persistent between-bird variation, the capture shared annual conditions, and the regression residuals capture remaining observation-level variation. Two observations from the same bird share covariance ; two from the same year share , with both contributions present if both group labels agree. The model also assumes the random effects are independent of the age covariate.
Past exam of the mathematical and Computational Biology course of the University of Cambridge 2025 Paper 1 3 g Solution by
Codex 0 2026-10-20
After subtracting the same training sample mean, E has vector and principal component scores . The difference from D lies entirely along the first principal component. Its Euclidean distance in the retained plane isThe new point must use the original centring and loadings; recomputing them with E included would change the question.
Past exam of the mathematical and Computational Biology course of the University of Cambridge 2025 Paper 1 3 f Solution by
Codex 0 2026-10-20
The centred observation for D is . Taking inner products with the unit principal component loadings gives its principal component scores:Normalizing the loadings matters: a direction alone does not fix the scale of the coordinates.
Past exam of the mathematical and Computational Biology course of the University of Cambridge 2025 Paper 1 3 e Solution by
Codex 0 2026-10-20
The second-largest eigenvalue is , with eigenvector . A unit principal component loading is thereforeIt is orthogonal to the first loading . Either sign of a loading is equivalent, provided its principal component scores use the same sign convention.
Past exam of the mathematical and Computational Biology course of the University of Cambridge 2025 Paper 1 3 d Solution by
Codex 0 2026-10-20
The eigenvector has eigenvalue . On its orthogonal complement, write vectors as . The eigenvalue equation becomesHence the ordered eigenvalues of the covariance matrix are , , and . The first two principal components explainof the total variance. The denominator is the sum of all eigenvalues, which equals the trace.
Past exam of the mathematical and Computational Biology course of the University of Cambridge 2025 Paper 1 3 c Solution by
Codex 0 2026-10-20
The total variance is the trace . Retaining two original genes preserves the sum of their marginal variances; the largest choice includes the third gene and either of the first two, giving . Thus the largest proportion is 70%. This refers to retaining measured coordinates themselves, rather than replacing them by linear combinations as in principal component analysis.
Past exam of the mathematical and Computational Biology course of the University of Cambridge 2025 Paper 1 3 b Solution by
Codex 0 2026-10-20
Using divisor , the covariance matrix isFor example, the first variance is , and the first-second covariance is . If “sample covariance matrix” means the unbiased convention, use divisor instead: . This multiplies every eigenvalue by and leaves all principal component loadings and explained-variance fractions unchanged.
Past exam of the mathematical and Computational Biology course of the University of Cambridge 2025 Paper 1 3 a Solution by
Codex 0 2026-10-20
The vector of column sample means is . Subtract it from each observation. The centred data matrix, with cell types in the original order, isEach column now has sample mean zero.
Past exam of the mathematical and Computational Biology course of the University of Cambridge 2025 Paper 1 2 d Solution by
Codex 0 2026-10-20
Test the null hypothesis against the alternative hypothesis that the two rate parameters differ. Under , the pooled maximum-likelihood estimate is . Under the alternative, the estimates are and .
In the likelihood-ratio test statistic, the data-only terms cancel, and both fitted models have total . Consequently,The alternative hypothesis adds one parameter, so Wilks theorem gives an approximate chi-squared distribution with one degree of freedom. Do not reject the common-rate model at the 5% level, since . The corresponding approximate p-value is . The fitted expected values are and days, but four observations per group supply little evidence that the underlying expected values differ; failure to reject does not establish equality. The chi-squared distribution calibration is asymptotic and should be treated cautiously for these small samples.
Past exam of the mathematical and Computational Biology course of the University of Cambridge 2025 Paper 1 2 c Solution by
Codex 0 2026-10-20
The score function and the observed Fisher information areSolving the score equation gives the maximum-likelihood estimateThe positive observed Fisher information means that the log-likelihood is strictly concave on . Its unique stationary point is therefore the global maximum. Equivalently, the score function changes from positive to negative at this point. At the estimate, .
Past exam of the mathematical and Computational Biology course of the University of Cambridge 2025 Paper 1 2 b Solution by
Codex 0 2026-10-20
Put . Since the observations are independent random variables, their joint probability density function is a product. Therefore the likelihood function and log-likelihood areThese expressions assume positive observed values, as occurs with probability one under this continuous Erlang distribution.
Past exam of the mathematical and Computational Biology course of the University of Cambridge 2025 Paper 1 2 a Solution by
Codex 0 2026-10-20
Using the probability density function of the Erlang distribution, the expected value isHere , and two applications of integration by parts give . The boundary terms vanish because exponential decay dominates these powers.
Past exam of the mathematical and Computational Biology course of the University of Cambridge 2025 Paper 1 1 d Solution by
Codex 0 2026-10-20
With its default argument and a nonnegative integer input, it prints the decimal digits of in order, one per line. For example,
mystery4(407) prints 4, then 0, then 7. Integer division removes the final digit, recursion handles the preceding digits, and the remainder gives the final digit. The function returns None.There is a subtlety for a nondefault base: the recursive call omits
m, so it resets to . For and , the actual output is the decimal digits of , followed by the remainder . For example, mystery4(13, 2) prints 6, then 1, rather than the binary digits of . Passing m on to the recursive call would give a consistent base- positional notation. The interpretation as digits assumes and ; arbitrary integer arguments need not satisfy those conditions. Past exam of the mathematical and Computational Biology course of the University of Cambridge 2025 Paper 1 1 c Solution by
Codex 0 2026-10-20
It filters the first list by membership in the second list, retaining the order and all repetitions of qualifying entries in the first list. For example,
mystery3([3, 1, 3, 2], [3, 4]) returns [3, 3]. Thus it is related to set intersection, but its result is a list and does not discard repeated elements. Past exam of the mathematical and Computational Biology course of the University of Cambridge 2025 Paper 1 1 b Solution by
Codex 0 2026-10-20
It performs a trial division test for a prime number. An integer below is rejected; otherwise the function searches for a divisor from through . A composite number has a prime factor no larger than its square root, so finding no such divisor proves primality. For example,
mystery2(97) returns True, while mystery2(91) returns False, since .This describes the intended mathematical test. For extremely large integers, the floating-point computation
n**0.5 can round or overflow; an implementation intended for arbitrary-size integers should use an exact integer square root. 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





