Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 207 2 a ii Solution Created 2026-10-03 Updated 2026-10-05
Under the intended additional assumption of mutually independent, continuously calibrated null p-values, each test fails to reject with probability . The familywise error rate is thereforeThere is a qualification to the printed use of “not correlated”: zero pairwise correlation coefficients do not generally imply mutual independence. A multivariate normal distribution with zero off-diagonal covariances does give independence, but an arbitrary biomarker distribution need not. The formula above requires independent rejection events, not just uncorrelated measurements.
The usual intuition for positively dependent tests is that they reject together, reducing the effective number of opportunities for a false positive. A rigorous sufficient assumption is positive association of random variables for the rejection indicators . Products of their non-rejection indicators are decreasing functions; association and induction giveThus under this stronger positive-dependence assumption the probability is no larger, and perfect dependence gives instead of . Strict inequality is not forced by every form of positive dependence.
Pairwise positive correlation coefficients alone, as printed, is insufficient. For a counterexample choose a vector of ten exchangeable random variables that are rejection indicators as follows: with probabilities , respectively, reject none, reject one uniformly selected test, or reject all ten. Thenbut the familywise error rate is . This can be realized with valid null p-values: conditional on the indicators, independently draw uniformly on if and on otherwise. Every is uniform on , and . Taking biomarker statistics gives pairwise positively correlated null statistics with exactly these one-sided tests. Therefore the unconditional larger-or-smaller claim needs a specified dependence model.
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 207 2 a i Solution Created 2026-10-03 Updated 2026-10-05
A Type I error is rejecting a true null hypothesis. Here it means declaring a statistical association between the biomarker and bowel cancer when, in the population and under the association model being tested, there is no statistical association. It is a false positive association finding, not merely a large estimation error. A test with level limits this probability to under the null hypothesis, subject to valid calibration; the p-value is not the probability that the null hypothesis is true.
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 207 3 c iii Solution Created 2026-10-03 Updated 2026-10-05
Use one joint hypothesis test for . Fit the unrestricted model with statistical parameters , where and for treatment indicator . Refit under , estimating the two common baseline intensities; do not fix them at their unrestricted estimates. The likelihood-ratio test statistic isUnder regular identifiable positive-rate models, sufficient independent patient trajectories, and the null hypothesis, Wilks theorem gives two degrees of freedom because two coefficients are constrained. Reject if exceeds the chosen upper chi-squared distribution quantile. Alternatively a two-dimensional Wald test uses , including the off-diagonal covariance. Two separate tests do not provide this single calibrated assessment. The point estimates alone cannot produce a numerical p-value without fitted likelihoods or a coefficient covariance matrix.
Past exam of the mathematics course of the University of Cambridge 2017 ii Paper 1 5J i Solution Created 2026-09-24 Updated 2026-10-05
The comparison is a nested-model F-test of the three time-by-diet interaction coefficients, with null hypothesis that all are zero. The reduced linear regression model has a common time slope and four diet-specific intercepts; the full model permits four slopes. It has eight fitted coefficients and residual degrees of freedom.The rounded sums of squares give the displayed approximation; the software reports using unrounded values. The quoted p-value gives overwhelming evidence against equal log-weight growth slopes across diets under the normal linear model assumptions. Thus reject the common-slope hypothesis. Because repeated measurements on the same chicken may be correlated, the exact reference distribution requires independent, homoscedastic Gaussian errors; the displayed ordinary regression output by itself does not establish that assumption.
Past exam of the mathematics course of the University of Cambridge 2018 ib Paper 3 20H Solution Created 2026-09-24 Updated 2026-10-03
Under the null hypothesis that treatment and recovery are independent, estimate each expected cell count byand form the Pearson chi-squared test of independence statistic . For a table its asymptotic null law is a chi-squared distribution with one degree of freedom. A second-order Taylor expansion of the generalized likelihood-ratio test statistic around the fitted counts gives this Pearson statistic, which explains its asymptotic null distribution.
Writing the four residuals over their fitted counts and simplifying givesFor ,whose one-degree-of-freedom p-value is about . There is no evidence of an effect. One fitted count is only , however, so the chi-squared approximation is questionable; Fisher's exact test would be preferable.
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 205 1 Solution Created 2026-10-03 Updated 2026-10-05
Estimate the signal by one-dimensional total variation denoising, which penalizes adjacent differences rather than the constant level:This is a fused Lasso objective. Its L1 norm penalty makes many adjacent differences exactly zero, producing a piecewise-constant fit. For change-point detection, estimate the locations by . The tuning parameter controls the strength of the penalty; it can be chosen, for example, using a validation criterion appropriate to the noise model.
For a general family of elementary nulls , the closed testing procedure forms every nonempty intersection and gives it a local test of level . Reject precisely when all intersections with are locally rejected. This gives strong control of the familywise error rate: let be the indices of the true elementary nulls. If is empty there is no false rejection. Otherwise, rejecting any with requires rejection of the true intersection . Its local test has rejection probability at most , henceThis proof of closed-testing control of the familywise error rate needs no independence of the tests.
For the interval procedure, a true tested interval is contained in one maximal constant block . If , the intervals over which takes its maximum are a subset of those used for , so . Therefore rejection of a true forces rejection of its containing block. Conversely, a rejected block is itself a rejected true null.
There is a small indexing issue in the PDF: its testing family excludes singleton intervals, while may contain singleton blocks. Put . Every true tested interval lies in one of these blocks, so the exact statement, using only hypotheses defined in the paper, isSingleton blocks contain no eligible tested interval and can be ignored. Equivalently, one may define their nulls as never rejected.
For each , the term occurs in the maximum defining , giving . A valid p-value is a super-uniform random variable under its null, so for ,The union bound and disjointness of the constant blocks now giveThis establishes weighted interval testing for a piecewise-constant mean even when the interval p-values are dependent. Values do not affect rejection at levels at most one.
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 218 1 d Solution Created 2026-10-03 Updated 2026-10-05
There are two defects. The mixed fit supplies a restricted maximum likelihood, whereas the ordinary fit supplies an ordinary log-likelihood, so their difference is not a likelihood-ratio test statistic. Also, lies on the boundary of ; the usual Wilks theorem does not give a null law.
A valid approach first refits the mixed model by ordinary maximum likelihood estimation, setting REML to false, and fits the same fixed effects under . For , maximizeover , and separately over with . Set .
For finite-sample calibration, use the location-scale invariant simulation test for a Gaussian variance component. With the actual fixed, simulate independent vectors , refit both models by ordinary maximum likelihood estimation to each, and calculate in exactly the same way. Under , . Translating by a vector in the column space of and multiplying by a positive scalar preserves the statistic: both maximized log-likelihoods acquire the same scale constant. Thus this simulation has the correct null law without knowing or . A conservative Monte Carlo p-value isIn the usual regular limit with increasing independent groups, a variance-component likelihood-ratio test at a boundary instead uses : for , its approximate tail probability is , and at the nonrandomized p-value is one. This approximation is not an exact guarantee for sixteen rats. Alternatively one can compare consistently defined restricted likelihoods with the same and simulate their restricted-ratio null distribution, as in the RLRsim documentation.
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 205 1 Solution 2026-10-03
A procedure controls the familywise error rate at level when, for every configuration of true nulls ,Let . The step-down procedure can reject any true null only if it reaches and rejects , which requires . Since a valid p-value under its null satisfies , the procedure controls FWER without any assumption on dependence among the p-values.
A distribution has the global Markov property for a directed acyclic graph when every D-separation statement implies the corresponding conditional independence under .
If has nonadjacent vertices , choose a topological ordering. Suppose precedes . Then is a non-descendant and non-parent of , so the directed local Markov property givesThe reversed ordering case is analogous. HenceUse the intersection-union test: reject exactly when for every . Under , at least one is true, soThis is nontrivial because it rejects whenever every tested conditional independence is rejected.
Past exam of the mathematics course of the University of Cambridge 2019 ii Paper 1 13J c Solution Created 2026-09-24 Updated 2026-09-29
The null hypothesis is that price and score are independent, equivalently that the independence log-linear model for a two-way contingency table is correct. Against the saturated alternative, the reported Poisson deviance is the likelihood-ratio test statisticUnder the null and the usual large-sample regularity assumptions, Wilks theorem givesThe observations must be independent, the cell probabilities must not lie on the boundary of the parameter space, and the expected counts must be large enough for the chi-squared asymptotic approximation. The fitted counts are either or , so the customary expected-count check is comfortably satisfied. Since(equivalently, the p-value is about ), we do not reject the null at the significance level. The data provide no significant lack of fit for independence.
Past exam of the mathematics course of the University of Cambridge 2019 ii Paper 2 5J a Solution Created 2026-09-24 Updated 2026-10-07
For participants with the same recorded history, the first linear regression estimates that one additional average mile cycled per week is associated with fewer asthma episodes. The corresponding -value is , giving evidence against a zero conditional association.
The second model estimates that, among participants with the same history, receiving the incentive is associated with more episodes. The third estimates that receiving the incentive is associated with more miles cycled per week. Both incentive coefficients have very small p-values. Because the incentive was assigned in a randomized controlled trial, these last two comparisons estimate a causal effect of the incentive.
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 205 2 Solution Created 2026-09-28 Updated 2026-10-03
The familywise error rate isThe Bonferroni correction rejects when . Since a valid p-value is super-uniform under its null, the union bound givesNo independence assumption is needed.
For the closed testing procedure, form the intersection hypothesis for every nonempty and choose a level- local test for each . Reject exactly when every with is rejected by its local test. If any true is rejected, then the intersection of all true nulls is rejected. Since its local test has significance level ,This is the closed-testing control of the familywise error rate.
Procedure (B) is the Weighted Holm step-down procedure. Let be the first rank in the ordering whose hypothesis is a true null, and put . If any true null is rejected, the procedure reaches step andbecause every true null remains among ranks . Henceand another union bound gives FWER at most .
At step , procedure (B) divides by the total weight still under consideration, which is no larger than . Its critical values therefore increase as hypotheses are rejected. Moreover, if procedure (A) would reject a hypothesis, every earlier ordered also passes the initial threshold, so procedure (B) reaches and rejects it. Thus (B) contains every rejection of (A) and can make strictly more rejections while retaining the same strong FWER control.
Past exam of the mathematics course of the University of Cambridge 2023 ii Paper 4 13J iv Solution Created 2026-09-24 Updated 2026-09-25
Under , the slope in this through-origin linear regression is . Its observed Wald statistic isThe corresponding two-sided p-value is about , so the fit does not give evidence against at the significance level.
The usual least-squares standard error assumes constant conditional variance. Goal counts are counts, and under the natural Poisson distribution model their variance equals their mean , so observations with different expected goals are heteroscedastic. The reported homoscedastic standard error is therefore doubtful; a heteroscedasticity-robust calculation or a suitable count model would be more credible.
Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 205 4 c Solution Created 2026-09-24 Updated 2026-09-25
If , then for every at least one of and is true. Sincevalidity of the p-value for whichever component null is true implies . Therefore the union bound givesThis is the Bonferroni correction for the composite intersection alternatives.
Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 205 4 d Solution Created 2026-09-24 Updated 2026-10-03
Let and . Each with is a valid p-value by the argument in part c. If the Holm step-down procedure selects any index from , let be the rank of the first such index. All earlier selections belong to , soSelection through rank impliesConsequentlyThus the procedure controls the familywise error rate without requiring independence among the p-values.
Past exam of the mathematics course of the University of Cambridge 2025 iii Paper 205 4 a Solution Created 2026-09-24 Updated 2026-09-25
A p-value for is super-uniform under that null: for every . For the Benjamini-Hochberg procedure, order , setwith if the set is empty, and reject the hypotheses whose p-values are at most .
Significance level Created 2026-09-24 Updated 2026-10-03
The significance level is the chosen upper bound on a test's probability of rejecting the null hypothesis when it is true.
Simes inequality 2026-10-05
For independent valid null p-values, the displayed inequality follows by applying the Benjamini-Hochberg procedure with all nulls true. Its false discovery rate then equals the probability of at least one rejection. Valid means for ; independence is a sufficient hypothesis, and arbitrary dependence is not covered by this proof.
Simes test 2026-10-05
For the intersection of null hypotheses, reject when . The Simes inequality establishes a level- test under independence of valid true-null p-values. The displayed quantity is its combined p-value.