Topics (265k) Articles (272k) Users (379) Discussions (237) Comments (384) Files (3k) New article
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 219 4 b Solution by
Codex 0 2026-10-03
With the stated flat priors, the full joint density, up to a constant, isThe priors on and contribute constants on , while those on the two variances contribute constants on . These are improper priors, so posterior propriety must be checked; the full-rank, sufficiently large-data case used below is proper.
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 219 4 a Solution by
Codex 0 2026-10-03
For one object, the probabilistic graphical model factorization isEach factor is the normal distribution density specified by the model. This factorization displays the conditional independences of the latent variables and the noisy observations .
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 219 3 d Solution by
Codex 0 2026-10-03
Write the target posterior density as and the proposal distribution density as . The Metropolis–Hastings algorithm accepts a proposed move withFor distinct states,which is symmetric in and . The rejection probability supplies the diagonal part, so the entire transition kernel satisfies detailed balance. Integrating the detailed-balance identity over the starting state proves . Hence the posterior is a stationary distribution; an irreducible Markov chain that is also an aperiodic Markov chain converges uniquely to it.
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 219 3 c Solution by
Codex 0 2026-10-03
Use broad proper uniform priors for , , and over physically plausible ranges, and broad log-uniform priors for the positive scales and . ThenA Random-walk Metropolis algorithm can update with a multivariate Gaussian proposal distribution. Initialize several dispersed chains near plausible cross-correlation delays and near the marginal-likelihood optimum; reject proposals outside the prior bounds; discard warm-up while adapting only the proposal scale and covariance; then freeze the kernel and retain a long run. Evaluate trace plots, autocorrelations, acceptance rates, between-chain agreement, and the effective sample size of a Markov chain. Posterior predictive quasar light curves provide a model check.
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 219 3 b Solution by
Codex 0 2026-10-03
At the fitted parameters, let and . For prediction times defineThe microlensing processes and measurement errors contribute no cross-covariance with the latent quasar light curve. The Gaussian process regression posterior is thereforeThe requested pointwise posterior variances are the diagonal entries of the latter matrix.
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 219 3 a Solution by
Codex 0 2026-10-03
Stack the observations as and setLet and denote matrices obtained by evaluating the two Gaussian process covariance kernels. Independence of the quasar light curve, gravitational microlensing, and Gaussian noise processes giveswhere . Thus is a multivariate normal distribution and its Gaussian-process marginal likelihood isThe off-diagonal blocks are essential: both images contain the same delayed Ornstein-Uhlenbeck process.
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 219 2 e Solution by
Codex 0 2026-10-03
Let and draw independently from an importance density . The unbiased estimatorof has one-sample second momentBy the Cauchy-Schwarz inequality,Equality holds precisely when , giving the optimal importance density for a single integralThis is circular in practice: constructing and normalizing requires detailed knowledge of the posterior and the expectation of . Here log masses are positive, so the unknown normalizer is the posterior mean being estimated. It is also optimal only for this one integral, not for general posterior summaries.
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 219 2 d Solution by
Codex 0 2026-10-03
Conditional independence givesFor each satellite, Bayes theorem gives . ThereforeIf is a kernel density estimator for the simulated marginal masses and estimates the posterior based on satellite , thenThe one-dimensional integrals can be evaluated by numerical integration on a common mass grid.
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 219 2 c Solution by
Codex 0 2026-10-03
For arbitrary nonnegative raw weights , let . The empirical squared coefficient of variation, using variance divisor , isSubstitution into the stated definition gives the usual effective sample size of importance samplingFor normalized weights , this reduces to .
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 219 2 b Solution by
Codex 0 2026-10-03
Treat the simulated pairs as samples from the prior . The numerator and denominator of the posterior mean are then ordinary Monte Carlo estimators, sowhere the normalized importance sampling weights areThe common Gaussian normalizing constant cancels.
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 219 2 a Solution by
Codex 0 2026-10-03
The measurement model has the Gaussian likelihoodMarginalizing the latent angular momentum gives the normalized posterior distributionIts posterior mean is
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 219 1 d Solution by
Codex 0 2026-10-03
By the invariance property of maximum likelihood estimation,The sampling distribution is , where has a log-normal distribution withWriting , its exact fractional bias and variance areHence, to leading order,
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 219 1 c Solution by
Codex 0 2026-10-03
Under homoskedasticity, writeThen and . Both are unbiased estimators, and their covariance matrix isIndeed the Fisher information isand its inverse is exactly the displayed covariance matrix. The estimators therefore attain the multivariate Cramer-Rao bound and are efficient estimators.
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 219 1 b Solution by
Codex 0 2026-10-03
Put , , , , and form the weighted meansThe two equations obtained from the score function areConsequently the maximum-likelihood estimators areThe Hessian matrix of the log likelihood isIts first leading principal minor is negative and its determinant is , so it is a negative-definite matrix. Thus the stationary point is the unique global maximum.
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 219 1 a Solution by
Codex 0 2026-10-03
LetSubtracting the measured distance modulus from the measured apparent magnitude givesFor the Hubble flow, defineThe Hubble law, with the Hubble constant parametrized by , gives . After integrating over each intrinsic absolute magnitude and each unobserved true distance modulus, independence therefore gives the likelihood function
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 218 6 d Solution by
Codex 0 2026-10-03
The MA(1) model has much smaller AIC, versus , so select MA(1). A nominal Wald 95% interval for its non-intercept parameter isThe estimate is close to the noninvertible boundary , where the regular asymptotic normal approximation becomes poor and likelihood curvature can understate the true one-sided uncertainty. Therefore statement (iii) is the most plausible: the nominal interval is too narrow to attain its stated coverage reliably.
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 218 6 b Solution by
Codex 0 2026-10-03
An MA() process is invertible when its innovations admit a causal absolutely summable linear representation in present and past observations. With the backshift operator , MA(1) satisfiesIf , the geometric series converges absolutely:Thus the process is invertible.
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 218 6 a Solution by
Codex 0 2026-10-03
An MA() process iswhere is white noise of variance . For MA(1), andThe transformation leaves this autocovariance unchanged. A Gaussian process is determined by its mean and covariance, so the parameters are not identifiable unless one selects, for example, the invertible representative .
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





