For a real-valued loss function depending only on evaluations at , and a positive squared-norm penalty, any minimizing tuple in a sum of reproducing-kernel Hilbert spaces has the formwith the same coefficient vector for every component. The tuple must be the unique minimum-norm decomposition of its sum. Apply the representer theorem to that sum and note that the displayed tuple has total squared norm , exactly the norm of the sum. This argument is conditional on existence of a minimizer; arbitrary loss functions need not attain their infimum.
Huber loss Created 2026-09-24 Updated 2026-10-18
The Huber loss is quadratic near zero and linear beyond a fixed cutoff; its derivative is the clipped Huber score.
For threshold , the Huber loss is the loss functionThe subtraction makes the values meet at ; the slopes also meet, so the Huber loss is continuously differentiable with Huber score as its derivative. It is a convex function, since that derivative is a monotone function. These quadratic and linear pieces define the original clipped location criterion.[ref]
For , , , and , whereas the squared criterion at is . Increasing a standardized difference from to raises the Huber loss by , but raises the squared criterion by . The compromise preserves quadratic sensitivity to small differences while limiting the slope for large ones. This makes the Huber loss useful when ordinary observations should retain their detailed distances yet isolated outliers should exert limited pull.
For a fixed finite dataset and scale, taking large enough that every difference from the sample mean lies within recovers that sample mean. Toward the other extreme, for each fixed , as , connecting the criterion to median minimizes expected absolute loss. The normalization is essential: putting into the unscaled Huber loss gives zero everywhere, not a usable median criterion.
Logarithmic loss 2026-10-14
The loss function assigning to a predicted probability distribution and observed outcome . It is the negative logarithmic scoring rule; its expected value under the true probability distribution is cross-entropy. Predicting zero probability for an observed outcome gives infinite loss.
Loss class 2026-09-29
Given a hypothesis class and a loss function , its loss class is the function classIt lets properties of a learning problem be studied through the random fluctuations of the losses themselves.
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.
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 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.
