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 2022 iii Paper 221 4 iii Solution by
Codex 0 Created 2026-09-28 Updated 2026-10-14
The graph has no cause of , so is independent of its potential outcomes. By consistency of potential outcomes, the G-formula therefore givesCondition on and use the structural zero from part ii:Consequently the causal risk ratio isApplying Bayes' theorem to the second factor giveswhich proves the stated formula. The unmeasured common cause of and does not obstruct this total-effect argument because no mediator effect is being identified.
Past exam of the mathematics course of the University of Cambridge 2022 iii Paper 221 4 ii Solution by
Codex 0 2026-09-28
Let be the potential violence outcome if race were set to and stop status to . The substantive assumption is the structural zeroEquivalently, with the natural stop status , implies .
Past exam of the mathematics course of the University of Cambridge 2022 iii Paper 221 4 i Solution by
Codex 0 2026-09-28
The administrative data include only encounters with . Conditioning on the stop indicator selects on the colliderwhich opens the noncausal path and creates collider bias. The equal entries estimate only the selected risks . They ignore racial differences in the probability of being stopped and therefore do not identify the total causal effect of race on violence. This is also selection bias, because encounters with never enter the dataset.
Past exam of the mathematics course of the University of Cambridge 2022 iii Paper 221 3 iv Solution by
Codex 0 2026-09-28
Differentiating the residualized objective givesThis is the population Frisch–Waugh–Lovell theorem.
For a semiparametric estimator, estimate and flexibly. With cross-fitting, obtain held-out predictions and regress the residualized outcome on the residualized treatment through the origin:Cross-fitting limits overfitting bias and permits flexible nuisance estimators under the usual convergence and overlap conditions.
Past exam of the mathematics course of the University of Cambridge 2022 iii Paper 221 3 iii Solution by
Codex 0 2026-09-28
For fixed , conditional least squares is minimized byTherefore the remaining objective iswhose normal equation givesLetbe the conditional average treatment effect. Since is binary, conditional exchangeability impliesand . HenceThus is the overlap-weighted average treatment effect. It weights covariate strata by the overlap weight and generally differs from the ordinary ATE when treatment effects are heterogeneous and overlap varies with .
Past exam of the mathematics course of the University of Cambridge 2022 iii Paper 221 3 ii Solution by
Codex 0 Created 2026-09-28 Updated 2026-10-03
Under the partially linear model,Inserting this constant conditional contrast into the identification formula from part i gives
Past exam of the mathematics course of the University of Cambridge 2022 iii Paper 221 3 i Solution by
Codex 0 Created 2026-09-28 Updated 2026-10-03
The no unmeasured confounding assumption, or conditional exchangeability, isAlso assume consistency of potential outcomes, no interference in causal inference, positivity in causal inference, and finite expectations. For , the law of total expectation, exchangeability, and consistency givePositivity ensures that the observed conditional means exist on the covariate support being averaged. Subtracting the two cases identifies the average treatment effect as
Past exam of the mathematics course of the University of Cambridge 2022 iii Paper 221 2 iii Solution by
Codex 0 Created 2026-09-28 Updated 2026-10-03
Suppose assortative mating raises the dizygotic genetic correlation from to . Thenso the formula returnsThus using the nominal one-half genetic correlation produces downward bias in estimated heritability, assuming the other ACE assumptions remain valid.
Past exam of the mathematics course of the University of Cambridge 2022 iii Paper 221 2 ii Solution by
Codex 0 2026-09-28
The common marginal trait variance isFor monozygotic pairs, shared genes and shared environment giveFor dizygotic pairs, the genetic covariance is halved while the common environment is unchanged:Subtracting cancels the common-environment variance and proves Falconer's formulathe heritability under the ACE model.
Past exam of the mathematics course of the University of Cambridge 2022 iii Paper 221 2 i Solution by
Codex 0 2026-09-28
Take all components to be centered and let their marginal variances be . A linear structural equation model iswhere are mutually independent and the are identically distributed. The causal directed acyclic graph has arrows
For monozygotic twins, set with ; the genetic cause is completely shared. For dizygotic twins, one explicit construction iswhere are independent with variance . Then both additive genetic terms have variance , while their covariance is and their correlation coefficient is . In a fuller graph, the shared points to both genetic components and the unique points only to its own component.
Past exam of the mathematics course of the University of Cambridge 2022 iii Paper 221 1 iii Solution by
Codex 0 Created 2026-09-28 Updated 2026-10-25
For one unit write and . Since the graph makes independent of , the known distributions determine the conditional assignment lawUnder the sharp causal null hypothesis that has no effect on , delete . The D-separation criterion then gives blocks the route through , blocks the route through , and block the collider-opened detours through and , and remains a collider on routes through .
For independent units , choose a test statistic that measures residual association between and . Hold fixed and independently drawRecompute after each draw. A valid Monte Carlo conditional randomization test useswith a two-sided statistic or absolute value when appropriate.
Under the null, conditional on , the observed and its resamples are exchangeable because they have the same product law . The rank of among the values is therefore uniform after randomized tie breaking and conservative without it. ConsequentlyTaking expectations proves unconditional type I error control.
Past exam of the mathematics course of the University of Cambridge 2022 iii Paper 221 1 ii Solution by
Codex 0 2026-09-28
Among observed pretreatment variables, every sufficient set must contain to blockand to blockConditioning on opens the collider onso must also be included. The resulting minimal sufficient adjustment set isIt blocks every path from to that remains after removing , while the open pathpreserves instrument relevance. Adding blocks no required relevance path, sois also sufficient.
Past exam of the mathematics course of the University of Cambridge 2022 iii Paper 221 1 i Solution by
Codex 0 2026-09-28
- Instrument relevance: the conditional law of changes with .
- Instrumental-variable independence: is independent of the joint collection of potential treatments and outcomes, such as .
- The exclusion restriction: , so can affect only through .
- Consistency of potential outcomes and no interference in causal inference connect the potential variables to the observations.
In the graph, has open noncausal paths to that do not pass through , includingEquivalently, these paths remain after deleting the causal edge . Thus is associated with potential outcomes through the latent variables and , violating instrumental-variable independence; it is not a valid marginal instrument.
Past exam of the mathematics course of the University of Cambridge 2022 iii Paper 219 4 b Solution by
Codex 0 Created 2026-09-28 Updated 2026-10-14
Under , Bayes' theorem at the nested value givesSeparability of the prior and equality of the priors implyRearranging proves the Savage-Dickey density ratiowhich is the Bayes factor in favor of the nested model.
Past exam of the mathematics course of the University of Cambridge 2022 iii Paper 219 3 c Solution by
Codex 0 2026-09-28
A Gibbs sampler draws each variable from its full conditional distribution, so every proposed update is accepted. At the start of a sweep define , , andFirst update the reddenings independently asRecompute and , then make the Gaussian updatesandWiththe remaining full conditionals, in the parameterization given in the question, are the scaled inverse chi-squared lawsRepeating these updates in the displayed order gives a complete Gibbs sweep. The formulas assume and nondegenerate sampled predictors; posterior propriety must be checked because the hyperpriors are improper.
Past exam of the mathematics course of the University of Cambridge 2022 iii Paper 219 3 b Solution by
Codex 0 Created 2026-09-28 Updated 2026-11-05
Let and . With the stated improper hyperpriors, the unnormalized posterior density isIts directed acyclic graph has, for each star, the arrowsfollowed by the deterministic observation arrowsThe latent variables are repeated inside a plate indexed by ; all hyperparameters lie outside that plate.
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





