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 2018 iii Paper 207 3 e Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-05
For the electronic-record observational study, three strengths are:
- The large dataset improves precision of the estimated statistical association and allows detection of associations too small for a modest study.
- Adjusting for age, sex, and ancestry addresses specified measured sources of confounding.
- Routinely collected hypercalcaemia and migraine diagnoses give evidence from clinical practice, rather than depending solely on recalled calcium intake.
Three weaknesses are:
- Residual confounding remains possible: for example, other diseases, medicines, or health behaviours may affect both serum calcium and migraine.
- Co-occurrence does not establish temporal order, leaving reverse causality possible. Migraine, its management, or the decision to investigate it may alter recorded serum calcium.
- Selection bias and diagnostic misclassification can arise because patients enter health records and receive testing nonrandomly. Moreover, hypercalcaemia is not a direct measure of dietary calcium intake, limiting the claimed intervention's interpretation.
For two-sample Mendelian randomization, three strengths are:
- Genetic variants are inherited before adult migraine develops, making ordinary disease-to-genotype reverse causality implausible.
- Under instrumental-variable independence, genetic assignment reduces the environmental confounding that undermines a conventional observational study.
- The large outcome sample and combined genetic risk score improve precision, while concordant weighted-median Mendelian randomization estimator and MR-Egger regression results offer checks under different assumptions about horizontal pleiotropy.
Three weaknesses are:
- Horizontal pleiotropy can violate the exclusion restriction, while population stratification or inherited family effects can violate instrumental-variable independence. In the supplied figure, one variant has a much larger serum calcium association than the others, motivating a check for dependence on that single variant.
- The score explains only 1.25% of serum calcium variance, so instrument strength must be assessed rather than assumed. Different populations in the two samples can also undermine transport of genetic associations. A small variance fraction is not itself proof of a weak instrument in a large sample.
- A lifelong genetically influenced shift in serum calcium is not equivalent to changing dietary calcium intake. The robustness methods also need assumptions: the weighted-median Mendelian randomization estimator needs more than half of the weight from valid instruments, and MR-Egger regression needs the InSIDE assumption. The nonsignificant MR-Egger regression intercept is compatible with zero average directional horizontal pleiotropy, but with eight variants it cannot prove all instruments valid.
Thus the agreement supports the hypothesis, but does not establish the effect of a dietary intervention.
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 207 3 d Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-05
The supplementary excerpt uses an adjusted observational study and a two-sample Mendelian randomization analysis.
The observational study examines co-occurrence of hypercalcaemia and migraine diagnoses in electronic health records, adjusting for age, sex, and ancestry. Its adjusted odds ratio is 1.58, with .
The two-sample Mendelian randomization analysis combines the associations of eight genetic variants with serum calcium and with migraine, using a weighted genetic risk score. It estimates an odds ratio of 1.80 per genetically predicted 1 mg/dL higher serum calcium, with 95% confidence interval . The weighted-median Mendelian randomization estimator and MR-Egger regression provide sensitivity analyses.
The measured and instrumented exposure is serum calcium, rather than dietary calcium intake itself. Calcium intake and serum calcium are not interchangeable interventions, and an odds ratio of 1.80 is an odds contrast rather than necessarily an 80% increase in probability. The shortened excerpt supplies two approaches; a further analysis in the full research paper is outside this excerpt.
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 207 3 c Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-05
Under the displayed causal directed acyclic graphs, with nonzero effects along the relevant arrows and no exact cancellation of the effects on , the valid instrumental variables are scenarios (i), (ii), and (iv). The path arguments are:
- In (i), supplies instrument relevance, and every directed path from to goes through . The unmeasured does not cause , so instrumental-variable independence holds.
- In (ii), supplies instrument relevance. Although is unmeasured, every directed path from to still passes through . The path is blocked at its collider without conditioning, so it does not violate instrumental-variable independence.
- In (iii), bypasses , violating the exclusion restriction. There is also no directed effect of on , so instrument relevance is absent in this graph.
- In (iv), both and affect , and all directed paths to still pass through . The unconditioned collider blocks the route to , so both instrumental-variable independence and the exclusion restriction hold. Conditioning on could introduce collider bias, but is not being conditioned on here.
- In (v), bypasses , so the exclusion restriction fails despite the additional arrow.
- In (vi), bypasses , and affects the unmeasured common cause . Thus the exclusion restriction and the stated instrumental-variable independence requirement fail.
An upstream intermediate variable need not invalidate an instrumental variable if its routes to the outcome all pass through the target exposure; an outcome intermediate reached without that exposure does invalidate it.
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 207 3 b Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-05
An instrumental variable supplies variation in an exposure that can be used for causal inference about its effect on . Its three core requirements are:
- Instrument relevance: changes the distribution of ; in a simple linear model this requires a nonzero first-stage association.
- Instrumental-variable independence: is independent of unmeasured common causes of and , or independent of the relevant potential outcomes conditional on specified measured covariates.
- Exclusion restriction: interventions on affect only through , with no other causal pathway. In potential outcomes notation, .
Relevance, independence, and exclusion are the core instrumental-variable assumptions. They do not by themselves identify an arbitrary population-average effect. For a binary instrument and treatment, instrumental-variable monotonicity and the usual consistency in causal inference assumptions can identify a local average treatment effect; stronger effect-homogeneity or structural-model assumptions are needed for other effect interpretations.
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 207 3 a Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-05
Let and be the potential outcomes for the same individual under well-defined interventions setting the binary exposure to 1 and 0. The average treatment effect, also called the average causal effect on the additive scale, isThe average is over the target population. This compares hypothetical outcomes under two interventions, rather than the observed difference , which can be distorted by confounding. For binary , the displayed contrast is a causal risk difference. Consistency in causal inference and a well-defined intervention, including an appropriate no-interference in causal inference assumption, give these potential outcomes their meaning.
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 207 2 d Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-05
A second opportunity to reject raises the trial's overall Type I error above the nominal 10% in general. If and denote rejection at the first and second analyses, the overall error isThe cumulative-data test statistics are correlated, so neither 20% nor is the general answer. The latter requires independent tests, which is not the situation here.
The rejection thresholds and the stopping/continuation rule must be calibrated jointly. A prespecified group sequential design or alpha-spending function can allocate a total error budget of 10% across the analyses, using their joint null distribution. A conservative alternative planned in advance is two tests each at 5%, controlled by the Bonferroni inequality. An unplanned change to a design with a remaining error budget can be justified by the conditional error principle. Here, however, an original single-look test at 10% has no remaining conditional rejection probability after its final nonrejection. Keeping its entire original rejection region and adding a new positive-probability rejection opportunity cannot in general retain a 10% overall error rate. The two-look rule therefore needs prospective joint calibration; an already observed result cannot retrospectively create an unused error budget.
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 207 2 c Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-05
For the plug-in Neyman allocation, the estimated Bernoulli distribution variances are and , soThis uses the target ratio directly as the allocation odds; a procedure that actively corrects previous allocation imbalances would need an additional rule.
For the randomized play-the-winner rule RPW, return the drawn ball and add one ball of the same treatment after a success or of the opposite treatment after a failure. Treatment 0 has three successes and two failures, and treatment 1 has one success and three failures. The urn therefore has treatment-0 balls and treatment-1 balls. HenceFor dynamic programming with only the final patient left, there is no future value from learning. Independent uniform prior distributions and Beta-binomial conjugacy give posteriors and . Their posterior predictive probabilities of success are and . The optimal terminal action therefore givesThis is optimal for expected successes with no imposed lower bound on the randomization probabilities.
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 207 2 b Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-05
The difference of the Bernoulli distribution variances factors asThe first factor is positive, whereas makes the second negative. Thus and . Therefore Neyman allocation assigns more patients to treatment 1, the inferior treatment. Minimizing the variance of a treatment comparison and maximizing the number of desirable responses are different objectives.
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 207 2 a Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-05
Put and assume . For fixed and a fixed nonzero difference , the approximate statistical power of the Wald test increases as its noncentrality increases, whereDifferentiating with respect to the continuous allocation givesHence the unique minimum and its associated minimum variance areThis is Neyman allocation. Integer allocations use a feasible adjacent integer to the continuous optimum, comparing the resulting variances; must still hold. It is a large-sample normal approximation argument, not an exact finite-sample power theorem for arbitrary response-adaptive randomization. Under the null , the approximate power is the significance level for any allocation, although the same allocation still minimizes the stated variance.
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 207 1 c Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-05
Under the frozen-age exponential distribution convention, the mean waiting time is the reciprocal of the outgoing transition intensity. The beliefs therefore specifyBoth rates double over ten years. ConsequentlyThese calibrate the age-specific constant-rate means; they are not exact mean ages of future events when age-dependent rates continue increasing throughout the waiting time.
For a literal continuously ageing interpretation, a rate gives a Gompertz distribution for the waiting time. For , its mean isHere is the exponential integral. Solving and , and the analogous pair with means 2 and 1, instead giveswith rates and slopes in inverse years. These are an alternative continuous-age calibration, not the frozen-age answer boxed above.
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 203 4 c Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-05
A Brownian excursion in the upper half-plane from to infinity is killed planar Brownian motion conditioned to stay in , with its entrance law at . Precisely, it is the Doob h-transform for , obtained by starting at and letting . Equivalently,where is standard Brownian motion and the independent process is a dimension-three Bessel process started at zero. The transformed generator is , which explains this representation.
First compute avoidance from an interior point . Let be the exit time of ordinary planar Brownian motion from . The harmonic correctionhas boundary values on and zero on the real axis. The hydrodynamic normalization at infinity gives . Together with the maximum principle for harmonic functions this gives the useful bound . Since ordinary Brownian motion hits the real axis almost surely, the optional stopping theorem applied to this bounded harmonic function givesThe Doob h-transform weights a stopped path by its final height divided by its initial height. Applying this at the first hit of , with bounded-time localization and then a limit, therefore yieldsFor the entrance law the same result follows by conditioning at a small positive time and letting that time decrease to zero: the avoidance function has the boundary limit computed next, and the excursion is initially in a neighbourhood disjoint from .
Because the closure of the hull avoids , the Schwarz reflection principle makes analytic in a neighbourhood of zero, with real and positive real . ThusIn fact, the reflected Taylor expansion gives uniformly as inside the half-plane, so the same limit applies to the entrance process. The map in the question is , so its derivative agrees with . We obtain the restriction probability of a Brownian half-plane excursion:
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 203 4 b Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-05
Interpret the printed as the empty initial hull. Write and . Conformal maps preserve inclusion and simple connectedness of the complementary domains, so the image sets form an increasing hull family. Boundedness of on bounded sets ensures that these image hulls are bounded. The Loewner local growth property is preserved under conformal transport: after mapping out the hull at time , the small new hull is transported by near its single boundary growth point. The Schwarz reflection principle extends analytically across that point, with real positive derivative. The image diameters therefore tend to zero as the original ones do. These statements use the usual hull closures and prime ends; the initial image hull is empty.
For completeness, the infinitesimal capacity rule underlying this argument is that a shrinking hull attached near , transported by a map analytic there, hasOne obtains this by rescaling at : the transported map tends to its linear part, and half-plane capacity scales by the square of the dilation. Uniform analytic distortion near the growth point controls the error. Applying it to the mapped-out increments gives local absolute continuity of and .
The coefficient can also be read directly from the Chordal Loewner equation. The image driver is . Differentiate , at a fixed point , to obtainThe left side is regular at . On the right, the coefficient of is , so it must vanish. This proves the conformal change of half-plane capacity rule and its integrated version:If the derivative at the initial boundary point is singular, the formula is interpreted by integrating from a positive time and taking the lower limit to zero; finite image capacity and kernel continuity give this limit. The duplicated incomplete normalization sentence in the TeX is absent from the PDF.
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 203 4 a Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-05
For the Locality property of SLE, take a compact H-hull away from , and map conformally to by , fixing and infinity and with derivative one at infinity. Up to the first contact with , the image under of an grown in has the same law as grown in , after the change to its own half-plane-capacity parameterization. Equivalently, in the smaller domain has the same initial law as the curve in the larger domain until the latter encounters the removed hull. There is no conditioning on eventual avoidance.
The chordal restriction property for concerns the whole curve. Conditional on avoiding , applying gives the original law, modulo increasing reparameterization:Its associated avoidance probability, from the SLE eight-thirds restriction martingale, isThus locality identifies a stopped, unconditioned law, whereas restriction identifies a conditioned law of the entire curve.
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 203 3 d Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-05
The canonical Dirichlet Green function on the unit disc with its pole at zero is . Conformal invariance of the planar Green kernel therefore givesComparing with yieldsThis also explains the boundary data: when , the correction is . The composition with is harmonic by conformal invariance of harmonicity. Its apparent singularity at is removable because the quotient defining extends to .
Evaluating there proves the regular part of the planar Dirichlet Green function formulaOn an unbounded domain, boundary values alone need not specify a unique harmonic function. Here is the correction belonging to the canonical Dirichlet Green kernel, which fixes that ambiguity.
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





