Log risk ratio Created 2026-10-07 Updated 2026-10-14
The logarithm of a risk ratio is zero at equal risks, negative when the first risk is smaller, and positive when it is larger. For independent binomial event counts from samples , its usual delta-method variance estimate is . This approximation requires nonzero counts; zero-event arms need another procedure. Log estimates are convenient for inverse-variance meta-analysis, and exponentiation returns to the risk-ratio scale.
Odds 2026-10-14
For an event of probability , its odds in favor are . They compare the probability of the event with that of its complement. Conversely . For example, probability gives odds , or one to three in favor. The same transformation applies to a conditional probability; an odds ratio compares these transformed probabilities in two groups, while a risk ratio compares the probabilities themselves.
Odds ratio Created 2026-09-24 Updated 2026-09-24
The odds ratio is the ratio of two event odds. For rare events it is close to the corresponding risk ratio, because when is small.
Past exam of the mathematics course of the University of Cambridge 2001 iii Paper 28 1 Solution Created 2026-10-03 Updated 2026-10-14
For a group with sample size , let be its overweight count. The natural sampling model is a binomial distribution, , with observed proportion . A grouped-binomial logistic regression specifiesFitting event/nonevent counts, or fitting the proportions with weights , gives the same binomial likelihood. The weights represent trial counts; unweighted regression of the proportions would give small and large groups the same influence. If printed percentages are rounded, exact original event counts are preferable to manufacturing fractional counts from .
Year should ordinarily be a factor with three levels unless a linear trend over time is specifically intended. Country, sex and age group are also possible factors. The actual subset, reference levels and formula are absent from this PDF. For a year-by-age interaction term, writeWith treatment contrasts, is the baseline logit, and are effects at the reference level of the interacting factor, and is an additional difference of log-odds differences. Exponentiating a main-effect contrast gives an odds ratio; exponentiating an interaction contrast gives a ratio of odds ratios. It is incorrect to interpret a main effect as a constant effect across the other factor when the interaction term is present.
A coefficient table should be read as estimate, standard error, a Wald estimate/error ratio and its reference-distribution probability. A whole multi-level interaction term is better tested by a nested likelihood-ratio test, using the decrease in deviance and the number of added independent coefficients. Null and residual deviances, residual degrees of freedom, convergence and fitted probabilities should all be checked. Large residual dispersion suggests lack of fit or dependence within sampled schools; a quasibinomial regression or an appropriate clustered analysis may then be preferable. Residual deviance is not automatically a valid chi-squared goodness-of-fit statistic for sparse groups or after estimating a free dispersion.
An interaction plot should display the group means or fitted probabilities against year, with separate lines for the interacting factor, and should also inspect the link scale. Nonparallel probability curves alone do not establish a logit interaction: even an additive logit model transforms nonlinearly to probabilities. As an independent descriptive illustration, the original study's Table 2 reports English boys' age-specific percentages. The following original plot shows their widening age differences after 1984 on both scales. It uses published descriptive values, not a reconstruction of the absent examination fit. The data are from pmc.ncbi.nlm.nih.gov/articles/PMC26603/ .
Published English boys' overweight prevalence by age and year, shown on probability and logit scales
. Details. For example, on the probability scale the 1984–1994 increase for the oldest group exceeds that for the youngest by percentage points using the rounded table values. On the logit scale the corresponding difference of differences isThis describes the interaction pattern, but its sampling uncertainty requires the group counts. The absent output prevents identifying the exam fit's coefficient estimates and significance tests.
There are two different uses of Poisson regression. A rare-event approximation models withThe fixed offset accounts for exposure, and exponentiated slopes are risk ratios, not odds ratios. The approximation is most appropriate when probabilities are small; it is not exact for appreciable prevalence because binomial variance is rather than .
An exact alternative stacks event and nonevent counts in each group and fits a log-linear model with a separate group intercept and event-by-predictor effects:Conditioning on their total gives the binomial event probability , whose logit is exactly . Profiling the group intercepts enforces the observed totals and reproduces the grouped-binomial logistic regression. This Poisson surrogate for a conditional multinomial model is exact and should not be confused with the rare-event approximation.
Past exam of the mathematics course of the University of Cambridge 2001 iii Paper 28 2 i Solution Created 2026-10-03 Updated 2026-10-14
The missing output is needed to identify the actual regression formula, response column, transformations and coefficient estimates. A useful possible analysis regresses the maintained-school percentage among acceptances on the corresponding percentage among applications, allowing for year; it must be described as a model of college-level composition, not a direct estimate of individual acceptance probabilities.
For instance, if and are these two percentages, a normal linear model might specify , with a slope-by-year interaction term if needed. The intercept is the expected response at zero predictor, often an extrapolation; the slope is a percentage-point change in acceptance composition per percentage-point change in application composition. A slope of one is not by itself evidence of equal acceptance chances: equal chances within every college would give the entire relation , including zero intercept and no year shift. A fit with positive slope mainly confirms that applicant composition helps predict acceptance composition.
Regression diagnostics should include residuals versus fitted values and predictors, a residual normal Q-Q plot, checks of heteroscedasticity, regression leverage, studentized residuals and Cook's distance. The aggregate mature-college category merits an influence check and a sensitivity analysis: combining several colleges can conceal different within-college patterns. Repeated observations from the same college across years may have correlated errors, so treating them as independent needs justification. Check nonlinearity, the year interaction and the effects of excluding no observation except with a substantive reason.
Percentages are bounded, and their precision depends on their denominators. A simple weighted least squares or binomial analysis requires the underlying numbers accepted, not merely percentages. For a proportion based on people, the working variance is under independent sampling, rather than constant across colleges. If the predictor percentage is itself estimated, an ordinary regression also ignores its uncertainty. The supplied summaries cannot recover all four cells of each college contingency table or the actual fitted numerical output.
The published Cambridge percentage table nevertheless allows a descriptive comparison of acceptance rates. Write for the maintained-school proportion among applicants and for its proportion among acceptances. The relative risk from group compositions givesThe overall acceptance probability cancels by Bayes' theorem. This risk ratio compares acceptance probabilities; it is not the acceptance odds ratio, which also needs the overall acceptance probability.
For Christ's, the two published application/acceptance pairs give risk ratios and . If the displayed percentages were rounded to the nearest whole percentage point, the relative risk bounds from rounded group compositions give ranges approximately and . Thus both comparisons remain below one under that rounding assumption. These are descriptive comparisons of observed groups, without adjustment for applicant qualifications or a causal effect interpretation. The published compositions determine approximate relative acceptance rates, but not their standard errors or the original regression results.
Past exam of the mathematics course of the University of Cambridge 2010 iii Paper 34 1 a Solution Created 2026-10-03 Updated 2026-10-14
The odds ratio compares event odds, not event probabilities. Let group 1 denote the elective group and group 0 the reference group. Their fitted event probabilities are and . ThusThe risk ratio is similarly about . The unadjusted observations show a lower adverse-event frequency in the elective group, rather than an increase. This is an association, not evidence that choosing the procedure prevents adverse outcomes. The direction is opposite to the reported adjusted odds ratio above one; the two analyses compare different populations or different conditional risks.
Past exam of the mathematics course of the University of Cambridge 2010 iii Paper 34 2 c Solution Created 2026-10-03 Updated 2026-10-14
Expected death counts are the number of users multiplied by the death risk per user, with matching time windows and definitions. Relative to the MDMA benchmark, the proposed use prevalence contributes a multiplier of and the per-user fatality risk contributes a multiplier of . HenceThis assumes comparable user exposure durations and recording of single-drug deaths. Population death counts alone would not identify a per-user risk ratio without the prevalence denominator.
Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 32 1 a Solution Created 2026-10-03 Updated 2026-10-07
For independent binomial distributions in the two trial arms, the estimate of the log risk ratio isThe delta method gives ; replacing by the sample proportion gives , where is the event count. Adding the independent arm contributions therefore givesThe standard error is . Using the stipulated normal quantile two, the approximate confidence interval isThe point estimate of the risk ratio is , corresponding to approximately 79% lower mortality risk in the transfusion arm. Exponentiating the endpoints gives an approximate 95% confidence interval for the risk ratio of . It includes one, so the trial is compatible with no difference as well as substantial benefit or some harm. The point estimate favours transfusion, but the data are too imprecise to establish a difference at the 5% level. These are large-sample approximations, especially rough with only one event in an arm. A frequentist confidence interval describes repeated-sampling coverage, not a 95% posterior probability for this fixed parameter.
Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 32 1 b Solution Created 2026-10-03 Updated 2026-10-07
Let be each trial's estimated log risk ratio, with estimated sampling variance . A fixed-effect meta-analysis models the independent estimates as , with one common true log risk ratio . Differentiating the Gaussian log-likelihood, or minimizing , gives inverse-variance weights andThe variance follows directly by adding independent variances of the weighted estimates: .
Using the printed rounded estimates and standard errors, , soThe pooled risk ratio is about . An interval using the same quantile two is on the log scale, so it includes no effect. Recomputing all trial estimates from the event counts would change the last digits because the printed log estimates and errors are rounded.
The key assumptions are independent trials, a common true treatment effect on this chosen log scale, approximately unbiased and approximately normal trial estimates, and suitable sampling-variance estimates. The common-effect assumption is stronger than merely studying the same named treatment: systematic population, treatment or design differences may produce genuine heterogeneity. For an unbiased interpretation of the pooled evidence, inclusion of studies must also not depend selectively on their results. Treating the plug-in variances as fixed is the usual approximation in the displayed variance formula.
Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 32 1 c Solution Created 2026-10-03 Updated 2026-10-07
Publication bias occurs when the availability or publication of a study depends on its results, for example their direction or statistical significance. The published studies then need not represent all studies meeting the review's eligibility criteria. This is different from unbiased studies simply having large sampling errors.
If mortality reductions favouring transfusion are more likely to be published than null or unfavourable findings, the observed log risk ratios will tend to be too negative and the pooled risk ratio too small. The apparent benefit will then be exaggerated. An ordinary meta-analysis interval ignores uncertainty about the missing evidence and may have poor coverage even if its sampling-variance calculation is correct for the studies included. The direction of bias depends on which results are preferentially made available; publication bias does not invariably favour a particular treatment.
Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 32 7 Solution 2026-10-07
Begin by defining the scientific target: prediction for a new patient, or estimation of adjusted covariate effects. Check event definitions, follow-up origins, right-censoring codes and any delayed entry. The analysis assumes independent patients and censoring that is noninformative conditional on modeled covariates. For fixed explanatory variables , the Cox proportional-hazards model iswith an unrestricted baseline hazard and coefficients constant over time. Report as the conditional hazard ratio for a one-unit change in the coded variable, not as a risk ratio or automatically a causal effect.
For untied event times, fit the coefficients by maximizing the Cox partial likelihoodThe baseline cancels within each event risk set. Use an appropriate tied-event method, such as an Efron approximation or an exact method for a genuinely discrete event scale; the Breslow approximation for tied event times is another explicit approximation. Numerical score/information methods fit the model, and inverse information gives conventional covariance estimates for independent subjects. Report coefficient estimates, hazard ratios, uncertainty and the coding that makes their interpretation meaningful. After fitting, the Breslow estimator gives , from which provides predicted survival.
Adequacy is broader than significance of coefficients. Inspect influential observations, deviance residuals and data errors. Cox–Snell residuals should have approximately unit-exponential survival under a well-fitting model, retaining the original censoring indicators; a cumulative-hazard plot of these residuals should be near the 45-degree line. This is an overall diagnostic, not a substitute for the functional-form and proportionality checks below. For prediction, assess held-out discrimination and survival prediction calibration at prespecified time horizons with methods accounting for censoring. A high concordance index alone does not establish good calibration or correct hazard structure.
Use bootstrap or held-out cross-validation that repeats the complete modeling procedure, including imputation, variable selection and tuning. Validation of only the final fitted coefficients understates overfitting from earlier decisions. Report any substantive lack of fit rather than presenting a single time-independent hazard ratio when the data do not support that representation.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 206 4 c Solution Created 2026-10-03 Updated 2026-10-06
This is a sequential analysis of deviance for nested generalized linear models. Adding age to the intercept-only logistic regression reduces deviance by , with approximate p-value . Adding frailty to the age model reduces it by another , with p-value . Thus both variables have evidence of association with surgical success, under the model assumptions, and neither should be dropped solely on these results.
The second test assesses frailty adjusted for age, whereas the first assesses age before frailty is included. Sequential tests depend on term order. Evidence for age adjusted for frailty is additionally provided by its full-model Wald test, . Both fitted coefficients are negative: age and frailty are associated with lower fitted success probabilities. On the odds scale, one extra year at fixed frailty multiplies the odds by , and frailty at fixed age multiplies them by . These are odds ratios, not risk ratios, and an observational statistical association does not by itself establish a causal effect.
Past exam of the mathematics course of the University of Cambridge 2021 ii Paper 1 13J b i Solution Created 2026-09-24 Updated 2026-09-25
Because the second model is saturated, its fitted worsening probabilities are the observed proportions:Thus the drug efficacy as a risk reduction isandThese are reasonably similar to the published estimates of and .
The interaction coefficients provide the same quick comparison on the odds scale:They are treatment-versus-control odds ratio. Since worsening is rare in every group, each odds ratio is close to its risk ratio, giving the approximate efficacies and .
Relative risk from group compositions 2026-10-14
Let be the event of membership in the first of two groups and the event of selection. Write , and , with . Bayes' theorem gives the conditional probabilities and . Their risk ratio is the displayed expression: the unknown overall selection probability cancels. Equivalently, it is the ratio of the group-membership odds after selection to those before selection.
When both selection probabilities lie strictly between zero and one, the selection odds ratio is and generally depends on . Thus compositions alone do not identify that odds ratio or provide sample sizes for a standard error. When , the first group's observed selection rate is lower; this comparison alone does not establish a causal effect of group membership.
Sample proportion 2026-10-07
For independent Bernoulli observations with success probability , the sample proportion is the success count divided by the sample size. It is an unbiased estimator with variance . It supplies the arm-specific risks in a risk ratio and the mean difference in a two-proportion comparison.
