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 2019 iii Paper 218 2 c Solution by
Codex 0 2026-10-03
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 218 2 b Solution by
Codex 0 2026-10-03
Both criteria are used for model selection. AIC estimates relative out-of-sample predictive or Kullback-Leibler risk and is attractive when prediction is the main aim. BIC approximates a log Bayes factor under regular fixed-dimensional models and is consistent for selecting a true finite-dimensional model when one is present. Their penalties differ by versus . For , BIC penalizes each additional parameter more strongly and therefore tends to select smaller models.
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 218 2 a Solution by
Codex 0 2026-10-03
For a model with maximized log likelihood , fitted parameters, and observations,Both combine goodness of fit with a complexity penalty; smaller values are preferred.
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 218 1 d Solution by
Codex 0 2026-10-03
For observed proportions and fitted proportions , the binomial deviance isA second-order Taylor expansion around givesthe generalized Pearson chi-squared statistic. Under the fitted binomial model this is approximately . The observed deviance is , whose upper-tail probability is about . Since this exceeds , there is no significant evidence of overdispersion.
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 218 1 c Solution by
Codex 0 2026-10-03
Add a sex-by-treatment interaction term:In R the formula becomes
prop ~ sex * treatment. There are four parameters for four cell probabilities, so this model is saturated and, provided the cell proportions lie strictly between zero and one, fits each observed proportion exactly. It therefore recovers all the stated order relations. Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 218 1 b Solution by
Codex 0 2026-10-03
The positive intercept means the fitted baseline probability for untreated women exceeds . The positive coefficient makes each fitted male log odds exceed the corresponding female log odds, while makes treatment lower the fitted log odds for either sex. Numerically the fitted probabilities are approximatelyTheir order is , which differs from the observed order . The additive model therefore cannot reproduce the observed ordering.
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 218 1 a Solution by
Codex 0 2026-10-03
Let be the number healthy among patients and . The fitted grouped-binomial logistic regression isFor its mass has exponential dispersion family formwhereThus and
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 216 6 c Solution by
Codex 0 2026-10-03
For fixed , expansion of the matrix in part (b) givesHence its largest eigenvalue is . With and ,For each fixed starting state, or uniformly on any bounded set of starting states, this impliesUsing for in the acceptance formula givesfor sufficiently small . The constant necessarily depends on a bound for : a uniform pointwise constant over all of would be impossible because the energy error is quadratic in the starting state.
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 216 6 b Solution by
Codex 0 2026-10-03
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 216 6 a Solution by
Codex 0 2026-10-03
Letbe the Hamiltonian. The Hamiltonian Monte Carlo proposal is accepted with the Metropolis–Hastings acceptance probabilityThe leapfrog map is volume preserving and reversible after momentum reversal, so no proposal-density Jacobian appears.
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 216 4 d Solution by
Codex 0 2026-10-03
Positive definiteness makes the quadratic term uniquely maximal atFor each , maximize the concave function . Its interior critical point isThe same formula gives the appropriate boundary value when or .
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 216 4 c Solution by
Codex 0 2026-10-03
Ignoring constants, the complete-data log posterior isTake conditional expectations under . DefineCompleting the square givesFor ,so is positive definite. Exact rowwise expectations require summing over states. Thus the cost is exponential in the largest number of missing covariates in one row, more precisely times a polynomial factor for accumulating first and second moments.
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 216 4 b Solution by
Codex 0 2026-10-03
Let and let denote the observed entries in row . Conditional on the parameters, different rows of the missing design are independent, while the missing entries within one row are coupled by its Gaussian response. For ,Normalizing this expression over the configurations and multiplying over rows gives the full conditional distribution of .
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 216 4 a Solution by
Codex 0 2026-10-03
Let and regard as the latent variable. At iteration , the E-step formsThe M-step updatesThis is the expectation-maximization algorithm for the posterior objective: including in the complete-data log density makes the maximizer a maximum a posteriori estimate rather than a maximum-likelihood estimate.
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 216 3 b Solution by
Codex 0 2026-10-03
The summand intended in the question is . Under stationarity,Moreover , so the summand is bounded by . A stationary geometrically ergodic Markov chain satisfies the Markov-chain law of large numbers; hencealmost surely, and therefore in probability. In particular,
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 216 3 a Solution by
Codex 0 2026-10-03
PutThe normalizing identityshows thatis a probability measure. If and differ only in coordinate , the transition density from to is . Thereforewhich is symmetric in . Thus detailed balance holds and the Tempered Gibbs sampler is -reversible.
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 216 2 c Solution by
Codex 0 2026-10-03
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 216 2 b Solution by
Codex 0 2026-10-03
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 216 2 a Solution by
Codex 0 2026-10-03
Given the current state , a Random-scan Gibbs sampler chooses uniformly from , leaves unchanged, and samples the new coordinate from the complete conditional distributionIts transition kernel isand it leaves invariant.
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 216 1 c Solution by
Codex 0 2026-10-03
After the sum-product messages have been computed, draw exact independent posterior configurations by sampling a root from its marginal and then sampling each child from its conditional distribution given its parent. For sample , setThen is unbiased andTaking attains the required bound. Message computation costs and each exact sample costs , so with the prescribed fixed number of samples the overall cost is
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





