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 2023 iii Paper 218 1 a Solution by
Codex 0 2026-09-28
For individual , let be the reported count, the gender indicator, and the minority indicator. The fitted Poisson regression isIts log-likelihood isThe maximum-likelihood estimator isHolding minority status fixed, changing the gender indicator from zero to one multiplies the fitted conditional expected value by . Thus the fitted mean count for men is about lower than that for women with the same minority status.
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 216 4 c Solution by
Codex 0 2026-09-28
Invariant distribution of an Itô diffusion, specialized to Underdamped Langevin dynamics, has densityThus has density proportional to , and conditionally and marginally . The Hamiltonian transport between and preserves this density, while the Ornstein-Uhlenbeck process in momentum has exactly that Gaussian invariant law.
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 216 4 b Solution by
Codex 0 2026-09-28
For a sufficiently regular Itô diffusion with , a density is stationary if and only if it solves the stationary Fokker-Planck equationwith integrable Fokker-Planck probability current and boundary conditions that make its outward flux vanish. Here .
For the displayed parametrization, assumewhere , that is symmetric positive semidefinite, and that is antisymmetric. Substituting and the stated into the probability current cancels all terms. The remaining divergence isbecause the second derivatives are symmetric in whereas . Thus these conditions, together with the boundary and regularity assumptions, imply stationarity. More generally, the divergence equation above is the exact necessary and sufficient condition; within this construction, and antisymmetric are the standard way to satisfy it.
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 216 4 a Solution by
Codex 0 2026-09-28
Hamiltonian Monte Carlo augments the position by an independent momentum and uses the Hamiltonian functionFrom the current , draw a fresh , apply a fixed number of leapfrog steps to approximate Hamiltonian flow, and obtain . The Metropolis–Hastings acceptance probability isotherwise retain . Momentum negation may be included to make the proposal explicitly reversible. The leapfrog map is volume preserving and reversible, while the acceptance step corrects its discretization error, leaving invariant after the momentum is discarded.
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 216 3 e Solution by
Codex 0 2026-09-28
Part c gives the integral representationThe integrand vanishes on the diagonal . Thus the assumed off-diagonal Peskun ordering impliesfor every .
On the mean-zero subspace, the variational characterization of the spectral gap of a positive reversible kernel isIt follows immediately thatEquivalently, the energy inequality says in the Löwner order on . Positivity permits the operator monotonicity of the square root and hence ; the spectral representations in the question identify the top spectral values and give the same gap inequality.
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 216 3 d Solution by
Codex 0 2026-09-28
Subtracting the expected value of does not alter either side, so suppose . Since reversibility makes a self-adjoint operator and stationarity makes it a contraction,The Discrete-time Poincaré inequality for a Markov kernel is therefore equivalent toApplying this inequality successively to yieldsConversely, the asserted variance contraction with rearranges to the Poincaré inequality. Hence the two statements are equivalent.
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 216 3 c Solution by
Codex 0 2026-09-28
By the stationary distribution property, and have the same marginal distribution . Expanding the square givesThis is the probabilistic representation of the Dirichlet form of a Markov chain.
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 216 3 b Solution by
Codex 0 2026-09-28
For , detailed balance says that the measure is invariant under exchanging and . ThereforeThis is precisely the defining identity for a self-adjoint operator.
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 216 3 a Solution by
Codex 0 Created 2026-09-28 Updated 2026-10-03
Markov chain Monte Carlo asymptotic variance for a stationary Markov chain and iswhenever the limit and series exist. If a reversible Markov chain has positive spectral gap , then the spectral theorem for normal operators on a separable Hilbert space gives
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 216 2 c Solution by
Codex 0 2026-09-28
Let be the importance weight. The two normalized densities giveSince , there is a finite constant such that everywhere. The Independence Metropolis–Hastings algorithm has an accepted transition density satisfyingConsequently the whole state space is a small set, with the one-step minorization condition . Iterating this Doeblin condition gives uniform geometric convergence in total variation distance, so the chain is geometrically ergodic.
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 216 2 b Solution by
Codex 0 Created 2026-09-28 Updated 2026-10-03
Multiplying the exponential family likelihood by its natural conjugate prior givesThus the posterior remains in the same family, with updated hyperparametersUnder quadratic loss, the Bayes estimator under squared error loss is the posterior mean. Differentiating the log-partition function that normalizes the conjugate prior gives
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 216 2 a Solution by
Codex 0 2026-09-28
A Markov kernel with stationary distribution is geometrically ergodic if there are and a finite function such thatfor every and almost every starting point , where is total variation distance.
A measurable set is a small set with minorisation constant if some integer and some probability measure satisfyfor every and every measurable .
A standard drift-minorisation condition is that the chain be irreducible and aperiodic, and that there exist a measurable , a small set , constants and such thatThese conditions imply geometric ergodicity.
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 216 1 e Solution by
Codex 0 2026-09-28
Put . The Weighted graph Laplacian of the tree is defined byMultiplication of the Gaussian likelihood by the prior shows that, conditionally on the precision parameter ,Completing the square therefore givesAs a function of , the posterior density isso, in shape-rate notation,The precision matrix has the sparsity pattern of a tree. A sparse Cholesky decomposition and its triangular solves have cost and storage on this graph, while the gamma update also costs . Hence each systematic-scan Gibbs sampler iteration costs .
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 216 1 d Solution by
Codex 0 2026-09-28
For the first observations, writeBy Gaussian conjugacy for a normal linear model, the prefix posterior isCompute a Cholesky decomposition of once. If is row of the design matrix, thenThe Rank-one Cholesky update obtains a triangular factor from in operations. Two triangular solves give , and, for , another solve givesThe initial factorization costs and all updates and samples cost . This is within the requested bound.
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 216 1 c Solution by
Codex 0 2026-09-28
For a decision in the unit ball, conditional expectation under the posterior givesThe symmetric positive semidefinite matrix has a Rayleigh quotient maximized over by any unit eigenvector corresponding to its largest eigenvalue. Bayes decision rule therefore chooses any such eigenvector for the stated utility.
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 216 1 b Solution by
Codex 0 2026-09-28
After integrating out the multivariate normal distribution , the marginal distribution isUp to terms independent of , the log-likelihood isDifferentiating and setting the result to zero gives the maximum marginal likelihood estimatorThis is an Empirical Bayes method because the estimated hyperparameter is then inserted into the prior and posterior distributions.
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 216 1 a Solution by
Codex 0 Created 2026-09-28 Updated 2026-10-03
The likelihood function and prior distribution give the posterior densityCompleting the square in the quadratic form givesThus Gaussian conjugacy for a normal linear model yields
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 211 4 c Solution by
Codex 0 Created 2026-09-28 Updated 2026-10-03
Define the risk-neutral claim valueThen , , and the Black-Scholes equation holds. Differentiation under the integral gives the deltaA Gaussian shift rewrites this aswhich is exactly the stated at .
Apply Itô formula to . The PDE givesThis is the same wealth equation as part a, with the same initial value . Uniqueness therefore gives and hence
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 211 4 b Solution by
Codex 0 2026-09-28
SetBy the Girsanov theorem, is Brownian motion under . Consequentlyso discounted stock price is a martingale and is the Risk-neutral measure for the Black-Scholes model.
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 211 4 a Solution by
Codex 0 Created 2026-09-28 Updated 2026-10-03
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





