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 2 h Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-14
Multiply the beta distribution density of , the conditional binomial distribution mass of , and the conditional beta distribution density of . With the beta function, the full joint density, relative to counting measure in and Lebesgue measure in the two probabilities, isHere and both probabilities lie in . The printed joint expression omits the factor . It is a constant when is fixed and only the two probabilities vary, but is not a constant for the full joint probability distribution. Keeping it is essential when summing over the latent variable.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 35 2 g Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-14
Using the conditional beta distribution expected value and the law of iterated expectation,Equality of the expected values alone does not prove equality of the marginal distributions; the later exchangeability argument does.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 35 2 f Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-06
Apply the law of iterated expectation to the auxiliary binomial distribution:This expectation is over the full prior distribution construction, not over a particular observed auxiliary count.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 35 2 d Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-14
In Markov chain Monte Carlo, retain the derived quantity at every iteration. Rough BUGS code using the actual observations isSupply
model {
pM ~ dbeta(0.5,0.5)
pT ~ dbeta(0.5,0.5)
milkAnswers ~ dbin(pM,4)
teaAnswers ~ dbin(pT,4)
delta <- pM-pT
positive <- step(delta)
}milkAnswers=3 and teaAnswers=1. Summarize delta by its posterior mean, empirical quantiles and credible interval; the average of positive estimates . Here . Check Markov chain Monte Carlo convergence diagnostics before interpreting the simulation. Since both Bayesian posteriors are independent known beta distributions, direct independent sampling is an equally valid, simpler way to obtain the same summaries. Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 35 2 c Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-06
Independent Jeffreys priors and the two independent binomial distribution likelihood factors give, by Beta-binomial conjugacy,The Bayesian posteriors remain independent because each observation factor involves only its own probability. Their posterior means are respectively and . Notice that is the probability of saying milk first when tea was first, rather than the probability of a correct tea identification.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 35 2 b Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-14
For a binomial distribution, the score function isIts squared expected value is , using the binomial distribution variance . Hence the Jeffreys prior isthe beta distribution . The factor is independent of and disappears on normalization.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 35 2 a Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-06
For a regular one-parameter sampling distribution, the Fisher information and Jeffreys prior areUnder the usual differentiation and integrability conditions, . This prior distribution transforms as a density under smooth one-to-one reparameterizations, so the rule is coordinate invariant. Its integral need not be finite; posterior propriety must still be established if it is an improper prior.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 35 1 h Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-06
A uniform prior on makes the posterior density proportional to the Poisson change-point posterior likelihood above. The zeros trick introduces an observed zero with Poisson distribution mean , making its likelihood function equal to . Choose ; since , this mean is strictly positive. Rough BUGS code, with For , omit the array and set
zero=0 supplied as data, ismodel {
theta ~ dunif(0,T)
for (i in 1:n) {
before[i] <- step(theta-time[i])
}
j <- sum(before[])
logL <- theta-2*T+(n-j)*log(2)
zero ~ dpois(K-logL)
}j <- 0. Monitor the sampled theta to obtain its posterior mean, credible interval and interval probabilities.There is also an exact sampling method. On the posterior density is proportional to , so choose the interval with weightsThen draw from a uniform distribution on and set . These weighted interval draws sample the posterior directly, without asking a local Markov chain Monte Carlo update to cross its discontinuities.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 35 1 g Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-06
For an Inhomogeneous Poisson process, the likelihood function is the product of the intensities at arrivals times the exponential of minus the integrated intensity. The integrated intensity is . There are arrivals at rate one and at rate two, soSet and to include changes before the first or after the last arrival. An arrival exactly at the change has probability zero, so the convention for at that point does not affect the Bayesian posterior.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 35 1 f Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-06
There is a notation problem here. The posterior predictive probability calculated above is already a fixed number conditional on . Literally,No simulation is needed for that interpretation. The known exposure is also necessary, despite its omission from this part's list of inputs.
The natural uncertain quantity is instead . For its posterior probability of being below one half, draw the rate from its gamma distribution Bayesian posterior and average an indicator. Rough BUGS code isThe monitored average of
model {
lambda ~ dgamma(a+n, b+T)
q <- exp(-lambda)
belowHalf <- step(lambda-log(2))
}belowHalf estimates , equivalently . The equality boundary has zero probability. This code samples the already updated Bayesian posterior; adding the count likelihood function again would count the data twice. Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 35 1 e Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-06
The posterior predictive probability averages the conditional probability over the Bayesian posterior. Using its gamma distribution density,For fixed and ,Consequently , and both tend to . This is reasonable because the posterior mean tends to the observed rate and the posterior variance tends to zero. Averaging then approaches evaluating it at the estimated rate: with abundant observations, predictive uncertainty about the rate vanishes.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 35 1 d Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-06
Independent increments of the Poisson process give for a one-hour interval. The Poisson distribution therefore givesThis conditional probability still depends on the unknown rate.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 35 1 c Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-06
By Poisson-gamma conjugacy, the posterior density is proportional toThus the shape-rate posterior isIts posterior mean is and its variance is . The parameter is a rate, rather than a scale.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 35 1 b Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-06
A conjugate prior is a family of prior distributions whose members remain in that family after updating by the likelihood function. Here multiplying a shape-rate gamma distribution density by the Poisson process likelihood changes its power of and its exponential rate, leaving a gamma distribution. The parameters change with the observations; conjugate prior does not mean that the Bayesian posterior equals the prior distribution.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 35 1 a Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-06
The likelihood function for the ordered arrival times of a Poisson process, including the absence of further arrivals before , isThe arrival-time constraint does not depend on . Equivalently, the Poisson distribution of the total count gives , which differs by a parameter-independent factor. Conditional on the count, the Poisson process conditional arrival times have density , independent of . Thus the total count contains all the information about the rate when the exposure is known; it is a sufficient statistic.
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





