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 2014 iii Paper 35 4 i Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-06
The Student t random-effect model is useful when most studies are comparable but occasional genuine departures are more frequent than a normal distribution hierarchy allows. Its heavier tails permit a study effect far from without forcing a large common between-study heterogeneity scale on every study. In the Gaussian scale mixture representation, a small study-specific lowers its precision parameter and weakens its shrinkage.
Use this as robust partial pooling when occasional atypical effects are plausible. Known systematic population or design differences should still be modeled explicitly; a heavy tail cannot identify or correct within-study bias by itself.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 35 4 h Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-06
Conditional on , let and independently . The normal distribution with the stated precision parameter can be generated asThereforeby the defining normal distribution and chi-squared distribution representation of Student's t-distribution. Its density isThus is the location and is the scale, not the standard deviation: . Each study gets its own independent chi-squared draw in this Student t random-effect model.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 35 4 g Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-06
For the common Bayesian deviance convention used in all three models,Here
Dhat is , an at-posterior-mean fit measure, and is an effective parameter count. The independent model's Dhat of 53.1 is almost identical to the exchangeable model's 53.2; both improve on the common model's 57.8. The common model's corresponds to six intercepts plus one shared effect. Independence uses roughly twelve effective parameters. Partial pooling reduces the exchangeable model's effective complexity to about 8.7 while retaining nearly the same fitted likelihood function as independence.The exchangeable model has the lowest reported DIC, but the common model is competitive. Their difference is only about 1.3, whereas independence is worse by about 6.3. The deviance information criterion measures penalized fit for a predictive comparison, not model posterior probabilities, and these numbers do not establish overwhelming evidence for heterogeneity. The displayed exchangeable is , rather than the printed 70.5; rounding of the underlying values can account for a tenth and does not change this interpretation.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 35 4 f Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-06
Represent the independent locally flat intercept prior distributions by broad finite uniform priors, for example on ; this is proper and approximately constant over plausible mortality logits. With calibrated above, rough BUGS code isUse and supply treated death counts with totals , and control death counts with totals . In BUGS, the second
model {
mu ~ dnorm(0,0.25)
tau ~ dunif(0,A)
invtau2 <- pow(tau,-2)
for (j in 1:J) {
alpha[j] ~ dunif(-10,10)
beta[j] ~ dnorm(mu,invtau2)
logit(thetaC[j]) <- alpha[j]-beta[j]/2
logit(thetaT[j]) <- alpha[j]+beta[j]/2
rC[j] ~ dbin(thetaC[j],nC[j])
rT[j] ~ dbin(thetaT[j],nT[j])
oddsRatio[j] <- exp(beta[j])
}
}dnorm argument is a precision parameter, so 0.25 corresponds to variance four. Initialize the positive scale away from zero. Monitor and study odds ratios, checking Markov chain Monte Carlo convergence diagnostics and sensitivity to the finite intercept bounds and scale prior distribution. The fitted hierarchy combines binomial sampling uncertainty with between-study heterogeneity. Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 35 4 e Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-06
The overall mean and the between-study heterogeneity encode different information. A proper broad normal distribution prior such as is one possible weak prior for the mean log odds ratio; information about the spread of trials alone does not determine its center.
A concrete prior calibration for normal random-effect range can make the factor-of-50 statement simultaneous across all six trials. Conditional on , each pair difference has normal distribution . Set , , andFor every , each pair exceeds in absolute value with probability at most . The union bound therefore gives , and integrating over the uniform prior preserves that bound. This is one explicit interpretation of “very unlikely”; a different elicited probability would change the bound. A smoother proper scale prior could be calibrated similarly.
The proposed improper prior is unsuitable. The observed-data likelihood function approaches the positive common-effect likelihood as . After restricting and the intercepts to a compact interior region, it is bounded below there by a positive constant. HenceThis is an improper posterior from a log-uniform random-effect scale prior. Proper conditional sampling distributions do not repair the improper joint posterior, and an arbitrary tiny cutoff would make inference depend on that cutoff.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 35 4 d Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-06
Calling the effects exchangeable random variables means that their joint prior distribution is unchanged by permuting study labels. In a hierarchical Bayesian model, conditional independent draws achieve this, and integrating shared hyperparameters induces dependence between studies. This permits partial pooling without asserting that all effects are identical.
The assumption is reasonable when the studies concern comparable treatments, populations, outcomes and follow-up, and no known study characteristic gives one effect a systematically different prior center. Relevant differences can instead enter a linear regression for study effects, after which the residual effects may be exchangeable. The numerical table counts deaths, so its event probabilities are mortality probabilities and indicates a lower mortality odds ratio. Interpreting those counts as beneficial responses would reverse the clinical meaning.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 35 4 c Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-06
Use a proper normal distribution prior centered at zero on the log odds ratio. For example,puts approximately 95 percent of its mass between and , giving odds ratios roughly between and , close to and . Centering at zero treats reciprocal odds ratios symmetrically. If the desired central 95 percent interval is exactly , use standard deviation . A soft prior is appropriate for implausibility, whereas a bounded uniform prior would declare effects outside the limits impossible.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 35 4 b Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-06
The intercept is the midpoint of the two log odds:Equivalently is the geometric mean of the two odds. The logistic function evaluated at represents a central event probability, and approximates the average of the two group probabilities when is small. It is not generally their arithmetic average, nor is specifically the control-group log odds.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 35 4 a Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-06
The log odds ratio for treatment relative to control is the difference of the two log odds:Thus the treatment-to-control odds ratio is . Its direction refers to whatever event the binomial count records.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 35 3 i Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-14
In a normal linear model, attach a continuous spike-and-slab prior to each regression coefficient. With suitably scaled predictors, introduce indicators and setThe narrow component describes practically negligible effects; the wide component permits substantial ones. Fit the joint Bayesian posterior of coefficients, indicators and any unknown residual variance. Bayesian model averaging gives shrinkage toward zero for poorly supported effects, while quantifies wide-component support. A shared beta distribution prior on can represent uncertainty about how many effects are substantial.
Select on scientifically meaningful effect size, for example a high for a prechosen threshold in meaningful predictor units. Membership in the wide component alone does not imply a large realized effect: its normal distribution still permits values near zero. Correlated predictors also require interpretation of the joint Bayesian posterior, rather than treating each coefficient as an isolated test.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 35 3 h Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-06
Put . The posterior mean of the Gaussian practical-null mixture isNear zero, , so the narrow component has high posterior probability and is small when . This pulls the Bayesian model averaging posterior toward zero. For the given ratios, writing givesThus the order statement alone does not guarantee strong pull toward zero: already has the opposite model preference.
As grows, makes , and the mixture model approaches . Its center is exactly , and approximately only for a sufficiently diffuse wide prior, meaning . Here , so the relative displacement is about one percent. Large observations alone do not remove this finite-prior shrinkage.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 35 3 g Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-06
With equal model prior probabilities, Bayes factor updating gives and . The Bayesian model averaging posterior density is thereforeThis is a two-component mixture model of the normal distributions already derived. For the numerical observation above, and . Consequently it is predominantly the wide-model posterior, not predominantly the narrow one.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 35 3 f Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-06
The requested conclusion is false for the printed parameter values. They give and . Substituting in the Bayes factor yieldsThus the Bayes factor favours by about to one, not . Nor does the conclusion hold for arbitrary large : both parameters enter the expression explicitly. With , taking a much wider alternative, for example , would instead give . That is a different prior assumption and cannot repair the printed calculation silently.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 35 3 e Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-14
Under the point hypothesis , the test statistic has a standard normal distribution. The observed statistic is three, giving a two-sided p-value . This is conventionally strong evidence against that point hypothesis. The narrow model is a continuous prior distribution around zero, rather than a point hypothesis.
For and , normal-normal conjugacy givesThe narrow-model posterior mean is strongly pulled toward zero and its standard deviation is about . The wide-model posterior mean is about , very close to the observation, with standard deviation about . Each model produces a markedly different posterior, so choosing between them requires their predictive evidence.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 35 3 d Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-06
Divide the two normal distribution predictive densities to obtain the Bayes factorAt this becomesThe wider prior distribution spreads its predictive mass over more possible means, giving the narrower model more Bayesian model evidence for observations very near zero. Away from zero, the exponential term opposes that factor.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 35 3 c Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-06
Write , with independent and . The convolution of independent random variables is again a normal distribution, so the prior predictive laws areThese are predictive distributions before observing , hence the Bayesian model evidence for the observed mean. The residual information in the original observations is common to both models and cancels in their Bayes factor.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 35 3 b Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-14
Let , and . These are the two prior precision parameters. Completing the square in gives the normal-normal conjugacy updateThus the posterior mean is a precision-weighted average of the observed mean and the prior center zero. The posterior variance is the reciprocal of the total precision.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 35 3 a Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-06
At zero a centered normal distribution with standard deviation has density . The two prior standard deviations are and , givingThe wider prior distribution has a lower density at its center.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 35 2 j Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-14
For each auxiliary count , the correctly normalized joint expression above is symmetric in . Summing it over preserves that symmetry, so these are exchangeable random variables. Their marginal distributions are therefore identical. Since was generated from a beta distribution,The Beta-binomial exchangeable coupling changes the dependence, while leaving both prior distributions unchanged.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 35 2 i Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-06
Two exchangeable random variables satisfy : their joint probability distribution is unchanged by swapping the coordinates. Thus for every measurable set ,Exchangeability implies identical marginal distributions, but does not imply independence.
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





