Past exam of the mathematics course of the University of Cambridge 2002 ib Paper 4 12H Solution Created 2026-09-24 Updated 2026-10-14
A prior distribution assigns uncertainty to a parameter before observing data. Multiplying its density by the likelihood and normalizing gives the posterior distribution. A Bayes estimator minimizes the posterior expected loss function for each observed sample, and therefore minimizes integrated Bayes risk when the expectations exist.
For quadratic loss , the conditional risk is , so its minimizer is the posterior mean. For absolute loss , the one-sided derivatives or subgradients show that a minimizer is any posterior median, characterized by and .
For the stated uniform distribution sampling model, let , . The likelihood is on and zero elsewhere. Intersecting this interval with the uniform prior givesWhen , the bounded uniform-location posterior isThe posterior is symmetric, so its mean and unique median coincide. If , the data have zero marginal likelihood under the stipulated prior/sampling model and this posterior density cannot be normalized. An empty or singleton intersection is not an ordinary uniform posterior of positive width.
Past exam of the mathematics course of the University of Cambridge 2004 ib Paper 4 19H Solution 2026-10-14
A Bayes estimator minimizes the integrated loss function under the prior and sampling distribution. For a nonnegative loss, Tonelli's theorem and the posterior distribution give the risk decompositionwhere is the marginal density. Thus choosing, for each observed , a measurable minimizer of the posterior expected loss minimizes the integrated risk. Observations of marginal probability zero do not affect the rule.
Here the likelihood is and the prior is on positive parameters. Put . Their product is , and . The marginal density and posterior are thereforeThis Gamma-exponential conjugacy calculation gives a Gamma distribution with shape and rate . It is the posterior, rather than the prior alone, which determines both requested estimators.
Past exam of the mathematics course of the University of Cambridge 2005 iii Paper 42 6 v Solution Created 2026-10-03 Updated 2026-10-14
In statistical decision theory, the statistical invariance principle says that a procedure should respect transformations that leave the inferential problem unchanged. If a group action preserves the model and carries each of the null and alternative parameter sets into itself, an invariant test has rejection probability function . A maximal invariant identifies its orbits, so every invariant test factors through that statistic: define its value at an orbit using any representative; invariance makes the definition independent of the representative. If the group is transitive on the null parameter set, the null law of any invariant statistic is free of that nuisance parameter.
For example, testing a normal mean with unknown scale, positive transformations preserve a one-sided mean alternative. The statistic , with the usual unbiased sample-variance scale , is invariant and has the Student t-distribution with degrees of freedom under the null. For estimation the corresponding requirement is an equivariant estimator, together with a loss function invariant under simultaneous transformation of decision and parameter. Invariance alone does not prove unrestricted optimality or supply a unique best procedure.
There is a distinct probabilistic use of the term: the Donsker invariance principle states that centred iid partial sums, normalized by , converge as processes on to Brownian motion. Its empirical-process version gives a Brownian bridge, used by goodness-of-fit tests in the next note. These functional limit theorems should be distinguished from the group-based inferential principle.
Past exam of the mathematics course of the University of Cambridge 2005 ii Paper 3 26I Solution Created 2026-09-24 Updated 2026-10-14
A loss function measures the cost of taking action at parameter . A decision rule selects an action from the data; its risk function is . A Bayes estimator minimizes the prior-averaged risk, or equivalently minimizes posterior expected loss at almost every observation. An admissible rule has no competing rule of no greater risk everywhere and strictly smaller risk somewhere. To construct a Bayes rule, form the posterior and minimize its expected loss over the allowed actions. Under squared error and finite posterior second moments the unique action is the posterior mean.
Put . The given fourth moment and independence give , . ThusEvery is strictly dominated at every by that coefficient. Hence it cannot be a finite-risk Bayes rule for any proper prior.
To make the second requested comparison, let and assume finite quadratic Bayes risk. For the affine rules the integrated risk isWith fixed, the minimum occurs at . Since , this strictly improves the homogeneous rule unless , reducing risk by . Therefore a homogeneous rule with is not Bayes, as requested. Combining the two restrictions excludes every homogeneous coefficient.
For a proper prior without global finite moments, the same nonvacuous conclusion follows from the posterior-mean condition. LetFor , . If the posterior mean were , positivity requires and . Differentiation forces . But the marginal density of would then be a constant times , a pure power not integrable at both zero and infinity. This contradicts a proper prior's normalized predictive distribution. This is the proper-prior obstruction to homogeneous variance Bayes rules.
The finite-loss qualification matters: allowing all posterior losses to equal infinity makes every action a vacuous minimizer. For example, with and proper density , the posterior second moment diverges at positive observations, so a literal infinite-loss definition would defeat the printed assertion. Ordinary meaningful Bayes rules exclude that convention.
Past exam of the mathematics course of the University of Cambridge 2006 ii Paper 1 27J a Solution Created 2026-09-24 Updated 2026-10-14
A loss function quantifies the cost of taking action when the parameter is . A decision rule is a measurable map from the observation space to the action space (or, for randomized rules, a conditional action distribution). Its risk function is . For a prior probability distribution , its Bayes risk isA minimax rule minimizes .
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 205 1 Solution Created 2026-10-03 Updated 2026-10-14
A real positive-definite kernel is a symmetric function such that, for every finite collection and every ,Thus every kernel matrix is a positive semidefinite matrix; “positive definite” here does not require strict positivity. A Reproducing kernel Hilbert space is a Hilbert space of functions on in which every point evaluation is a continuous linear functional. Its reproducing property is with , and . For a sum of positive-definite kernels, the quadratic form of its kernel matrix is a sum of nonnegative quadratic forms. Symmetry also survives summation. Consequently
For the representer theorem, put . This is a closed finite-dimensional vector space. The orthogonal decomposition by a closed subspace gives , where and . The reproducing property implies for every observed input, and thereforeSince , any minimizer must lie in . For , the reproducing property gives the evaluation vector and . Hence . If minimizes , its representation yields a minimizing . Conversely, if minimizes , then, for any , representing gives . ThusThis is an equivalence of minimizers, not an existence or uniqueness assertion: the loss function is arbitrary. A singular kernel matrix also allows nonunique coefficients, since differences in represent the zero function. Strict convexity of the loss was not used.
Now use the stated minimum-norm description of a sum of reproducing-kernel Hilbert spaces. Let . If the minimizing tuple did not attain the minimum total squared norm among decompositions of , replacing it by that unique minimum-norm tuple would preserve the loss function and strictly lower the penalty. This contradicts optimality. ThereforeFor an arbitrary , take its minimum-norm decomposition . Then , proving that minimizes .
Choose from the representer theorem for this minimizing sum, and define . Write for the component kernel matrices. ThenBy uniqueness of the minimum-norm decomposition, for every . This proves the common representer coefficients for a sum of kernels conclusion:The same coefficient vector works simultaneously. Even when is singular, changing that vector by leaves every component unchanged: forces each nonnegative squared component norm to vanish.
Population risk Created 2026-09-29 Updated 2026-10-14
The population risk of a prediction rule is its expected loss on a fresh observation from the target probability distribution.
Posterior expected loss Created 2026-09-24 Updated 2026-11-05
Given observed data , the posterior expected loss of action iswhere is the posterior distribution and the loss function. Nonnegative losses define an extended nonnegative integral; meaningful comparisons require checking when finite loss is attainable. A Bayes decision rule chooses a measurable minimizer, or an approximate minimizer if an optimum is not attained.
With finite posterior second moment and squared-error loss, completing the square gives . Thus the posterior mean minimizes the loss. With finite first moment and absolute-error loss, a posterior median minimizes it instead. Posterior expected loss conditions on the observed data and averages over parameter uncertainty; the frequentist risk of a decision rule fixes the parameter and averages over possible data.
Regularization Created 2026-09-24 Updated 2026-11-05
Regularization constrains or penalizes fitting to control the complexity or instability of a learned rule. A penalty formulation iswhere is empirical loss function and measures a chosen notion of complexity. Ridge regression penalizes squared coefficient size, the Lasso penalizes the L1 norm, and a roughness penalty penalizes derivatives of a fitted function. Early stopping can regularize an iterative fitting procedure without an explicit added penalty.
For a scalar observation with centered noise of variance , minimizing gives . Its mean squared error is : shrinkage reduces variance while introducing bias. This illustrates why regularization can improve prediction, but does not improve risk at every parameter value for every tuning choice. Cross-validation or a validation set can choose strength while a reserved test set assesses the fitted procedure.
Robust statistics Created 2026-09-24 Updated 2026-11-05
Robust statistics studies how estimators and other statistical procedures respond to departures from a reference statistical model. Such departures can include a small fraction of outliers, a heavier-tailed probability distribution, or an incorrect assumed shape. A robustness statement specifies both the permitted departure and the quantity whose change is controlled.
For data with , the sample median remains , whereas the sample mean is and grows without bound. This does not make the sample median an estimator of every desired expected value: the mean and median of an asymmetric probability distribution can differ. The estimand must therefore be specified before judging robustness.
Influence functions describe infinitesimal changes, breakdown points describe large finite-sample failures, and minimax asymptotic bias compares worst cases over a neighborhood. M-estimators connect these questions with an explicit loss function. Peter J. Huber's 1964 location paper developed a systematic treatment of estimation under contamination.[ref]
Robust Estimation of a Location Parameter by Peter J. Huber. Introduction and location estimation under contaminated normal models
Scoring rule Created 2026-10-07 Updated 2026-10-14
A scoring rule turns a probability distribution forecast and an observed outcome into a number. For example, a forecast of rain with probability should express uncertainty more usefully than a bare prediction of rain. A scoring rule lets us compare such forecasts after observations arrive, and its choice determines whether exaggerating confidence pays. A proper scoring rule rewards an honest account of uncertainty in expected value.
There are two sign conventions. A reward is maximized; a loss function is minimized. The conversion reverses every comparison. Here the linear probability score is a reward, while the binary Brier score and the negative logarithmic scoring rule are losses. Calling all three a "score" without specifying the direction would hide the central difference.
Throughout the binary examples, the random variable has a Bernoulli distribution with actual success probability , and the report assigns probability to and to . The value is stipulated by this statistical model; it is not inferred from data or a claim that a forecasting system is calibrated. In practice the true predictive distribution is unknown, and the relevant is the conditional probability of success given the information available when the forecast is issued. Propriety evaluates incentives for reporting that predictive distribution; it does not supply the unknown probabilities.
Statistical decision theory Created 2026-09-24 Updated 2026-11-05
Statistical decision theory compares procedures by the losses their decisions incur under a statistical model. Specify observation laws , an action space and a loss function . A decision rule maps data to an action, and its risk function isFor estimating a normal mean from observations of known variance , the sample mean has squared-error loss risk . Under zero-one loss, the same framework describes classification in statistical learning and statistical hypothesis testing.
Different criteria compare the whole risk function differently. A Bayes decision rule minimizes risk averaged over a prior distribution. A minimax decision rule minimizes the worst-case risk. An admissible decision rule has no competitor with no greater risk everywhere and smaller risk somewhere. These criteria require the model, allowed actions and loss to be specified; accuracy alone does not define what mistakes cost.
Statistical invariance principle 2026-10-14
If sample transformations preserve the model and both hypotheses, the invariance principle restricts attention to tests whose decisions are unchanged by those transformations. Such tests are functions of a maximal invariant. In estimation, the analogous requirement is equivariance, accompanied by an invariant loss function so that risks transform compatibly. The principle respects symmetries; it does not by itself prove optimality among all unrestricted procedures.
Statistical learning Created 2026-09-24 Updated 2026-10-14
Statistical learning constructs predictive rules from data and studies their prediction error, generalization, and computational fitting. In supervised learning, training data contain inputs and a response variable : regression analysis predicts a numerical response, while classification in statistical learning predicts a label. Unsupervised learning instead seeks structure without supplied responses, as in cluster analysis and principal component analysis. These tasks connect learning to probability and mathematical optimization. [ref]
https://web.stanford.edu/~hastie/ISLR2/Slides/Ch2_Statistical_Learning.pdf. James, Witten, Hastie and Tibshirani, ISLR chapter 2 slides
For a fitted rule and loss function , the predictive goal iswhere is a fresh observation, independent of the training data , from the intended target probability distribution. This prediction error fixes the fitted rule and averages over future observations; averaging again over training data gives the learning procedure's average performance. Its practical beauty is that a rule compresses past observations into useful future predictions. Its central difficulty is that excellent training error need not imply good generalization: cross-validation supports model selection, and a reserved test set assesses the resulting choice.
Statistical learning theory Created 2026-09-24 Updated 2026-10-13
Statistical learning theory studies mathematical guarantees and limitations for learning from data, including how a hypothesis class, loss function, and sample size affect generalization. It distinguishes a particular fitted rule's prediction error from the expected performance of the learning procedure across possible training data.
Supervised learning Created 2026-10-14 Updated 2026-10-20
Supervised learning fits a prediction rule from training data containing both inputs and associated target responses. Regression analysis predicts numerical responses; classification in statistical learning predicts class labels. A loss function specifies which prediction errors matter, and generalization concerns performance beyond the observations used to fit the rule.
Training error Created 2026-09-24 Updated 2026-10-14
Training error is the average loss function evaluated on the observations used to fit the prediction rule. It is the empirical risk of the fitted rule on its own training data. With squared-error loss, it is the average squared regression residual, measuring fit to observed responses rather than performance on fresh responses. Flexible fitting usually makes it optimistically biased for prediction error, as quantified by prediction optimism.
For a reproducible polynomial regression example, take , , and the known noiseless target . Construct responses with fixed disturbancesOrdinary least squares over polynomials of polynomial degree at most 1, 2, and 7 gives training errors , , and . The monotone improvement follows because these candidate families are nested: every smaller-degree fit remains available in the larger family. This argument concerns minimum training error, not generalization, and assumes the fitting mathematical optimization is solved. Degrees 2 and 7 fitted instead to the exact noiseless responses have mathematically zero training error; the script obtains approximately and from rounding. Extra flexibility alone does not force overfitting.