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 2021 iii Paper 218 4 a Solution by
Codex 0 Created 2026-09-28 Updated 2026-10-03
Past exam of the mathematics course of the University of Cambridge 2021 iii Paper 218 3 d Solution by
Codex 0 2026-09-28
Past exam of the mathematics course of the University of Cambridge 2021 iii Paper 218 3 c Solution by
Codex 0 2026-09-28
There is one row per video. Giving every video its own categorical coefficient saturates the linear predictor. The investment column is a linear combination of the video indicator columns, so the design matrix loses full rank and the investment effect can be shifted into the video effects without changing any fitted value. The model is nonidentifiable.
Past exam of the mathematics course of the University of Cambridge 2021 iii Paper 218 3 b Solution by
Codex 0 2026-09-28
Overdispersion means that conditional variance exceeds the Poisson mean. Under a correctly specified Poisson model, the Pearson statistic is approximately chi-squared with residual degrees of freedom. Hereso a one-sided five-percent test rejects. The displayed model-based confidence interval is too narrow. A quasi-Poisson fit can multiply standard errors by ; negative binomial regression or a random-effects count model can model the extra variation directly.
Past exam of the mathematics course of the University of Cambridge 2021 iii Paper 218 3 a Solution by
Codex 0 2026-09-28
Time is exposure: doubling the public duration should double the expected count without changing the viewing rate. Modeling the rate is therefore preferable to treating time as an additive linear predictor. In a Poisson regression the exact implementation should beusing as an offset; directly supplying noninteger without exposure weights is not generally likelihood-equivalent.
Past exam of the mathematics course of the University of Cambridge 2021 iii Paper 218 2 e Solution by
Codex 0 2026-09-28
The beta-binomial model mixes binomials over a beta-distributed success probability. The random-intercept generalized linear mixed model instead takesBoth create within-user dependence and overdispersion, but use different mixing distributions. The mixed-model coefficients are conditional on the random effect, while beta-binomial regression is naturally phrased through a marginal mean.
Past exam of the mathematics course of the University of Cambridge 2021 iii Paper 218 2 d Solution by
Codex 0 2026-09-28
The beta-binomial regression iswhere the beta distribution is parameterized by mean and variance parameter . Marginally,It matches part c when , so it is appropriate at the mean-variance level for a common nonnegative intraclass correlation.
Past exam of the mathematics course of the University of Cambridge 2021 iii Paper 218 2 c Solution by
Codex 0 2026-09-28
Past exam of the mathematics course of the University of Cambridge 2021 iii Paper 218 2 b Solution by
Codex 0 2026-09-28
The grouped binomial likelihood assumes conditional independence of repeated offers to one user. This is doubtful: persistent unmeasured user preferences and temporal feedback make clicks from the same user positively correlated.
Past exam of the mathematics course of the University of Cambridge 2021 iii Paper 218 2 a Solution by
Codex 0 2026-09-28
For user and offer , both fits useThe first model treats each click as Bernoulli. The grouped model treats the click count as . Their likelihoods differ only by binomial coefficients independent of the parameters, so their fitted coefficients agree.
Past exam of the mathematics course of the University of Cambridge 2021 iii Paper 218 1 e Solution by
Codex 0 2026-09-28
For prediction at covariate value , the intercept contributes variance in every case because is centered. The one-copy ridge shrinkage is , while the duplicated-design total has . ThusandSince , duplication reduces ridge bias and increases variance.
For constrained Lasso, let and . Both designs have the identical fitted total , so both haveDuplicating the predictor has no effect on Lasso predictions, despite making the coefficient vector nonunique.
Past exam of the mathematics course of the University of Cambridge 2021 iii Paper 218 1 d Solution by
Codex 0 2026-09-28
The duplicated feasible set is the diamond . A loss contour first touches an entire line segment of the diamond whenever the optimal total has the sign of a sloping face; all points on that segment give the same fit. As passes the unconstrained optimum, the solution set becomes the intersection of the interior diamond with the line .
Past exam of the mathematics course of the University of Cambridge 2021 iii Paper 218 1 b Solution by
Codex 0 2026-09-28
The one-variable constraint is , an interval whose endpoints expand as . The duplicated constraint is the disk ; the loss contours are parallel strips perpendicular to . Their first contact with the disk lies on . Equivalently, the fitted total coefficient is the least-squares coefficient clipped to , compared with for one copy.
Past exam of the mathematics course of the University of Cambridge 2021 iii Paper 218 1 a Solution by
Codex 0 2026-09-28
Put and . With objective , ridge regression givesFor the duplicated design, the objective depends on through the loss and symmetry makes the minimum-penalty decomposition equal:Duplicating a predictor therefore halves its effective ridge penalty.
Past exam of the mathematics course of the University of Cambridge 2021 iii Paper 215 4 b Solution by
Codex 0 2026-09-28
Track on the lifted integer line the coordinate refreshed at each step. It is a random walk with right-step probability and left-step probability . Every visited residue modulo has had its bit replaced by an independent fair bit. Consequently the first time all residues have been visited is a strong stationary time for this shift-refresh chain on a hypercube.
For the upper bound, reaching level visits every residue, so the refresh time is at most . The supplied moments giveFor any sequence with , Chebyshev inequality and the strong-stationary-time bound imply
For the lower bound, choose integers such thatand consider . Its supplied mean is and its variance is ; after replacing by a sequence with , take for example . This satisfies the displayed scale separation, and the supplied moment bounds showBefore that exit, the visited interval has length less than , so at least coordinates retain their initial values.
Start the chain from the all-zero vector. Conditional on the explored path, the number of one-bits is binomial with at most trials, whereas under stationarity it is . Since , standard binomial concentration separates these two laws; for instance the eventhas probability tending to one for the chain and to zero under . ThereforeThe transition from one to zero occurs in an window around , proving total-variation cutoff with cutoff time .
Past exam of the mathematics course of the University of Cambridge 2021 iii Paper 215 4 a Solution by
Codex 0 2026-09-28
For each fixed output state , the right-shift part has exactly two predecessors, each contributing , and the left-shift part also has exactly two predecessors, each contributing . Thus every column sum isThe transition matrix is doubly stochastic, so the uniform lawis invariant.
Past exam of the mathematics course of the University of Cambridge 2021 iii Paper 215 3 a Solution by
Codex 0 2026-09-28
For a path ,by the Cauchy-Schwarz inequality. Average over , multiply by , and sum. Reversing the order of summation in the definition of the two Dirichlet forms givesLet . The variational formula for variance givesTake a nonconstant eigenfunction attaining the Rayleigh quotient for . Then
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





