Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 206 1 e Solution Created 2026-10-03 Updated 2026-10-06
The fitted formula and coefficient table describe a random-slope linear mixed model:with random effects independent of the errors. There is a common fixed intercept, a population slope , and a laboratory random slope deviation . In
tumour1, the three laboratory slopes are unrelated unknown fixed coefficients. Here they are modelled as draws from a common normal distribution; estimated laboratory deviations are shrunk toward zero. After integrating out , observations in laboratory have covariance , so they are marginally dependent even when their conditional errors are independent.The displayed command contains a source inconsistency:
size ~ 1 + (0 + days | lab) would impose zero population slope and could not produce the displayed fixed days coefficient. The output corresponds to size ~ days + (0 + days | lab). Its estimates are , and . The estimated daily increase averaged over the laboratory population isbecause .A random slope is appropriate if these laboratories can reasonably be viewed as exchangeable representatives of a larger population and the goal includes population inference or predictions for other laboratories. If these particular three laboratories are the whole set of interest, or have systematic differences incompatible with exchangeability, laboratory-specific fixed slopes are preferable. Only three groups give weak information about between-laboratory variance; the mixed model does not itself resolve possible nonlinear growth. Its population mean is distinct from a realized finite-group average .
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 206 1 f Solution 2026-10-06
Retain the random-slope linear mixed model of part (e), but replace the within-laboratory independent error covariance by continuous-time autoregressive residual correlation:Errors from different laboratories remain independent and are independent of the random slopes. The resulting marginal covariance within laboratory isThe exponential decay applies to the conditional errors, not the entire marginal correlation, which also contains the shared random slope.
Use Here
nlme, since lme4::lmer does not fit this general residual correlation structure. With a data frame containing the observed variables, suitable code islibrary(nlme)
dat <- data.frame(size = size, days = days, lab = lab)
dat <- dat[order(dat$lab, dat$days), ]
tumour_cor <- lme(size ~ days,
random = ~ 0 + days | lab,
correlation = corCAR1(form = ~ days | lab),
data = dat, method = "REML")corCAR1 estimates , the error correlation one day apart; correlation at separation is . This works for noninteger or unequally spaced days. At equally spaced integer days, corAR1(form = ~ days | lab) gives the corresponding discrete-time construction when its parameter is positive. Distinct times within each error series are required: separate tumours with repeated day values should have separate series identifiers or an additional independent-error component, rather than being assigned perfectly correlated errors. The continuous-time autoregressive residual correlation documentation describes the grouping and continuous-time conventions: stat.ethz.ch/R-manual/R-patched/library/nlme/html/corCAR1.html. The fixed days term here follows the fitted output rather than the inconsistent command in part (e). Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 206 2 b Solution Created 2026-10-03 Updated 2026-10-06
The fitted values are , so the hat matrix isIt is symmetric, andIt fixes every vector in the column space of , and annihilates its orthogonal complement. Thus is the orthogonal projection onto that column space, has matrix rank and trace , and is the complementary orthogonal projection. ConsequentlySince , the covariance matrix between the regression residual vector and the coefficient estimate isThese quantities have a joint normal distribution, so they are also independent, a stronger conclusion than zero covariance.
Now has mean zero. Using the expectation of a quadratic form,Thus the maximum-likelihood estimator hasThe unbiased alternative isThe orthogonal projection of a Gaussian vector also yields , explaining the residual degrees of freedom.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 207 1 b i Solution Created 2026-10-03 Updated 2026-10-06
The three independent sample means satisfy . A linear transformation of their joint multivariate normal distribution is again normal. The two treatment contrasts have covarianceWriting and , their joint distribution isThe positive correlation coefficient arises from the shared control arm. Under positive variances, .
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 208 1 1 6 Solution Created 2026-10-03 Updated 2026-10-06
Use the original-noise coefficients and for . The autocovariance function of a causal linear process is , since the original noise has variance . ThusFor ,By covariance symmetry,In particular, all nonzero-lag covariances are negative, despite the positive autoregressive coefficient.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 208 1 1 7 Solution Created 2026-10-03 Updated 2026-10-06
The printed strong white noise assumption does not imply a normal distribution or even a finite fourth moment. Thus it does not, by itself, determine the covariance of a quadratic transform. We give the intended Gaussian calculation, and then the general finite-fourth-moment answer.
If is Gaussian, is a centered Gaussian process. Put and . Since and , the centered transform isThe supplied Hermite polynomial identity makes the cross terms vanish and givesEquivalently,The constant has no effect on covariance.
For a general iid noise with , put and , its fourth cumulant. Independence and expansion of third and fourth moments give, for ,whereSumming the geometric series explicitly givesThe covariance of quadratic transforms of a linear process follows from a fourth-moment expansion consisting of the three Isserlis theorem pairings, plus the fourth-cumulant contribution when all four noise indices coincide. The third-moment contribution similarly requires three coincident indices. This proves the general formula without assuming a normal distribution. For Gaussian white noise , recovering the simpler answer. If and the noise has infinite fourth moment, need not have finite variance, so an autocovariance function may not exist.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 208 2 2 3 Solution Created 2026-10-03 Updated 2026-10-06
First, the absolute values in the printed limit are an error: the correct long-run variance of a stationary process is the signed sum of autocovariances. Directly,soEach coefficient tends to and has absolute value at most . Absolute summability and the dominated convergence theorem therefore giveThe sum of absolute values is an upper bound, not the general limit. For a concrete counterexample to the printed assertion, take with unit-variance iid noise. Then , , and other covariances vanish. The absolute sum is , but , so .
For correlated data the central limit theorem can still hold under suitable strong mixing of a stationary process and moment conditions, but the limiting variance is the long-run variance of a stationary process, rather than the one-observation variance. When it is positive,Positive serial dependence usually increases the standard error, while negative dependence can reduce it. The approximate effective sample size of a stationary sample is when that denominator is positive. A long-memory time series can require a different normalization or a different limit law. Absolute covariance summability alone does not prove a CLT: if with a common independent random scale taking values and with equal probabilities and iid with the standard normal distribution, the off-diagonal covariances are zero, yet has the nonnormal scale-mixture law . The example is not an ergodic stationary process. If the long-run variance of a stationary process is zero, the usual nondegenerate square-root- CLT is unavailable.
For the causal AR(1), andThe conditional distribution follows because the current innovation is independent of the past.
For a fixed known , condition on the observed and use the transitions . Their conditional maximum likelihood criterion is, up to constants,Differentiating in yieldsSince ,Thus it is an unbiased estimator, even conditionally on , andIt has statistical consistency with mean-square convergence, and the iid-noise strong law of large numbers also gives almost-sure statistical consistency. Its conditional distribution is exactly normal with the displayed mean and variance. If is also observed and all transitions are used, replace by .
The fixed- qualification is necessary for the exact finite-sample claims. If is jointly estimated, conditional likelihood function is linear regression with an intercept: writing and , the unconstrained estimators areThis ratio is not generally an unbiased estimator and does not have the preceding finite-sample variance. Under the usual stationary regression conditions it has statistical consistency; its asymptotic variance is . Indeed, it differs from by , an asymptotically negligible endpoint term. Profiling an unknown innovation variance does not change the fixed- estimate of .
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 208 2 2 Solution Created 2026-10-03 Updated 2026-10-06
With angular frequency , the periodogram isAt Fourier frequencies it is the squared modulus of the normalized discrete Fourier transform. If a nonzero mean is unknown, subtract the sample mean first.
For a zero-mean stationary process, expanding the square givesUnder absolute summability of the covariances this converges to the spectral density of a stationary process. Thus the periodogram is generally biased at finite , but asymptotically unbiased under this short-memory time series condition.
It is nevertheless not a pointwise estimator with statistical consistency unless it is smoothed. For Gaussian white noise, at a nonzero Fourier frequency other than the Nyquist frequency, the real and imaginary Fourier components are independent normal variables. Exactly,where . The variance does not decrease with . Under usual short-memory time series assumptions the same exponential limit is asymptotic for general processes. Averaging nearby frequencies or using a lag-window estimator reduces variance; a frequency bandwidth tending to zero while times that bandwidth tends to infinity can give statistical consistency. The raw plot remains useful for detecting strong periodic peaks, but increasing the record length alone does not remove its pointwise noise.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 208 3 2 Solution Created 2026-10-03 Updated 2026-10-06
A nonstationary process has a statistical law that changes with the time origin. In the weak sense, this includes a time-dependent mean or variance, or a covariance that depends on the two times separately rather than only on their lag. A strictly stationary process requires invariance of every finite-dimensional distribution under a common time shift.
In the preceding plots, series suggests a stochastic trend or changing level, and series suggests a deterministic seasonal mean. These are the intended nonstationary examples. A plot alone cannot prove either conclusion: in particular, a stationary random-phase sinusoid can have a seasonal-looking trace and an oscillatory ACF. The interpretation of series as nonstationary concerns a seasonal mean tied to calendar time.
Three standard responses are to remove a fitted deterministic trend or seasonal mean; to use regular or seasonal differencing for an appropriate trend or seasonal component; and to stabilize a changing variance by a transformation or explicit seasonal scale model. For example, logarithms or a Box–Cox transformation can address level-dependent variance. The operation should match the source of nonstationarity; differencing a varying variance does not generally make it stationary.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 208 3 3 4 Solution Created 2026-10-03 Updated 2026-10-06
Use the usual normalization that is mean-zero unit-variance white noise orthogonal to the past, and extend periodically in . A nondegenerate causal periodic autoregressive model of order one requires . Write , with season indices understood modulo .
For , multiply the recursion by and use orthogonality of the current innovation to the past. The periodic Yule-Walker equations areAt lag zero, expansion of the squared recursion givesIn particular, , so an equivalent variance equation is . Negative lags are obtained from the given symmetry .
Replacing covariances by their sample versions givesTake the nonnegative scale and require a positive estimated predecessor variance. Using matched seasonal sample covariance matrices makes the quantity under the square root nonnegative by Cauchy-Schwarz inequality; with unmatched covariance estimates one can instead fit seasonal ordinary least squares and use the nonnegative residual variance. Statistical consistency of the covariance estimates gives statistical consistency of these plug-in estimators. If the driving noise variance were not normalized to , the equations would identify , not the two scales separately.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 208 3 3 Solution Created 2026-10-03 Updated 2026-10-06
Put and assume . ThenThus generally has a periodic mean, and generally has a periodic variance. The edge cases allowed by matter: is stationary when , because the mean is then constant, and is stationary for or . In the latter case multiplying iid centered Gaussian white noise by leaves its iid distribution unchanged. For every , but , so is nonstationary. For , is nonstationary because is not constant.
Use the seasonal difference operator . Since ,This is a stationary moving-average model of iid Gaussian white noise. Its covariance is at lag , at lags , and zero otherwise.
For the variance-modulated process the same operation givesIts variance is and its covariance at lag is . Therefore it remains nonstationary for , and the operation doubles the marginal variance at nonzero seasons. Seasonal differencing does not remove periodic variance: it removes a periodic mean, but the periodic variance generally remains. Practical alternatives are a periodic model or seasonal variance standardization; at seasons with the observations are deterministically zero, so division by is not possible there. For the already stationary special cases , filtering preserves stationarity.
A periodically correlated process with period has its mean and two-time covariance unchanged when both times are shifted by . For , the mean is zero andHence is a periodically correlated process. Its covariance period can be smaller than : when is even, , so is already a covariance period.