Continuation-ratio logits 2026-10-14
For ordered response categories, model each displayed conditional probability by a grouped-binomial logistic regression. The multinomial likelihood factors exactly into successive conditional binomial likelihoods, using the remaining category total as each stage's denominator. This is a different regression parameterization from baseline-category logits or cumulative odds. Separate cumulative binary indicators from the same person are dependent and cannot be treated as independent likelihood contributions.
Assume a constant annual force of infection across ages and calendar years. For independent sampled people with ages and binary results , fitApplying the complementary log-log link givesTherefore fit a binomial regression with the complementary log-log link, an intercept, and as an offset with coefficient fixed at one. Age is measured in years. An ordinary freely fitted coefficient of age, or even a freely fitted coefficient of , would describe a different exposure model. The annual force of infection estimate isAn infection-naive person's one-year infection probability is , which is approximately only when that rate is small.
The log-likelihood being maximized is, apart from constants,A confidence interval for can be exponentiated to give a positive interval for . For groups of people at a common age , use with the same offset. If an age band is broad, use individual ages or average over the band's age distribution instead of treating its midpoint as exact. No numerical estimate is possible without the survey observations.
The biological interpretation assumes that immunoglobulin G positivity records previous infection, persists over the relevant ages, and is not substantially produced by maternal antibodies or vaccination. These are conditions to check, rather than conclusions from the fitted curve. Use known-positive and known-negative serum controls to assess the assay threshold, and validate specificity against relevant other infections. Cross-reactive antibodies to other flaviviruses can produce positive dengue virus serology, so a positive result need not be a marker specific to dengue virus exposure.[ref]
Serologic Tests for Dengue Virus by the Centers for Disease Control and Prevention. IgG Tests: persistence after previous exposure and cross-reactivity with other flaviviruses
If independently established assay diagnostic sensitivity and diagnostic specificity are and , the observed positive probability isUse that observation model in the binomial likelihood; it is generally no longer the simple intercept-plus-offset complementary log-log link fit. With only the stated survey, one cannot freely estimate , , antibody loss and an arbitrary infection history simultaneously. A single binary result also does not identify how many subsequent infections a person has experienced.
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 5 iv Solution Created 2026-10-03 Updated 2026-10-14
A direct grouped-binomial logistic regression can dichotomize satisfaction, for example high versus low-or-medium. In each covariate stratum use the high count as successes and the sum of the other counts as failures, with total . This models and is appropriate if that binary contrast is substantively intended, but discards distinctions among the merged categories. Another cutpoint gives a different binary question.
There is also an exact sequential binomial factorization preserving all three categories. With their probabilities in one stratum,Multiplying these two conditional binomial likelihoods gives the multinomial likelihood: the combinatorial coefficients multiply to , and the probability factors reduce to . Continuation-ratio logits can therefore fit two logistic regressions, using the remaining stratum total as the second denominator. These are conditional stage models, not two independent counts with the same fixed denominator. Their regression restrictions need not equal those of the additive baseline-category model.
Finally, an ordinal analysis may fit cumulative binary contrasts and examine whether their slopes can be shared in a proportional-odds model. The binary indicators at different cutpoints from the same person are dependent. Do not stack them as independent binomial observations and multiply their marginal likelihoods; fit the joint ordinal likelihood or use a method with the appropriate dependence correction. This distinction separates a convenient descriptive collection of binary fits from a coherent multinomial or ordinal model.
Past exam of the mathematics course of the University of Cambridge 2003 iii Paper 40 2 iii Solution Created 2026-10-03 Updated 2026-10-14
At a distinct event time , estimate the conditional probability of surviving that time by . Multiplication of these conditional survival probabilities gives the Kaplan–Meier estimator, and taking minus its logarithm gives an integrated hazard estimate:The conditional failure count has a binomial likelihood whose maximizing event fraction is . Tied failures therefore enter directly as one count. Even ordering failures arbitrarily, with no intervening censoring, produces the same survivor function factor becauseThe failure-versus-censoring ordering convention still matters when both have the same recorded time. If , the survivor function becomes zero and the logarithmic integrated hazard is infinite.
Past exam of the mathematics course of the University of Cambridge 2003 iii Paper 40 3 i 1 Solution 2026-10-14
Let be the alternative death probability. The odds ratio specifiesAssume and . For observed batch count , the common combinatorial factor in the two binomial likelihoods cancels, giving the CUSUM incrementThereforeFor large death counts add positive evidence of deterioration; for unusually small death counts add evidence for improvement. The score has nonpositive expectation under the null and nonnegative expectation under the specified alternative, as follows from the nonnegativity of Kullback-Leibler divergence. Independent, nonoverlapping batches avoid counting the same patient's outcome repeatedly.
Past exam of the mathematics course of the University of Cambridge 2005 iii Paper 45 1 vi Solution 2026-10-14
Put and . The usual recombination fraction range gives , and the preceding likelihood function becomesTo see its relation to nonparametric linkage analysis, use Bayes' theorem and the constant disease probability to obtain the affected-pair marker-sharing probabilitiesTheir multinomial likelihood has exactly the same -dependent kernel, since its extra factor is constant. Set and . Then , and is the total number of shared ancestral copies. At fixed , the Fisher-Neyman factorization theorem makes a sufficient statistic. The observed mean shared proportion is , and the binomial likelihood kernel givesThe unlinked null is , whereas linkage corresponds to , or expected shared proportion . If , the constrained likelihood is maximized at the unlinked null. For , its log likelihood ratio iswhose derivative in is . Hence it orders samples exactly by excess IBD sharing. Under this fully penetrant recessive model, parametric linkage testing and a one-sided test of the overall IBD-sharing proportion use the same information. This is allele-sharing sufficiency for recessive linkage, not a general equivalence for all disease models. Use limiting values for terms such as , and assume for the estimators.
Past exam of the mathematics course of the University of Cambridge 2009 ia Paper 2 12F Solution Created 2026-09-24 Updated 2026-10-14
The law of total probability and the definition of conditional probability give Bayes' theorem:The denominator is positive because .
For the observed cargo, set , , . The binomial likelihood under origin isEqual prior probabilities and Bayes' theorem make the posterior proportional to these likelihoods. The binomial coefficient cancels in the likelihood ratios:Thus and , givingEven the permitted approximation gives log ratios about and , which already show overwhelming posterior preference for B. The exact logarithms are preferable because multiplication by magnifies the approximation error. An observed contamination fraction halfway between two hypothesized rates does not give equal likelihoods: the binomial distribution assigns asymmetric probabilities to those deviations, especially at this large sample size.
Past exam of the mathematics course of the University of Cambridge 2009 iii Paper 36 1 a Solution Created 2026-10-03 Updated 2026-10-14
The binomial likelihood is . Multiplication by the beta distribution prior density and Bayes' theorem give the posterior density kernel . Normalizing by the beta function yields Beta-binomial conjugacy:This is proper for and , including counts at either boundary.
Past exam of the mathematics course of the University of Cambridge 2009 ii Paper 1 13I Solution Created 2026-09-24 Updated 2026-10-14
The first fit is grouped-binomial logistic regression: independently, , with the observed group sizes andThe reference group is under 50 with a nonmalignant initial tumour. The weights specify binomial numbers of trials, not six equally weighted individual observations. There is no age-by-malignancy interaction. Each age coefficient compares that age group with the reference age at fixed malignancy; is the common malignancy odds ratio.
The maximum-likelihood estimates are obtained by maximizing the binomial likelihood. The reported standard errors come from the inverse fitted Fisher information. Each displayed Wald test tests a coefficient equal to zero, using and the approximate standard normal distribution; its two-sided probability is . At the 5% level the middle age coefficient and the malignancy coefficient are significant, with negative signs; the oldest age coefficient is not, although its 9.17% probability is weaker evidence in the same direction. The oldest group has only 19 observations and its larger standard error does not establish absence of an age effect. The intercept tests reference log-odds zero, equivalently reference survival probability , rather than an age contrast. The reference fitted probability is about ; the fitted malignancy odds ratio is about .
The binomial deviance is twice the saturated-minus-fitted log-likelihood. The null fit has one parameter, hence residual degrees of freedom; the first fit has four parameters, hence . The improvement is an approximate likelihood-ratio test on three degrees of freedom, with probability about . The residual deviance , compared with , gives about , so there is no evidence of lack of fit. These are asymptotic comparisons, especially approximate for the small oldest strata. The Akaike information criterion is , here with .
Pooling the two older age groups gives a grouped-binomial logistic regression with a common coefficient for age at least 50 and three parameters in total. The similar older-age estimates and the sparse oldest group motivate examining this restriction, but the significance of either coefficient separately is not a test of their equality. The actual analysis of deviance for pooling compares the nested fits: the deviance increases by only for one lost parameter, giving a probability about . The pooled model also has smaller Akaike information criterion, rather than . Prefer the pooled model for its simpler adequate fit. Its common age and malignancy coefficients are negative and significant at 5% in the reported Wald tests.
There is a literal parenthesis error in the printed final R fragment: the first sum is not closed before subtracting the second sum. As printed, the expression is incomplete. Closing that sum gives twice the saturated-minus-fitted log-likelihood, including the binomial constants which cancel. Its intended final value is therefore the second fit's binomial deviance, .
Past exam of the mathematics course of the University of Cambridge 2010 iii Paper 34 1 b Solution Created 2026-10-03 Updated 2026-10-14
Zero observed events do not mean that the underlying event probability cannot be estimated. For independent observations having a common Bernoulli distribution, the binomial likelihood with no events is , maximized at . A zero-event binomial upper confidence bound shows the remaining uncertainty: the one-sided 95% upper bound solves , givingThus the point estimate is zero, but a nonzero mortality risk is compatible with the observations. This bound is an illustration under independent equal-risk sampling; clustered data or unequal risks require their own uncertainty calculation.
The empirical unadjusted odds ratio is also defined:Its log odds ratio is , so the ordinary normal approximation for a log-odds confidence interval is unavailable. Exact likelihood-based limits can still describe uncertainty; a specified continuity correction would instead yield a finite, method-dependent point estimate.
In an unpenalized logistic regression with a separate coefficient for elective exposure, every exposed death outcome is zero. Decreasing that coefficient toward increases the exposed observations' likelihood contributions and leaves the reference observations unchanged. This is quasi-complete separation: there is no finite ordinary maximum-likelihood estimate of the exposure coefficient, even after adding background predictors. It is reasonable to say that the usual finite adjusted coefficient could not be fitted; it is too strong to say that no risk estimate or statistical information is possible. A specified penalized likelihood or Bayesian inference with proper coefficient priors can provide a finite adjusted estimate, whose dependence on the regularization must be reported.
Past exam of the mathematics course of the University of Cambridge 2012 iii Paper 37 3 a Solution Created 2026-10-03 Updated 2026-10-07
Index independent experimental vials by , write for the observed total eaten and for the number of other-species eggs eaten. The grouped-binomial logistic regression usesHere and identify day and adult species, and the free effects are . There is no day-species interaction. The weights in the binomial generalized linear model are the denominators , so fitting the proportions gives this binomial likelihood, not 23 Bernoulli observations. The dispersion is fixed at one. This is a model for the composition of eggs eaten conditional on the total, rather than a model for the total appetite.
Past exam of the mathematics course of the University of Cambridge 2012 iii Paper 37 3 c Solution Created 2026-10-03 Updated 2026-10-07
Compare the species-only model against the additive day-and-species model. The null hypothesis is , with the alternative that at least one is nonzero. The likelihood-ratio statistic is the reduction in residual deviance,Under the null hypothesis, regular binomial likelihood asymptotics give , because the larger model has two additional parameters. For this chi-squared distribution the upper-tail probability is . There is no evidence of a day effect after controlling for species, and the species-only model is a reasonable simpler choice. The sequential day-only statistic 0.273 from the preceding table answers a different question and must not replace this comparison.
Past exam of the mathematics course of the University of Cambridge 2018 ib Paper 4 19H Solution Created 2026-09-24 Updated 2026-10-14
With the uniform prior, the binomial likelihood gives the beta distribution posterior . Under squared-error loss, the Bayes estimator is the posterior mean:
The production manager's prior gives posterior density proportional to . Minimizing gives the weighted posterior meanusing the supplied beta function. Cross multiplication shows exactly when , so it is greater unless .
Past exam of the mathematics course of the University of Cambridge 2022 iii Paper 207 2 1 Solution 2026-09-28
Ignoring factors that do not depend on the parameters, the product of the two binomial likelihoods isIncluding the sampling constants multiplies this by .
Assume each sampled response is truthful, card selection is independent of the student's status, and responses follow the usual independent sampling model. In randomized response, a yes answer occurs either for a user receiving the first question or for a nonuser receiving the complementary question. Its probability isConsequently , and the likelihood isFor , first maximize the binomial likelihood in the unrestricted probability : its maximum occurs at . Inverting the affine relation givesFor an interior value , the same result follows from the scoreThe endpoint cases follow by monotonicity. This estimator has expected value and varianceThese identities follow immediately from and .
The printed claim needs a parameter-space qualification. The admissible yes probabilities lie in , which may exclude . The constrained maximum-likelihood estimator isThe displayed untrimmed estimator is the maximum-likelihood estimator only when it already lies in . Its unbiased estimator property does not carry over to the clipped estimator in general. For example, if , and , the clipped estimate equals 1 exactly when the answer is yes, so its expectation is , not zero. At , for every : the parameter is unidentifiable and the printed quotient is undefined. Thus the unbiased formula requires , and the constrained likelihood assertion requires the stated clipping.
For any fixed below 1, the ratio to the null isIt increases with . Its ordering is therefore the same for every such alternative, while the size is determined only by the null. The very same rule, reject when , is most powerful against each alternative and hence is a uniformly most powerful test. At its power is 1, also optimal.
More generally, for , the binomial likelihood ratio against any increases with . Choose an integer cutoff so thatand reject for , randomize with probabilitywhen , and accept below. This gives exact size and is a uniformly most powerful test for every positive integer . Exact prescribed size may require this boundary randomization; a deterministic cutoff alone need not attain it. For , reject all and reject at with probability , which is likewise optimal. At the stated one-sided alternative is empty. The cutoff generally depends on ; there is no claim that one fixed cutoff serves every null parameter.
A psychometric function specifies the probability of a measured response as a physical stimulus variable changes. The response might be “present,” “clockwise,” or correct in a two-alternative forced-choice task. These are different dependent variables. Understanding the function's shape is necessary to distinguish sensory changes from decision, attention and measurement effects. A reported threshold without its task, response definition and performance criterion is incomplete. For example, a visual experiment could use calibrated display visual contrasts, timed two-interval presentations, fixation control and button choices; the observer’s choice supplies the dependent variable.
A smooth curve need not mean that a receptor has a smoothly varying conscious threshold. Consider a noisy internal response , with “yes” reported when . Here is a decision criterion, not necessarily a biological detection limit. If is the noise cumulative distribution function,With Gaussian noise of standard deviation , symmetry of the normal distribution gives a Gaussian psychometric functionThe sigmoid is therefore a distribution tail swept by a changing mean response. At low means, few responses exceed the criterion; near it, many trials switch category; at high means, almost all do. The derivative is , so slope depends on both sensory gain and variability. Moving shifts the curve without necessarily improving sensitivity. If noise vanished and the mean crossed the criterion sharply, this simple model would approach a step rather than a graded transition.
There is no universal sigmoid in every stimulus coordinate. A nonlinear transduction function changes the curve, and a logarithmic intensity axis changes its appearance. As a counterexample, a toy detector responding whenever at least one event occurs in a Poisson distribution with mean has . This is concave on a linear positive-intensity axis. It follows immediately by subtracting the zero-event probability from one. It is a mathematical example, not evidence that human detection universally uses a one-event rule. Variation in attention or decision criterion across trials can broaden a measured curve even if the within-state sensory noise is unchanged.
Task conventions determine the endpoints. A useful psychometric function with guessing and lapses isHere is the lower asymptote and the upper error asymptote. In balanced two-alternative forced-choice performance, is commonly fixed at . A yes/no response probability does not automatically have this lower bound. In this particular cumulative-Gaussian parameterization, ; thus gives 75% correct only for and . Other function families use different scale parameters. Nor is automatically the fraction of inattentive trials: if a fraction of trials involves random two-choice guessing, those trials contribute an upper error probability .
Original theoretical noisy-decision and psychometric-curve examples; the right panel is a phenomenological family, not observed participant data
. Details. The relation to signal detection theory is equally important. Under independent equal-variance Gaussian signal and noise samples, define sensitivity index . In an ideal two-interval comparison, the response difference has mean and variance , givingThis Gaussian forced-choice sensitivity relation follows by standardizing the Gaussian difference. It is a specified decision model, not an identity for every forced-choice experiment. In a yes/no task, hits and false alarms are both needed: under the corresponding equal-variance model, . A criterion change can increase both rates while leaving unchanged. The phenomenological fit above need not have parameters identical to these internal-response parameters.
These distinctions affect experiments. Felix A. Wichmann and N. Jeremy Hill used simulation and statistical modeling to show that unmodeled stimulus-independent errors can bias threshold and slope estimates, even when lapses are uncommon.[ref]
The psychometric function: I. Fitting, sampling, and goodness of fit by Felix A. Wichmann and N. Jeremy Hill. Notation, lapse simulations, and summary; Percept Psychophys 63, pp. 1293–1313
Ignoring high-intensity errors can make a function appear shallower and falsely suggest worse sensory precision. A broad group-average curve can likewise reflect a mixture of individually sharp functions with different locations.At predetermined stimulus levels, independent trials give counts . The parameter-dependent log-likelihood is . Fitting this binomial likelihood, checking goodness of fit and quantifying uncertainty are preferable to drawing a curve through noisy proportions. Easy trials help constrain lapses; levels near the transition constrain location and slope. Randomization, stable calibration and checks for learning or fatigue help distinguish a stationary sensory relation from drift. Adaptive procedures require inference appropriate to their sampling design.
Thus the function is both a description and a testable model. Its shape determines what a threshold means, how an experiment should sample, and which claims about sensory mechanisms are warranted.
The prior mean, posterior mean, and maximum-likelihood estimate areFor , the last follows by maximizing . At or , use the usual binomial likelihood convention that admits the endpoints and as maximum-likelihood estimates; if the parameter domain is strictly , these are boundary suprema rather than attained maxima. The posterior mean remains interior in all cases.
TakinggivesSince and , . Thus the posterior mean is a convex combination of the prior mean and observed binomial proportion, with larger prior weight when is large relative to .
Randomized response Created 2026-10-31 Updated 2026-11-05
Randomized response masks which of two complementary binary questions a person answered. Suppose the sensitive property has probability , and independently the direct question is selected with known probability , while the complementary question is selected otherwise. Truthful answers then have yes probability . The investigator observes only the answer, preserving uncertainty about an individual's status while permitting population statistical estimation when .
For independent responses, , and the affine estimator is an unbiased estimator. Its variance is , by the mean and variance of a binomial distribution. Equivalently the variance is , exposing the extra sampling uncertainty caused by the masking. At , all produce and identifiability fails. At or , there is no masking and the extra variance vanishes.
Because , maximum likelihood estimation gives . This follows by maximizing the binomial likelihood over the interval and then inverting its monotone affine parametrization. Clipping can introduce bias: for , and , the clipped estimate has mean .

