The prior mean decreases as increases. More strongly, its cumulative distribution function and upper-tail probability areFor every fixed , that upper-tail probability decreases with . The statistician increasingly favors smaller values of ; as , the prior distribution concentrates near zero. For , its variance also decreases. This is concentration of a beta prior near zero.
With the data fixed, the derivatives areThus the prior weight increases and the posterior mean decreases. Their limits are and . Both the changing prior mean and the increasing weight contribute to the change in the posterior mean.
Put . As a linear combination of independent normal random variables under the posterior distribution,The shortest 95% credible interval isHere is the standard normal distribution cumulative distribution function. To justify shortest length, consider all intervals of a fixed length . If is this normal distribution posterior density, the interval probability has derivative with respect to . The normal distribution is symmetric and its density strictly decreases with distance from its mean, so this probability is uniquely maximized when the midpoint is . The centered interval can therefore attain 95% posterior probability with the least length. It is both an equal-tailed credible interval and a highest posterior density interval.
The target is the experiment's mean at . A posterior predictive distribution for a new noisy observation would instead have variance ; that extra observation variance does not belong in the requested interval.
An unknown variance requires a joint prior distribution for . The analysis is not determined until a prior for the unknown variance, and its relation to the coefficients, is specified. A maximum-likelihood estimate substituted for does not by itself account for its posterior uncertainty.
For example, retain the independent coefficient prior distributions from part (b) and independently assign an inverse-gamma distribution with shape and scale , whose probability density function is proportional to . Then the joint posterior density is proportional toConditional on , the two coefficient posterior distributions are still the independent normal distributions in part (b), with substituted for . The other full conditional distribution isThe marginal coefficient posterior distribution requires marginalization over ; it is generally nonnormal and the two coefficients need not remain independent. In particular, the posterior cumulative distribution function of the requested mean becomesIts shortest 95% credible interval must be found from this marginal posterior distribution, for example by numerical integration or posterior simulation. This is normal regression with independent coefficient and variance priors.
A different, convenient choice is a normal-inverse-gamma prior, in which the conditional coefficient prior covariance matrix is proportional to . That choice gives a multivariate Student's t-distribution after marginalization, so the interval uses its univariate Student's t-distribution quantiles. It changes the coefficient prior specification; a Student interval does not follow automatically from retaining the fixed- priors in part (b).
The derivative of the log ratio is , so increases from zero to one on and decreases to zero on . Rejecting for a sufficiently small ratio therefore gives two tails with .
Under , Cochran's theorem gives the exact sampling distribution , independently of the unknown mean. Writing for its cumulative distribution function, the two cutoffs are determined byThe first equation calibrates the exact size of a statistical test. The second is , so both tails belong to one likelihood ratio cutoff. Hence the exact critical region is . Its two tail probabilities are not generally equal: equal-tailed chi-squared cutoffs give a different test.
The full parameter space has dimension two and the null space dimension one. The regular Wilks theorem therefore gives under as . If denotes the cumulative distribution function of the chi-squared distribution with one degree of freedom, the approximate size- rejection region isThe corresponding approximate p-value isThe one degree of freedom here describes the large-sample likelihood-ratio test statistic; it is different from the exact residual degrees of freedom in the next part.
An equal-tailed credible interval for a continuous posterior distribution has probability below its lower endpoint and above its upper endpoint. If is the posterior cumulative distribution function, the endpoints are and .
A highest posterior density interval is a credible interval consisting of points of highest posterior density: every included point has density at least as high as every excluded point, apart from null-set and boundary choices. It is a posterior highest density region when that region is an interval. For a continuous unimodal density with two interior endpoints, their densities agree. A mode at a support boundary can instead force one endpoint to that boundary; a multimodal posterior can have a disconnected highest-density region rather than one interval. Equal tails and highest density need not give the same interval.
Past exam of the systems biology course of the University of Cambridge 2024 Paper 3 2 c Solution 2026-10-20
The exponential distribution prior has rate and support , so its prior density is . By Bayes' theorem,where is a normalizing constant independent of .
Completing the square gives a useful exact reference for the numerical sampling. PutThen this normal mean posterior with an exponential prior is a normal distribution with location and variance , truncated below at zero. With the standard normal distribution density and its cumulative distribution function,The exponential rate is , not three; the prior mean is three. The support restriction must be retained in both the formula and the sampler.
Let . On , squaring preserves order. Therefore for ,Including the tails gives the cumulative distribution functionDifferentiating on the interior of the support gives the probability density functionThe divergence near zero is integrable: . There is no point mass at zero, and the assigned value of a probability density function at a single endpoint does not affect the probability distribution.
Assume . An increasing affine map sends the two endpoints to zero and one when and . Solving givesIndeed, for , the cumulative distribution function of the transformed random variable iswhich is the cumulative distribution function of the continuous uniform distribution on .
A decreasing affine map works too, by swapping the endpoints:These are the two possible choices, since the image interval must have endpoints zero and one. The case cannot be transformed into a nondegenerate continuous uniform distribution by deterministic constants.
Complete the square in the transformation:Since almost surely, . For , put . The event is equivalent to . Integrating the given probability density function over both branches at once gives the survival functionThus, including the tails,The cumulative distribution function on is . Differentiation givesBoth inverse branches matter: . The endpoint divergence is integrable, and , so no endpoint atom is needed.
Integrating the probability density function from the lower endpoint gives the cumulative distribution functionThe cumulative distribution function is continuous at and tends to one at infinity.
Differentiate the cumulative distribution function for using the chain rule and the standard normal density:Thus a probability density function isThe value assigned at zero is immaterial. The probability density function is unbounded near zero, but and continuity of the cumulative distribution function there show that there is no point mass. This is a gamma distribution with shape and rate .
The random variable is nonnegative, so its cumulative distribution function is zero for . If , thenThe last step uses the symmetry of the standard normal distribution, . Hence
Since , the function is strictly increasing on its support. For ,and for . Differentiating the cumulative distribution function givesThe density value at the single point is immaterial. Hence has an exponential distribution with rate . Direct integration by parts, or its standard expected value, yields
The cumulative distribution function is continuous and strictly increasing for , so the median is the unique positive satisfying . Consequently , givingThere is no atom at , so as required.
Since is nonnegative, for . For , use to obtainThus the cumulative distribution function isIn particular it tends to one as , confirming normalization of this unit-scale Rayleigh distribution.
The cumulative distribution function isFor an absolutely continuous probability distribution, the probability density function is a nonnegative integrable function withThus interval probabilities are integrals of , and almost everywhere, in particular at continuity points of .
The word “continuous” in the source is understood in this density sense. A merely continuous cumulative distribution function need not possess a probability density function; it can instead describe a singular continuous distribution.
Reversing sign reverses the inequality. Since has a probability density function, it has no point masses, soDifferentiating the cumulative distribution function givesalmost everywhere: the minus sign outside cancels the minus sign from the chain rule. If point masses were allowed, the cumulative distribution function would instead require the left limit .
Translate the inequality inside the cumulative distribution function:Differentiating with the chain rule gives the probability density functionalmost everywhere. Translation shifts the probability distribution without changing its shape or its total probability.
For any real , put . Since is integer-valued,Continuity of the cumulative distribution function of therefore givesThe strict inequality matters before using the absence of point masses. The resulting probability distribution is discrete, with probability mass functionThus has no ordinary probability density function with respect to length on the real line. Its cumulative distribution function is a step function; its derivative is zero almost everywhere and does not recover its probabilities. The floor function has converted a density into masses on the integers.