Past exam of the mathematics course of the University of Cambridge 2002 iii Paper 35 3 Solution Created 2026-10-03 Updated 2026-10-14
In the Bühlmann model, one policy has a random risk parameter . Conditional on , its annual observations are independent and identically distributed random variables, with mean and variance . Put , let be the expected process variance, and let be the variance of hypothetical means. Assume the required second moments are finite.
The Bühlmann credibility premium is the best affine estimate of under mean squared error. After choosing the intercept to make the estimate unbiased, write it as . If , the law of total variance and conditional independence give its errorFor fixed , the Cauchy-Schwarz inequality minimizes the last sum at . Differentiating gives . Thus the credibility factor and credibility premium areThe ratio form assumes ; when and , the conditional mean is constant and . Predicting rather than its conditional mean adds the constant to the error and leaves the optimal affine estimate unchanged.
Here the latent intensity has a Pareto distribution with shape three and lower bound one. For , its moments are . ConsequentlyThe equality for uses the Poisson distribution conditional variance . There are two years of experience, so and the observed sample mean is . The Poisson credibility with a shape-three Pareto intensity is thereforeIn particular it equals when .
For the exact Bayesian credibility estimate, the total count conditional on has Poisson distribution of mean . Multiplication of its likelihood by the prior distribution density gives a Bayesian posterior density proportional to on . At , its normalizing integral and first-moment integral areHence the next-year predictive expected value isThe Bühlmann credibility premium optimizes over affine estimates, whereas the Bayesian posterior mean optimizes over all square-integrable estimates. This explains why the two credibility estimates need not agree for this nonconjugate prior.
Past exam of the mathematics course of the University of Cambridge 2002 iii Paper 38 4 Solution Created 2026-10-03 Updated 2026-10-14
A statistical functional is a map defined on a class of probability distributions. Its associated functional statistic is , where is the empirical distribution and each is a Dirac measure. For example, yields the sample mean. The influence function records the derivative in the direction of point contamination:It is a local, infinitesimal robustness diagnostic, not a description of arbitrary large contamination.
Suppose is differentiable in a sense strong enough to linearize it at the empirical distribution, and that its derivative in a signed direction is . Averaging the directions over gives the zero direction, so linearity implies . The resulting asymptotic linear representation isIf , the central limit theorem and the negligible remainder giveThus the asymptotic variance is . For a vector functional the integral is . Convergence of the actual finite-sample variance to this leading expression additionally requires control of second moments of the remainder, or an appropriate uniform integrability condition; convergence in distribution alone does not provide that. Existence of a contamination derivative by itself also does not guarantee the required empirical linearization.
Several complementary robustness measures follow. Gross-error sensitivity is . Under contamination , the first-order bias is , whose worst absolute coefficient is ; bounded influence therefore bounds infinitesimal gross-error bias. The local-shift sensitivity is , equal to when the influence function is smoothly differentiable. It measures the effect of moving a contaminant a small distance. The rejection point of an influence function is , using centered, standardized coordinates; it is infinite if there is no such cutoff. A finite cutoff completely rejects sufficiently extreme observations to first order. These measures address different aspects of robustness. The integral of squared influence controls asymptotic precision and efficiency, while breakdown point concerns finite amounts of contamination and is not determined by bounded influence alone.
For the quantile, assume , a unique solution , and a density continuous and positive at . Define quantiles of the contaminated distribution by generalized inversion, since a distribution with a point mass need not attain as an equality. If , its indicator is constant near for sufficiently small contamination, and differentiatingat zero gives . HenceAt the exceptional point , the generalized-inverse quantile remains exactly : below the contaminated cumulative distribution function is below , and its value at exceeds . Its actual derivative there is zero. The usual step-function expression is an almost-everywhere version, which is all that the asymptotic variance needs. Its mean is zero, and its second moment isTherefore the influence function of a quantile gives asymptotic variance and gross-error sensitivity . Its jump makes local-shift sensitivity infinite, and its nonzero constant tails make its rejection point infinite. If or the quantile is not unique, this regular derivation does not apply.
Past exam of the mathematics course of the University of Cambridge 2002 iii Paper 38 6 i Solution Created 2026-10-03 Updated 2026-10-14
Saddlepoint approximation methods retain the nonquadratic shape of a distribution through its cumulant-generating function. Suppose are independent and identically distributed, is finite on an open interval containing zero, and . For an interior target mean , solve the saddlepoint equation . Introduce exponential tilting byUnder the tilted distribution the mean and variance are and . For the product sample the Radon-Nikodym derivative is . Consequently the exact density relation for the sample mean isA local central limit approximation to the tilted density at its own mean gives . HenceFor the sum , the equivalent expression is , with . Under the usual smooth nonlattice density conditions this approximation has relative error of order for a fixed interior target. In the tilted Edgeworth expansion the order odd term vanishes at the mean. The exponent retains the Legendre-transform rate , rather than a quadratic Taylor approximation to that rate, explaining the useful tail and skewness behavior. Normalization is not automatic, and accuracy statements need their regularity and range restrictions.
For a normal distribution, and . Substitution recovers exactly the normal density of the sample mean. For an exponential distribution of rate , , and . The approximation becomesIt has exactly the gamma density shape. Replacing its leading constant by the exact normalizing constant makes it exact, illustrating why exactness of shape and exactness of the unnormalized approximation are separate questions.
For a vector sample mean, tilt by , solve , and use the local multivariate normal density at the tilted mean. This givesJoint and marginal saddlepoint densities can also be divided to approximate conditional densities, for example after conditioning on a nuisance sufficient statistic. The p* approximation uses likelihood and fitted-information coordinates to obtain a closely related approximation to a maximum-likelihood estimator's density, usually conditional on an ancillary statistic.
Tail probabilities need a corresponding integration approximation. The Lugannani-Rice saddlepoint tail approximation usesand givesHere are the standard normal distribution functions. The upper-tail correction has the opposite sign: . Inverting a cumulative distribution function introduces a pole in addition to the density's saddlepoint; treating both supplies the correction term, which is why simply integrating a normal approximation at the untilted mean is less accurate. At the apparent singularities cancel. With and , expansions give and , so . For the normal distribution the correction is zero everywhere.
These methods require care for lattice distributions, where summation and lattice corrections replace the density inversion, and near boundaries or singular covariance matrices. A distribution with no moment-generating function in a neighborhood of zero does not satisfy the starting assumptions. A successful saddlepoint approximation is therefore a structured refinement of regular asymptotic inference, not a formula guaranteed uniformly in every tail or for every model.
Past exam of the mathematics course of the University of Cambridge 2003 iii Paper 42 1 i Solution Created 2026-10-03 Updated 2026-10-14
Use the divisor- sample covariance matrix, since this is the normalization that enters the multivariate normal likelihood function:For a covariance matrix that is a positive-definite matrix , the product of the multivariate normal densities givesTo separate the sample mean from the sample covariance matrix, expand . The cross terms sum to zero because . Also by the trace identity. ThereforeThe printed expression suppresses the parameter-independent constant ; dropping this constant has no effect on maximum likelihood estimation or the likelihood-ratio test.
Past exam of the mathematics course of the University of Cambridge 2004 ib Paper 1 10H Solution Created 2026-09-24 Updated 2026-10-14
Assume independent samples and , each consisting of independent normal random variables, with respective means and a common unknown variance . Take . Normality, independence and equal variances are the assumptions giving the exact pooled Student's t-test; unequal variances would require a different test. We test against an unrestricted difference.
Put andThe normal likelihood is proportional to , where is the residual sum of squares. Under the unrestricted model, the maximizing means are and . Under , the maximizing common mean is and decomposition about the sample means gives . For either model, maximizing over variance gives . Thus the generalized likelihood-ratio test statistic isSmall is therefore equivalent to large .
Under the null, is standard normal. In each sample an orthogonal change of Gaussian coordinates separates the sample-mean coordinate from the centered residual coordinates; those coordinates are independent. Consequently has a chi-squared distribution with degrees of freedom and is independent of . Therefore has the Student's t-distribution with degrees of freedom. At significance level , reject exactly when , the two-sample pooled t-test.
Past exam of the mathematics course of the University of Cambridge 2004 iii Paper 37 3 Solution Created 2026-10-03 Updated 2026-10-14
The first output uses the equal-variance, pooled Student's t-test, as shown by its seven statistical degrees of freedom. Its exact model assumes two independent samples from normal distributions, with means and a common unknown variance . The hypotheses are against . The sample means are and , and the unbiased within-sample sample variances areThe pooled sample variance and its resulting standard error areHenceTo justify its reference distribution, under the null is standard normal, while is , independently of the two sample means. Dividing the first variable by the square root of the second divided by seven gives the exact pooled two-sample t statistic, with Student t-distribution . Its one-sided p-value is the lower tailThe associated one-sided 95% confidence interval for isThe printed missing lower bound means that this is a one-sided upper confidence limit, not that a finite lower endpoint should be estimated. With such small samples the normality and common-variance assumptions matter; a Welch analysis would use a different variance estimate and generally different degrees of freedom.
The second output is the Wilcoxon rank sum test for two independent continuous samples. Under a common-distribution null hypothesis, labels are exchangeable conditional on the pooled values, so the four ranks assigned to the first sample form a uniformly chosen four-element subset of . The first sample receives ranks , giving raw rank sumEquivalently the Mann–Whitney U test statistic is , the number of cross-sample pairs with an observation larger than a observation. This output reports the raw rank sum, rather than the shifted statistic used by some software.
A first sample tending to be smaller has a small rank sum. Under the null, all rank allocations have equal probability. Only and have rank sum at most 11. By the exact rank-sum tail one above the minimum, the exact lower-tail p-value isNo large-sample normal approximation or continuity correction is involved; the absence of ties makes this simple enumeration valid. For a common-shape location-shift family, the test's alternative is a negative location shift of relative to . Without that model, the null is equality of distributions and the rank comparison is not simply a test of equality of means or medians.
Both tests reject at the 5% level in the direction of smaller observations; only the pooled t-test rejects at 1%. The t-test uses the numerical spacing and targets a mean difference under its normal model. The rank-sum test uses ordering and an exact exchangeability calculation, avoiding the normality and common-normal-variance assumptions. Their different p-values therefore reflect both different statistics and different modelling assumptions, not a numerical contradiction.
Past exam of the mathematics course of the University of Cambridge 2004 iii Paper 43 2 iii Solution Created 2026-10-03 Updated 2026-10-14
The within-group and between-group scatter decomposition separates noise from group separation: measures variation about each group sample mean, and measures separation of those means about the overall sample mean. In linear discriminant analysis, seek a projection maximizing between-group relative to within-group variation,Normalize by ; a Lagrange multiplier calculation gives the generalized eigenvalue problem . The leading canonical discriminant directions have the largest eigenvalues, and subsequent directions are orthogonal in the inner product. There are at most nonzero separating directions. Projecting observations onto these directions gives a low-dimensional display of group separation.
For classification, estimate the common covariance matrix by and use the linear discriminant analysis scoreswhere are class prior probabilities. Assign to the largest score. The same within-group scatter sets the noise scale, while between-group scatter selects the directions in which the group means separate most strongly.
Past exam of the mathematics course of the University of Cambridge 2004 iii Paper 43 2 i Solution Created 2026-10-03 Updated 2026-10-14
Use the usual sample mean and the divisor- sample covariance matrix,The residual sum is zero, so expanding givesMultiplying the independent multivariate normal densities and taking logarithms yields the log-likelihoodHere is the determinant and denotes the trace. The maximum-likelihood estimators areIf instead denotes the divisor- sample covariance matrix, replace by and then . These formulas describe a nonsingular maximum-likelihood estimator when the empirical scatter is positive-definite; if it is singular, there is no maximizer over positive-definite covariance matrices.
Past exam of the mathematics course of the University of Cambridge 2004 iii Paper 43 4 Solution Created 2026-10-03 Updated 2026-10-14
princomp(): principal component analysis. Supply observations in rows and numeric variables in columns. After centering, let denote the resulting matrix and its sample covariance matrix, with an explicitly stated normalization. WriteThe first direction maximizes the Rayleigh quotient over unit vectors; successive directions maximize it subject to orthogonality to the earlier directions. The principal component scores are , with variances and zero pairwise sample covariance. Zero covariance alone does not imply independence. Each principal component loading describes a direction in variable space; its sign is arbitrary, and repeated eigenvalues leave the basis inside the corresponding eigenspace arbitrary.The function returns principal component loadings, component standard deviations
sdev and, when requested, principal component scores. By default it uses a covariance matrix; cor=T instead performs principal component analysis on a correlation matrix, standardizing nonconstant variables to variance one. This choice matters when variables have different measurement units. These interface details are documented in the S-Plus help for princomp.A scree plot shows the ordered eigenvalues; a plot of the first two principal component scores can reveal groups, unusual observations or a dominant gradient. The first components explain of the total variance. Reconstructing each centered observation by its orthogonal projection onto these directions minimizes average squared reconstruction error among -dimensional linear subspaces. Thus PCA gives an optimal linear compression for squared reconstruction error, with scaling and the retained dimension chosen explicitly. It is an unsupervised learning method, rather than a classification rule fitted to supplied labels.
tree(): classification trees and regression trees. A call such as tree(response ~ predictors, data=dat) fits a recursive partitioning model. At a current node, test numerical predictors against candidate thresholds, or divide the levels of a categorical predictor into two sets. Select a split that most improves the fitting criterion, then repeat within its children. Numerical splits give axis-aligned regions. A categorical response produces a classification tree; a numeric response produces a regression tree, as specified in the S-Plus tree documentation.For a regression tree, the constant prediction in a terminal region is its sample mean, minimizing the sum of squared residuals there. For a classification tree, estimate class probabilities by the observed proportions in a leaf and predict a most probable class under equal misclassification costs. The classification-tree deviance of a node iswith ; splitting maximizes the decrease from parent to children. This fitting criterion differs from the number of wrong classifications. The middle sketches show the same three-region partition as a binary tree: first split on variable one, then split the right-hand branch on variable two.
Growing to small leaves can overfit. Use cost-complexity tree pruning, balancing fitted loss against leaf count,and select complexity by cross-validation. Plotting the fitted tree and annotating nodes displays the rules; prediction routes each new observation through the fitted splits. A tree gives an interpretable, piecewise-constant prediction rule; training fit alone does not measure prediction accuracy.
The
rpart() alternative. This also fits classification and regression trees by recursive partitioning, with squared-error splitting for ordinary numeric responses and, by default for classification, Gini impurity . Classification settings can instead use information-based splitting and specify prior probabilities and a loss matrix. It supports surrogate splits to approximate a node's primary left/right assignment when the primary predictor is missing. Its complexity-parameter path and cross-validated errors support cost-complexity tree pruning; for example, select a complexity parameter and apply prune(fit, cp=...). The maintainer's rpart documentation describes the criteria and the distinction in handling surrogate predictors. The partition and tree sketches apply to either implementation; the fitted tree need not be the same because splitting criteria and controls can differ.cmdscale(): classical multidimensional scaling. Its input is a dissimilarity matrix or stored distance object. It outputs coordinates for the observations in a chosen dimension, usually two for visualization. Let contain the squared entries of , and putFor centered Euclidean coordinates , the distance identity gives : multiplying by removes the row and column norm terms. Diagonalize this Gram matrix and retain its largest positive eigenvalues. The coordinates areThus classical scaling exactly recovers Euclidean distances when all positive eigenvalues are retained. Reducing dimension approximates the centered Gram matrix; it does not in general minimize squared discrepancies in the original distances. Negative eigenvalues identify a failure of the Euclidean distance matrix criterion, so their size matters when interpreting a display. The historical S-Plus cmdscale help describes the dimension argument, eigenvalue output and optional additive adjustment to dissimilarities.Plot the two coordinate columns on equally scaled axes and label observations. Nearby plotted points suggest small dissimilarities only insofar as the dimension reduction fits the input well. The bottom sketches give an exact Euclidean example: a configuration and its independently recovered two-dimensional coordinates have identical pairwise distances, despite different coordinate axes. Classical scaling converts distances into geometry; translations, rotations and reflections do not change the represented distances. For Euclidean distances between observations, its coordinates agree with the corresponding principal component scores up to these harmless choices of axes.
Illustrative PCA directions and scree plot, equivalent recursive partition and tree, and exact classical-scaling recovery of Euclidean distances
. Details. Past exam of the mathematics course of the University of Cambridge 2005 iii Paper 41 1 Solution Created 2026-10-03 Updated 2026-10-14
scan reads the numerical prices, including the three missing-value markers, into a vector. The data must be read row by row for the subsequent factor construction to match them. The sample size available for analysis is therefore , rather than . The numerical summary describes the observed prices: the sample median is £43.54 and the sample mean is £46.94. The upper tail, particularly the boots, raises the sample mean above the sample median. These summaries mix very different products and are not adjusted country comparisons.The two character scans create labels.
gl(8,5,length=40,labels=item) makes a regression factor with each of eight item labels repeated five times. gl(5,1,length=40,labels=country) cycles through the five country labels once for each item. For a regression factor and numerical response, the two plot commands produce grouped box plots. The country box plots suggest lower US prices, while the item box plots show particularly expensive boots and inexpensive cardigans. They are descriptive displays of this small basket, with different item compositions where prices are missing; they cannot separate country effects from item effects.The first
lm fits an additive two-way analysis of variance:The constraints are R's usual treatment coding. The normal linear model used for the printed tests assumes independent errors with common variance and approximately a normal distribution, and no item-by-country interaction in the mean. Missing prices are omitted, leaving responses and independent mean coefficients. Thus the residual degrees of freedom are . This deletion is defensible for the conditional price model when missingness does not depend on the unobserved error after conditioning on the two factors; the output itself does not establish such a missing-data mechanism.The
anova tables report sequential sums of squares, rather than order-independent adjusted effects. If are the residual sums of squares from the intercept-only, country-only, item-only and additive fits, the first order allocates to country and to item. The second order allocates to item and to country. Both allocations sum to the same total explained sum of squares, and both end with the same residual sum of squares . The three missing combinations destroy balanced factorial orthogonality, so the allocation changes with order. To test country after allowing for items, use the country row in the second table; to test item after allowing for countries, use the item row in the first table. The first-entered rows do not supply those adjusted tests.Each mean square in ANOVA divides its sum of squares in ANOVA by its statistical degrees of freedom, and each printed F-statistic divides that mean square in ANOVA by . In particular, the adjusted country partial F-test haswith an reference F-distribution and p-value approximately . The adjusted item partial F-test gives on statistical degrees of freedom. Both factors contribute strongly under the additive normal linear model. The larger item sum of squares in ANOVA measures the much greater differences between these products, but is not evidence that every pair of items differs significantly.
The intercept is the fitted UK price for the reference jeans, not their observed price and not the overall sample mean. Each country regression coefficient is its adjusted price difference from the UK, assumed common across items: Sweden is £5.224 lower, France £10.708 lower, Germany £7.676 lower and the US £21.328 lower. Each item regression coefficient is its adjusted difference from the reference jeans, assumed common across countries. Thus the fitted UK boots price is , and the fitted US boots price is .
The coefficient standard errors come from , where and is the design matrix. Dividing each estimate by its standard error gives the displayed Student t-test statistic, with statistical degrees of freedom. The stars summarize the corresponding two-sided p-values. The individual tests compare each indicated country or item with its reference level, conditional on all other additive terms; they are neither tests of every pairwise comparison nor a simultaneous confidence interval procedure. In particular, Sweden's p-value provides weaker evidence than the other country contrasts, and does not establish equality with the UK. The intercept test has little substantive relevance, and interpreting many individual stars also raises multiple hypothesis testing issues.
The residual standard error measures unexplained prices in pounds. With total corrected sum of squares , the coefficient of determination and adjusted coefficient of determination areMuch of this impressive fit is due to the large differences between items. The overall F-test compares the additive fit with a constant mean: on statistical degrees of freedom. It tests that all eleven non-intercept coefficients vanish, not that the additive model is adequate. Regression diagnostics should examine regression residuals, changing price variability across items and possible interaction. Percentage differences may be more plausible than common pound differences, motivating a natural logarithm of price. No random sample of countries or products, and no independent replication of a price within a cell, is supplied; broad claims about all designer goods or the causes of country differences require more than these conditional tests.
Finally,
Item*Country expands to both main effects and their full interaction. A cell-means parameterization has one separate fitted mean for every observed cell. With one response per cell its design matrix has row matrix rank , while the full layout nominally has coefficients. Three coefficient combinations are aliased because their cells are missing. This is saturation of an unreplicated two-factor regression: every observed price is fitted exactly and the residual degrees of freedom are zero. The final fit has zero residuals, and no residual-based estimate of the error variance or ordinary interaction significance test. The printed numerical summary will mark three coefficients unestimable; coefficient standard errors, tests and adjusted involve undefined division by zero, potentially appearing as NaN or Inf according to numerical roundoff. Perfect interpolation here is a consequence of a saturated statistical model, not evidence for a superior predictive model. Past exam of the mathematics course of the University of Cambridge 2005 iii Paper 42 1 Solution Created 2026-10-03 Updated 2026-10-14
The profile likelihood for the parameter of interest replaces the nuisance parameter by its constrained best fit: , with . It is not in general a normalized sampling density. A conditional likelihood instead uses the sampling law conditional on a statistic carrying the nuisance dependence. In the canonical exponential family here, conditioning on removes because the factor involving is constant over the conditioning fibre.
Let and let the observed equal . For the cumulant-generating function of at fixed ,The saddlepoint solves , equivalently with . This is also the constrained likelihood equation, since . Assume an interior saddle, , and the usual smooth nonlattice conditions under which has a density. Exponential tilting to makes the tilted mean. A local normal approximation gives tilted density at that mean; undoing the tilt gives the saddlepoint density approximationThe factor is for the sample mean, rather than the sum. A transform-based derivation gives the same expression by expanding to second order at its stationary point.
The joint log-likelihood is . Subtracting cancels every appearance of the original , leavingAny change from the ambient density to a conditional density on contributes only a data-dependent Jacobian determinant. Thus, up to a constant independent of , the saddlepoint conditional likelihood adjustment isEquivalently up to the constant , where is the nuisance observed information. The adjustment has a positive sign. The printed exponential-family form alone does not guarantee a density for : for example a continuous can have . In a lattice case one must approximate the probability mass of the sum instead; the displayed density calculation uses the regular continuous interpretation.
Past exam of the mathematics course of the University of Cambridge 2005 iii Paper 42 2 Solution Created 2026-10-03 Updated 2026-10-14
A transformation model consists of a group acting measurably and invertibly on the sample space, an induced group action on the parameter space, and a family satisfying . In a generated, transitive model, every is the image of a reference distribution under some transformation. In the density formulation, the transformed density includes the appropriate sample-space Jacobian determinant; the model is a statement about whole probability laws, not merely about changing parameter names.
A maximal invariant has two properties: for every , and implies for some . It is therefore a coordinate for the group orbits, retaining exactly the information unaffected by the transformations. An equivariant estimator obeys , where the right action is the induced parameter action.
For the normalization construction, suppose the estimator determines a group element with . Define . ThenIf , rearranging gives . This is an actual transformation in , so the normalized sample is a maximal invariant. This group-valued assumption matters: an estimator of a parameter with a nontrivial stabilizer does not necessarily determine a unique normalization. For a transitive parameter space , choose a transformation carrying the estimated parameter to the reference value and take the resulting normalized sample modulo the remaining -action. Different choices then have the same residual orbit. Under a free action is trivial and the simpler formula applies.
For a location-scale model, , , with composition . Its parameter action is . Choose location and scale estimates satisfyingFor instance, on nonconstant samples take the sample mean and the positive square root of . The standardized vectoris invariant. Conversely, equality of these vectors gives for all , with and . Hence it is maximal, not just invariant. Degenerate constant samples have zero fitted scale and form a separate orbit; define a separate invariant value there. The construction is on labelled sample vectors: one must not discard their order unless permutations are also included in the transformation group.
Past exam of the mathematics course of the University of Cambridge 2005 iii Paper 42 4 i Solution Created 2026-10-03 Updated 2026-10-14
At the standard normal distribution, symmetry and the odd Huber score give population root zero. For , the derivative of the clipped score is except at its two corners, which have zero normal probability. Put and write for the standard normal density. The sandwich variance of an M-estimator has numeratorUsing and integration by parts,ThereforeAs checks, it tends to as , the sample mean limit, and to as , the sample median limiting variance. The estimator variance for a sample of size is approximately this quantity divided by .
Past exam of the mathematics course of the University of Cambridge 2005 iii Paper 42 6 vi Solution Created 2026-10-03 Updated 2026-10-14
Population influence functions describe infinitesimal contamination; finite-sample analogues examine actual changes to an empirical sample. For its empirical distribution , add an observation and define the sensitivity curveUnder suitable differentiability it approximates the influence function. A replacement version is , approximately . Their supremum magnitudes quantify finite one-observation sensitivity.
The empirical influence function instead substitutes directly in . For a differentiable M-estimator this gives . For quantile functionals, a discrete unsmoothed empirical law may not admit the required density derivative; a sensitivity curve or a smoothed empirical law is then preferable.
Global contamination is measured by finite-sample maximum bias , where counts replacements. Under the convention of the first fraction that causes unbounded bias,This is the finite-sample replacement breakdown point. The largest replacement fraction still guaranteed bounded is one grid step smaller, so the conventions must be specified. One replacement sends a sample mean arbitrarily far, giving , while the ordinary scalar sample median has first-breaking fraction with the usual midpoint convention for even samples. Its limiting value is . Local influence and global breakdown answer different questions; a bounded influence function is not by itself a proof of a high breakdown point.
Past exam of the mathematics course of the University of Cambridge 2005 iii Paper 46 2 Solution 2026-10-14
For the sample, put and use the sample covariance matrixOrder its eigenvalues decreasingly and choose unit orthogonal eigenvectors . The sample principal components are the score columnsTheir sample means are zero and their sample covariance is diagonal, since . The th sample variance is , and its explained variance of a principal component is . Using divisor instead changes the numerical variances by a common factor but leaves the component directions unchanged.
Standardizing means replacing a variable with positive sample variance by . This gives principal component analysis on a correlation matrix, using with . It removes arbitrary differences of measurement units and prevents a large-variance coordinate from dominating solely through its scale. It also changes the question being optimized: small-variance and possibly noisy coordinates receive equal marginal weight. Principal component analysis based on the covariance matrix can be more appropriate when the variables have common meaningful units and absolute variability matters. Standardization is therefore a substantive choice, not an automatic improvement. A zero-variance variable must first be removed. In the word-rating example the variables share the same numerical range, but their across-word dispersions can differ; standardization gives each attribute equal initial variance.
For the standardized eight-variable analysis, total variance is . The first three fractions of explained variance of a principal component are approximately 59.6%, 19.1% and 10.1%, respectively. The first two account for about 78.8%, and the first three for 88.9%. The first direction is dominant but one direction alone loses substantial variation. Retaining two principal components is a plausible descriptive summary: their eigenvalues exceed , whereas the third is below . That cutoff is a heuristic, and the third principal component may still have interpretable content.
The reported coefficient rows are not unit-length vectors. The printed rounded rows have squared lengths , and , consistent with their eigenvalues to the precision of the coefficient table. They are consistent with the scaled principal component loading convention . Such rows remain eigenvectors, but the score direction with unit length is , or more accurately the row divided by its actual Euclidean norm when using rounded entries. Under this convention is the correlation of standardized attribute with the variance-one score for component :This explains both their sizes and why they must not be treated as the unit vectors from parts (i) and (ii).
The first principal component has positive coefficients on every attribute, strongest on friendliness, goodness, niceness, bravery and strength. With the favorable endpoints coded in the positive direction, it describes a broad favorable or impressive evaluation, with a potency contribution. The second contrasts movement and speed, with some size and strength, against the first three evaluative attributes; it is chiefly an activity dimension. The third is dominated by size, with smaller positive strength and negative movement/speed coefficients, distinguishing size or potency from activity. These are interpretations of directions of variation, not evidence of causal latent traits. Reversing a principal component's overall sign changes neither its meaning as an axis nor its explained variance; endpoint coding fixes only how its positive side is described.
Past exam of the mathematics course of the University of Cambridge 2005 iii Paper 46 4 i Solution Created 2026-10-03 Updated 2026-10-14
Multivariate analysis of variance extends analysis of variance to vector responses. For example, a treatment may affect several correlated physiological measurements jointly. Separate univariate tests do not use the correlation geometry and require adjustment if they are interpreted as one multiple-testing procedure. A joint test asks whether group mean vectors differ in any direction.
In a one-way model, take independent , , , with a common positive-definite covariance. Put , and let and be group and overall sample means. The within-group and between-group scatter matrices areExpanding around each group mean makes the cross terms vanish, giving total scatter . To test , use the Wilks lambda statisticwhere solve the generalized eigenvalue problem and is nonsingular. Under the alternative, maximize the normal likelihood at the group means and covariance ; under the null, use the overall mean and covariance . Their likelihood ratio is , so small rejects equal means. Under the null, orthogonal projections of the Gaussian data give independent and , supplying its null calibration. Here is nonsingular almost surely when . Merely having more total observations than responses is not enough if group fitting consumes too many statistical degrees of freedom.
The test is invariant under a nonsingular linear change of response coordinates: both determinants acquire the same factor . The directions associated with large identify mean separation relative to residual variability. With one response it becomes the ordinary ANOVA F-test. With two groups, writing and , the version using Hotelling's T-squared statistic iswith . This formula demonstrates explicitly how the covariance weights a group difference.
The sketch shows hypothetical groups with strongly positively correlated responses and mean separation along their low-variance contrast. Marginal comparisons can look weak even when the joint comparison is informative. The ellipses represent individual-response covariance, not confidence regions for the means. Independence of observations, approximate multivariate normality and common covariance are substantive assumptions; outliers and unequal covariance can invalidate the usual calibration. Follow-up contrasts can identify the affected responses or groups, with appropriate multiplicity control. MANOVA uses shared covariance to test a multivariate mean difference, rather than testing unrelated coordinates in isolation.
Past exam of the mathematics course of the University of Cambridge 2006 iii Paper 41 2 Solution Created 2026-10-03 Updated 2026-10-14
A factor is a categorical predictor whose levels distinguish experimental conditions. Two factors have a statistical interaction when the effect of changing one depends on the other's level. For cell means , absence of an interaction means ; equivalently, is independent of .
Index thickness by , temperature by , wash by and replication by . The full factorial design has the normal linear modelThe errors are independent with a common positive variance. Sum-to-zero constraints in each factor index, or the displayed treatment coding, identify the mean coefficients. This full model allows an arbitrary mean in each of the sixteen cells.
The missing statistical degrees of freedom, in the output order, are . The first seven entries total fifteen; with the regression intercept there are sixteen mean coefficients among thirty-two observations, leaving sixteen residual statistical degrees of freedom. Balanced factorial orthogonality makes the term sums of squares in ANOVA independent of their ordering.
All terms involving wash have nonsignificant individual F-tests, and it is useful to test their removal jointly. The reduced model omits twelve mean coefficients. Its residual sum of squares is , compared with for the full model, so the nested-model F-test givesThere is no detected wash effect over the four tested durations. Removing its main effect and all its interaction terms respects the principle of marginality. Retaining the very large thickness-by-temperature interaction is essential: the thickness effect changes substantially with temperature.
With numeric indicators , treatment coding expresses the reduced fitted mean asThus the thin/low, thick/low, thin/high and thick/high fitted means are , respectively, at every wash level. Each is the sample mean of eight observations. The equal-cell replication variance formula therefore givesAlternatively, use the variance of a fitted regression mean with : . Individual coefficient standard errors cannot simply be added; their covariances enter the fitted-mean calculation.
Increasing temperature raises fitted lustre by for thin film and for thick film. Increasing thickness raises it by at low temperature and at high temperature. Their difference, , is the estimated interaction contrast; its standard error is , giving on twenty-eight statistical degrees of freedom. The interaction plot shows this strong departure from parallel mean lines, while the wash panel shows the much smaller variation across wash durations. Neither the nonsignificant wash test nor the plot proves that its true effect is exactly zero.
Past exam of the mathematics course of the University of Cambridge 2006 iii Paper 42 1 ii Solution Created 2026-10-03 Updated 2026-10-14
This is a symmetric beta distribution with parameters , so its mean and median are both . At the median its probability density function is , giving asymptotic variance for the sample median. Direct integration givesConsequently . The sample median has times the asymptotic variance of the sample mean, with asymptotic relative efficiency
Past exam of the mathematics course of the University of Cambridge 2006 iii Paper 42 1 i Solution Created 2026-10-03 Updated 2026-10-14
For the standard normal distribution, and , so the sample median has asymptotic variance under scaling by . The central limit theorem gives for the sample mean. Thus the sample median has times the asymptotic variance of the sample mean, and its asymptotic relative efficiency against the sample mean is
Past exam of the mathematics course of the University of Cambridge 2006 iii Paper 42 4 iv Solution Created 2026-10-03 Updated 2026-10-20
For independent observations in a natural exponential family, the log likelihood isIn a minimal exponential family the observed Fisher information matrix is positive definite, so the log likelihood is strictly concave. Any finite solution of the likelihood equation is therefore the unique global maximum likelihood estimator. Existence is a separate issue: the observed sufficient-statistic mean must belong to the image of the mean parameter map .
For a full regular minimal natural exponential family this image is the interior of the convex support of an exponential family, . The necessity follows from a supporting hyperplane argument. If a finite parameter had its mean on a boundary face, some nonzero would satisfy almost surely and . Equality of the expectation forces almost surely. Exponential tilting preserves the base-measure null sets, so this contradicts minimality.
For sufficiency, let be an interior point of . Choose finitely many points of the support whose convex hull contains a ball about , say of radius . Such points exist because is interior to the closed convex hull; one may approximate the vertices of a small simplex surrounding it by finite convex combinations of support points. Take support neighbourhoods of radius at most with positive finite base-measure masses . These masses can be taken finite by restricting to bounded neighbourhoods and using finiteness of the normalizing integral at any fixed interior parameter. For every vector , at least one has . Integrating over that neighbourhood yieldsThus the negative log likelihood grows to infinity as . At a finite boundary point of the full open natural parameter space, the normalizing integral is infinite, since otherwise that point would itself belong to the full domain. Fatou's lemma makes diverge on approach to such a boundary. A minimizing sequence for therefore stays in a bounded subset away from the boundary; it has an interior limit where the minimum is attained. Its gradient vanishes, giving the required likelihood equation. Strict convexity gives uniqueness.
Hence, under these full, regular and minimal conventions,This is maximum likelihood existence in a full regular natural exponential family. Regularity alone does not make every sample admissible: in a Bernoulli distribution an all-zero or all-one sample has its sample mean on the boundary of , and the canonical maximum is approached only as or . The usual probability parameter then has a boundary maximum in an enlarged model, but no finite canonical maximizer. A regular restriction of the natural parameter space requires membership in its actual mean-map image, rather than merely in . Without minimality, affine redundancies may prevent uniqueness of the canonical parameter even when the fitted probability distribution is unique.


