Cross-entropy and maximum likelihood 2026-10-14
For a parametric statistical model with probability mass function and an independent and identically distributed model, minimizing empirical cross-entropy is maximum likelihood estimation. The logarithm is strictly increasing, so maximizing is equivalent to maximizing . Negating and dividing by gives the displayed minimization. Restricting the model family can prevent the optimum from matching the empirical distribution, and a finite optimizing parameter need not exist. This algebra does not by itself establish accuracy on new data.[ref]
Strictly Proper Scoring Rules, Prediction, and Estimation by Tilmann Gneiting and others. §1, printed p. 360: optimum-score estimation and maximum likelihood
Maximum likelihood estimation Created 2026-09-24 Updated 2026-10-14
Maximum likelihood estimation is a method of statistical estimation: within a specified statistical model, choose the statistical parameter values that maximize the likelihood function of the observed data. For a parameter set and observations , its exact requirement isThe equality requires an attained, finite maximum; a supremum approached only at an excluded boundary is not enough. The resulting rule is a maximum-likelihood estimator. The likelihood function uses a probability mass function for discrete data and a probability density function for continuous data. See MIT 18.05, Reading 10b, sections 3 and 3.2.
The direction of the comparison is the interesting part: hold the observations fixed and vary the statistical parameter. Ten independent Bernoulli trials with eight successes and two failures give the maximum-likelihood estimate , as derived in log-likelihood. This chooses the member of the statistical model that assigns the greatest mass to that outcome. It does not assert an posterior probability that this parameter value is true. Bayesian statistics combines the same likelihood function with a prior distribution to obtain a posterior distribution; maximum a posteriori estimation maximizes that posterior mass or density instead.
The method turns many fitting tasks into one maximization problem. In the normal distribution model with known variance, it recovers the sample mean and ordinary least squares, while binomial regression and Poisson regression use different sampling assumptions to build their own likelihood functions. The log-likelihood turns independent contributions into a sum, exposing score equations and observed information. A peak's location gives an estimate; its shape records how much the observed data distinguish nearby parameter values.
Existence, uniqueness, bias, and statistical consistency are separate questions. Normal mean and variance maximum-likelihood estimators include a variance estimate with bias, likelihood supremum at an excluded boundary gives nonexistence, and the Neyman-Scott incidental parameter problem gives inconsistency. The usual asymptotic normality of a maximum likelihood estimator requires assumptions: a consistent estimator at an interior true parameter in a fixed finite-dimensional model with identifiability, sufficient smoothness and control of log-likelihood derivatives, and finite nonsingular Fisher information. A common parameter-independent support of a probability distribution is part of a standard sufficient framework; see Rigollet, MIT 18.650, Maximum Likelihood Estimation, slides 22-23. This is a description of the regular setting, not a complete theorem's hypotheses. The exact endpoint limit for a shifted exponential distribution shows why changing support can produce a different rate and a nonnormal limit. These properties do not follow just from maximizing a function.
In his 1922 paper in the Royal Society's Philosophical Transactions A, R. A. Fisher explicitly distinguished likelihood from probability and described choosing the parameter values with greatest likelihood. Section 6 also discusses comparing likelihoods after giving the maximum value one, the convention used in the figures here. See Fisher, On the Mathematical Foundations of Theoretical Statistics, section 6, pp. 326-328, DOI 10.1098/rsta.1922.0009.
Pairwise comparison model Created 2026-10-06 Updated 2026-10-07
A pairwise comparison model specifies the probability that one alternative beats another. Outcomes can be used to infer latent abilities through maximum likelihood estimation or another statistical method.
Past exam of the mathematics course of the University of Cambridge 2001 ib Paper 1 3D Solution Created 2026-09-24 Updated 2026-10-14
Put , . The joint normal distribution density can be written asThe Fisher-Neyman factorization theorem says that, for a family dominated by a common measure, a statistic is a sufficient statistic when its densities have the form with independent of the parameter. The displayed factorization therefore shows that is a two-dimensional sufficient statistic.
For maximum likelihood estimation, discard parameter-independent terms from the log-likelihood:If , the quadratic equation has exactly one positive root. The numerator is positive before that root and negative after it, while the likelihood tends to zero at both ends of . Hence the normal likelihood with variance equal to squared mean gives the global maximizerThis holds almost surely. The exceptional all-zero sample has and likelihood proportional to , so its supremum is approached as and there is no positive maximizer.
Past exam of the mathematics course of the University of Cambridge 2001 iii Paper 28 2 ii Solution Created 2026-10-03 Updated 2026-10-14
The printed formula expands to the main effects of school type, acceptance and college, together with school-type-by-college and acceptance-by-college interactions. It contains neither a school-type-by-acceptance interaction nor the corresponding three-way interaction. Its Poisson regression model is thereforeFor every college the mean table has odds ratioThus it tests conditional independence of school type and acceptance given college, while permitting both margins to vary freely across colleges. It does not merely assert a common, possibly nonzero association.
The maximum likelihood estimation score equations match every school-type-by-college and acceptance-by-college margin. Solving them gives the stratified two-by-two conditional independence model's fitted countsIndeed these counts factor by row and column and have exactly the observed margins. For nondegenerate tables there are three free mean parameters per college: one total and two independent margin proportions. There are cells and parameters, hence 25 residual degrees of freedom. The residual deviance iswith zero-count contributions interpreted as zero. The Poisson linear terms cancel because the fitted totals equal the observed totals. Under the null and suitable large-count regularity, compare with . Sparse cells, structural zeros or degenerate margins require a different calibration, such as an appropriate conditional test or simulated reference distribution.
A large residual deviance is evidence of school-type/acceptance association in at least some colleges. A small one indicates compatibility with conditional independence, not proof of identical admission processes or absence of selection on qualifications. Residuals and individual college contrasts locate departures. Adding the school-type-by-acceptance term gives a common odds ratio, one extra parameter and 24 residual degrees of freedom. Adding the full three-way term permits each college's association and saturates the tables. The first comparison tests a common association; the second checks whether a common association is adequate. No frequencies are supplied here to evaluate these tests numerically.
Past exam of the mathematics course of the University of Cambridge 2001 iii Paper 33 4 Solution Created 2026-10-03 Updated 2026-10-14
For the three-coordinate state realization of an ARMA(1,1) process, the observation row and transition matrix areThe first row of is by the previous-time recursion; the second row is zero until the new white noise value is added; and the third row copies . Hence the state equation has noise covariance
We use the causal state model, in which the new driving noise is independent of the previous state. The Gaussian filtering with exact observations form of the Kalman filter alternates prediction through the state equation with conditioning on the next observation. Given the posterior expected value and covariance at time , independence of the new white noise value gives predictive expected value and predictive covarianceProject through the observation row to getThe residual is the innovation. Conditioning the joint Gaussian state-observation vector adjusts the expected value according to this residual and reduces the covariance. In this exact-observation model, the updates can be writtenThus and : the observed linear combination of the state is now known exactly, though other state combinations remain uncertain.
The PDF's stated prediction variance omits . This omission cannot be used in a valid likelihood: for the AR(1) specialization below it would give zero prediction variance after the first observation. The required likelihood calculation uses the corrected innovation variance just derived.
For stationary initialization of an ARMA(1,1) state with , take and the unconditional stationary covariance. The causal coefficients are at lag zero and at lags , givingSince , the cross-covariance with is zero and that with is . ThereforeDirect substitution verifies . If prior state information is available, instead use its conditional expected value and covariance. A diffuse initialization is another option when the initial state is genuinely unknown, but it changes the finite-sample likelihood and should not silently replace the stationary initial law.
By the Gaussian prediction step,The chain rule for probabilities for the joint probability density function therefore givesTaking minus twice its logarithm shows that maximum likelihood estimation is equivalent to minimizingwith each and evaluated at the candidate parameters and the specified initialization. The corrected is essential in every .
For the stationary causal AR(1) case, and . The first observation is , whereas each later conditional observation is . HenceThis also gives a direct counterexample to the uncorrected PDF variance: with , and after observing , so its printed expression would give for .
To compare the conditional and stationary AR1 likelihood estimators, putThen its negative twice log-likelihood isFor fixed , . Writingthe exact interior score equation isThe stationary initial contribution is order one for a fixed interior parameter, while is order . Discarding this lower-order contribution givesConditioning on makes this ratio the exact unconstrained conditional maximum likelihood estimate. Under the stationary initial law it is only the leading approximation: at an interior optimum,This approximation presumes a nondegenerate sample denominator and a true coefficient fixed away from the unit-root boundary; a finite-sample constrained optimum must respect .
Past exam of the mathematics course of the University of Cambridge 2002 ib Paper 2 12H Solution Created 2026-09-24 Updated 2026-10-14
For independent observations from a normal distribution with unknown mean and positive variance, the maximum likelihood estimation of the mean givesIndeed , which is minimized at . The likelihood isFor fixed , differentiation in gives the maximizer . Thus the unrestricted fit has , whereas under the null hypothesis the fitted variance is . Both maximize rather than minimize the likelihood: it tends to zero at either variance endpoint when the residual sum of squares is positive.
The restricted-to-unrestricted likelihood ratio is thereforeThe generalized likelihood-ratio test rejects for small , equivalently large . Under the null, is standard normal, has a chi-squared distribution with degrees of freedom, and they are independent. To see the independence, apply an orthogonal matrix to the standardized normal sample, taking its first row to be : the transformed coordinates remain independent standard normal variables, and is the sum of squares of the other coordinates. Hence has Student's t-distribution with degrees of freedom.
Past exam of the mathematics course of the University of Cambridge 2002 iii Paper 39 1 i Solution Created 2026-10-03 Updated 2026-10-14
Work with a nonsingular multivariate normal distribution, so is positive-definite. The claimed finite maximum-likelihood estimates also require the centered sample covariance matrix to be nonsingular; the exceptional case is discussed below.
Independence gives, up to a constant, the log-likelihoodLet and . The centered sum is zero, and expansion therefore givesFor every fixed positive-definite matrix , the extra quadratic term in the log-likelihood is , with unique maximum at .
Assume is positive-definite. Maximizing over now means minimizing . Put , another positive-definite matrix. ThenIf are its eigenvalues, the variable part is . The scalar inequality , with equality only at , shows that this is minimized uniquely at , or . ThusThe divisor is because this is maximum likelihood estimation, not the unbiased covariance estimate with divisor .
The nonsingularity condition matters. The centered scatter has rank at most . If is singular, choose , retain positive covariance eigenvalues on its range and let a covariance eigenvalue on its null space tend to zero. The quadratic likelihood term remains finite, while . This is singular covariance and nonexistence of a Gaussian maximum likelihood estimate: there is no finite maximizer over nonsingular . Under a nonsingular Gaussian population, is positive definite almost surely when ; for it is necessarily singular. The asserted estimate and the inverse in the next part have their usual meaning under .
Past exam of the mathematics course of the University of Cambridge 2003 iii Paper 40 1 b iv Solution Created 2026-10-03 Updated 2026-10-14
For independent individuals under fixed administrative censoring, an observed failure contributes the probability density function , while a censored observation contributes the survivor function . Hence the survival likelihood and log-likelihood areFor , the score function vanishes at , and . This is the unique maximum over :Thus maximum likelihood estimation agrees with the observed-exposure estimating equation. If there are no failures, the likelihood decreases with : its supremum is approached as , or attained at zero if that boundary is admitted.
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 2005 ib Paper 4 19D i Solution Created 2026-09-24 Updated 2026-10-14
Assume , which is necessary to identify the slope in linear regression through the origin. The joint normal likelihood has logarithm, apart from a constant,Complete the square in . With and ,The maximum likelihood estimation therefore first minimizes at ; differentiating in then maximizes atThis is a genuine finite maximum when . If all , the slope is unidentifiable. If , the likelihood is unbounded as , so no positive-variance maximum exists. For nonzero design and , zero residual has probability zero under the stated positive-variance model.
Past exam of the mathematics course of the University of Cambridge 2005 iii Paper 45 3 vi Solution Created 2026-10-03 Updated 2026-10-14
The accepted values have marginal posterior densityEstimate this one-dimensional density by a histogram or kernel density estimation from the simulated values. Where , likelihood reconstruction from posterior simulation givesUse bins or a sufficiently fine grid, and refine near the maximum. For a histogram with bins , its posterior mass divided by prior mass estimates a prior-weighted average of the likelihood in that bin:Narrowing the bins gives pointwise likelihood reconstruction at continuous positive-prior points. A flat proper prior over the search interval makes the highest posterior-density bin approximately the highest-likelihood bin. With a nonconstant prior, maximizing the posterior alone gives a maximum a posteriori estimate, generally different from maximum likelihood estimation. Choose prior support covering the intended search region and include a possible boundary maximum; for , decreases with , so the maximum-likelihood estimate is .
The sampled genealogies provide a second likelihood reconstruction when the one-dimensional prior integral is computable. PutTheir posterior density is . Therefore, for any trial value ,This is an importance sampling estimate of the likelihood curve using the posterior genealogies. It can be maximized over a grid without estimating a posterior density in , provided wherever the target integrand is positive and the weights are numerically usable. The ordinary moment estimate is not automatically a maximum-likelihood estimate: it uses only the mean equation, while the likelihood integrates the entire random branch-length distribution.
Past exam of the mathematics course of the University of Cambridge 2007 ib Paper 1 18C i Solution Created 2026-09-24 Updated 2026-10-14
Let and . The likelihood is , so for its unique maximizer is . By invariance of maximum likelihood estimation,For or , the strict parameter interval has no attained likelihood maximum; the usual extended estimate takes the limiting endpoint and gives . Thus the displayed estimator is the conventional extended MLE on those samples, an important boundary qualification. This is the first estimator in estimating Bernoulli variance.
Past exam of the mathematics course of the University of Cambridge 2007 iii Paper 44 4 Solution Created 2026-10-03 Updated 2026-10-14
Assume , so the residual sum of squares is positive almost surely. Write and . The log-likelihood isThe decomposition shows that, at every fixed positive variance, its constrained maximum-likelihood estimate of the mean is . Substituting this mean and differentiating with respect to the variance givesThe denominator is required by maximum likelihood estimation; is the unbiased variance estimate, which is a different estimator.
Under the null variance , maximize over the same mean . Subtracting the null maximum log-likelihood from the unrestricted maximum gives the likelihood-ratio test statisticBy Cochran's theorem, the residual sum of squares in a normal sample satisfies under the null. Set , so . ThenThe normal mean is a nuisance parameter, but this null law does not depend on it.
A Bartlett correction removes the first-order discrepancy between the null mean of a regular likelihood-ratio test statistic and the degrees of freedom of its limiting chi-squared distribution. In the convention used here, if the limiting degrees of freedom are andthen is the Bartlett correction coefficient, also called the Bartlett correction factor, and the Bartlett-corrected likelihood-ratio statistic is . Its null mean is . The finite- divisor is , rather than itself. There is one restriction on the variance here, so .
Expand the logarithm around and use the permitted termwise asymptotic integration:Using the supplied raw moments of the chi-squared distribution and expanding givesFor instance, and give the first formula after subtracting . The same binomial expansion, using the raw third and fourth moments, gives the other two formulas.
We must justify why higher moments cannot change the coefficient. Represent for independent standard normal variables, and put . Each is centered and has all absolute moments finite. With , one has . The supplied centered-sum bounds say, for each fixed integer ,Also and . Therefore, for every fixed , expanding givesThese are bounds on the absolute values of signed moments; the odd-moment estimate must not be misread as a bound on . In particular, each fixed Taylor term of degree has or smaller. Combined with the question's permission to integrate the asymptotic expansion term by term, this controls the higher-order contribution at the required order. It does not require a globally convergent Taylor series for every realized .
Substituting the first three moment formulas now givesThus the Bartlett correction for a normal variance with unknown mean isIts null mean is , and the usual reference law is . Keeping the estimated mean's loss of one residual degree of freedom, and using the maximum-likelihood variance divisor , are both essential to the coefficient .
Past exam of the mathematics course of the University of Cambridge 2007 iii Paper 48 6 b i Solution Created 2026-10-03 Updated 2026-10-14
Introduce a categorical latent variable for each observation, with , and let . Conditional on , has a normal distribution of mean and the shared variance . The complete-data log-likelihood function isInitialize finite means, positive weights summing to one, and a positive common variance. At iteration , the Bayes' theorem gives the E-step mixture responsibilitiesThe common normal-density factor cancels. The observations' conditional labels are independent, and replacing by their conditional expectations givesSet ; because , . The constrained weight maximization uses a Lagrange multiplier : differentiating gives , and summing fixes . Differentiating the residual quadratic in each mean gives . Hence the first two M-step updates areWith these new means define . The remaining objective in is , whose derivative is . For it increases up to and decreases afterwards. Thus the shared-variance update isThe denominator is , not and not a separate count for each component: this is maximum likelihood estimation with one common variance. These are the EM for Gaussian mixtures with a common variance updates. Recompute responsibilities with the new parameters and repeat until the observed-data likelihood changes sufficiently little.
The monotonicity claim also follows directly. For positive old weights, the likelihood ratio for observation isApply the Jensen inequality to the logarithm and sum over observations. This yieldsfor the maximizing M step. This proves likelihood increase, not convergence to the global maximum. Use several initializations to reduce sensitivity to local maxima. Compute responsibilities with a log-sum-exp function normalization to avoid numerical underflow.
If , that component's updated weight is zero and its mean is unidentified; retain its old mean or remove the empty component. Strictly positive interior initialization avoids this case in exact arithmetic while the variance stays positive. If , there is no positive finite variance maximizing this M step: the objective tends to infinity as . Such boundary degeneracy needs a variance constraint or regularization, as discussed in the next solution. For the formulas reduce to the ordinary sample mean and the maximum-likelihood variance .
Past exam of the mathematics course of the University of Cambridge 2008 ib Paper 4 19H ii Solution Created 2026-09-24 Updated 2026-10-14
Set . The maximum likelihood estimation formulas for simple linear regression giveUsing the supplied rounded summaries gives metres and metres. Recomputing directly from the printed table gives approximately and metres, respectively, so the small summary rounding differences do not affect the conclusion.
I would not accept the model merely because the Student t-test fails to reject a zero regression intercept. That hypothesis test tests one parameter restriction within the assumed model, not the adequacy of its error assumptions or its functional form. In particular, complementary elevations and have exactly the same and hence the same fitted mean, but their observed low-angle minus high-angle ranges arefor the four corresponding pairs. All four are positive, suggesting an elevation-dependent effect omitted by the mean model, such as air resistance, rather than random scatter determined only by . This is a regression diagnostics concern, not a claim that these finite data logically rule out the normal-error model. The correct conclusion is nonrejection of the intercept restriction does not validate the regression model; further checks of the residual pattern and error assumptions are needed.
Past exam of the mathematics course of the University of Cambridge 2008 ib Paper 4 19H i Solution Created 2026-09-24 Updated 2026-10-14
Assume the explanatory variables are not all equal, so . In the Gaussian linear model, the log-likelihood isFor fixed , maximum likelihood estimation therefore minimizes the residual sum of squares. Differentiating in gives the least-squares normal equationsThe first gives ; substituting it into the second gives , with . Let . Differentiating the profiled log-likelihood in givesFor the variance estimator this is the interior maximum when , which occurs almost surely under the model when .
The coefficient estimators are linear functions of the independent normal errors. In particular,Their multivariate normal distribution has mean and covariance matrixThe fitted vector is the orthogonal projection onto the two-dimensional span of and . The residual vector is the complementary projection of the spherical normal error vector. Orthogonal normal projections are independent, and in an orthonormal basis of that complementary space its coordinates are independent . Consequentlyindependently of . This also gives the unbiased estimator rather than the variance MLE.
Under the null hypothesis , for the Student t test for a simple-regression intercept usesHere is the prescribed significance level. The normal numerator divided by its true standard deviation is independent of , which proves the stated Student t-distribution. If , the two coefficients are not separately identifiable; if , this residual-variance-based test is unavailable.
Past exam of the mathematics course of the University of Cambridge 2008 iii Paper 42 1 Solution Created 2026-10-03 Updated 2026-10-14
In a parametric statistical model , the likelihood function measures the relative support given by the observed sample for different parameter values. Maximum likelihood estimation supplies a point estimate; the sampling distributions of suitable statistics calibrate significance tests and confidence intervals. A sufficient statistic retains all parameter-dependent information in the likelihood function, so one first seeks a reduction to such a statistic rather than discarding information arbitrarily.
The characteristic conditioning principle in Fisherian conditional inference is to calibrate inference conditional on the observed value of an ancillary statistic. With no nuisance parameter, a statistic is ancillary when its law is the same for every . Its observed value can nevertheless describe the experimental configuration or precision. Conditional inference uses for an informative statistic , with the observed ancillary value. Since the marginal law of does not depend on , conditioning leaves the parameter-dependent likelihood factor unchanged, while potentially changing the appropriate repeated-sampling reference distribution. Conditioning on a continuous means using a regular conditional distribution, rather than dividing by .
With parameters , where is the target and a nuisance parameter, a fully ancillary statistic has a law independent of both. A partial ancillary statistic for may have a law depending on but not on . To eliminate by conditioning, one needs the actual conditional law of the informative statistic to be free of ; partial ancillarity by itself does not guarantee this. For example, if independent counts have Poisson distributions with means and , their total has Poisson distribution with mean , independent of . The first count conditional on has binomial distribution with parameters . Conditioning removes the nuisance intensity exactly. More generally, nuisance-free pivotal quantities or conditional likelihoods can be used where available; there is no universal conditioning device that removes every nuisance parameter.
For a concrete example of non-uniqueness of maximal ancillary statistics, consider one observed pair , withBoth and have Bernoulli distribution with success probability , independent of , so each is an ancillary statistic. Their generated partitions are different and incomparable. Moreover, each is maximal: refining either two-point cell singles out a point whose probability is or , which is parameter-dependent. Their joint statistic is not ancillary, since . Thus there is no common finer ancillary partition that reconciles the two choices. The conditional laws differ as labelled experiments: and , but they condition on different observed information. This illustrates why “condition on a maximal ancillary” need not specify a unique procedure.
For the location-scale family, write , where the are independent with the fixed density . Let . The transformation givesand thereforeFor , almost surely, because an independent sample from a density has probability zero of all observations coinciding. The right side depends only on a sample from the fixed base law, so the entire vector has a law independent of : No finite population mean or variance is needed for this algebraic argument. With one observation the displayed standardization is undefined, so at least two observations are implicitly required.
The pair together with reconstructs the full sample through . Thus conditional inference in a location-scale family useswhere is the observed residual configuration. Equivalently one can use the parameter-free conditional law of given . To see this explicitly, the centered residual subspace has dimension , so its radial coordinate contributes a Jacobian determinant factor proportional to . The conditional density of , is therefore proportional toSetting and gives a conditional density proportional to , with no unknown parameter. The normalizing factor can depend on , but not on or . These statements concern almost every attainable ancillary value.
Past exam of the mathematics course of the University of Cambridge 2008 ii Paper 2 5J Solution Created 2026-09-24 Updated 2026-10-14
Under independent normal distributions, maximum likelihood estimation minimizes subject to . A Lagrange multiplier gives the same correction at every corner. Writing , the interior estimates areThe result is unchanged if the common variance is unknown, since profiling it still minimizes the residual sum of squares. If physical positivity of the three angles is imposed and this projection gives a negative component, the constrained estimate over the closed simplex is instead , with chosen to make the components sum to . If only strictly nondegenerate triangles are admitted, a boundary optimum is merely an unattained likelihood supremum.
The normal-error model is a useful small-error approximation, but its unbounded tails assign positive probability to impossible measured angles. Periodicity or a measurement convention may matter for large errors, and equal variance and independence require experimental justification. The exact sum constraint on the true angles does not itself invalidate independence of three raw measurement errors. After imposing that constraint, however, the fitted-angle errors are correlated: the covariance of the interior estimator is .
Past exam of the mathematics course of the University of Cambridge 2009 iii Paper 38 3 Solution Created 2026-10-03 Updated 2026-10-14
Let be the disease count among miners in exposure group , with representative exposure , for . The grouped-binomial logistic regression isThe model assumes independent miners, a common disease probability within each group at its representative exposure, and binomial variation without an extra dispersion parameter. The use of average exposure is a grouping approximation, not a claim that every miner in a group has identical exposure. The input response is and
weights=miners supplies the binomial denominators , not inverse variances; together they yield this count likelihood function. The default binomial link is the logit link.For , the likelihood-ratio test compares the intercept-only model with the linear-exposure model. The reduction in binomial deviance isUnder the usual regular large-sample approximation it has a chi-squared distribution with one degree of freedom. There is very strong evidence of exposure dependence, with a positive estimated coefficient .
For goodness of fit against separate probabilities in all eight groups, the residual binomial deviance has approximately degrees of freedom. Its upper-tail probability is about , giving no evidence of lack of fit. This is an approximate check, particularly because the earliest exposure groups have small expected disease counts. It supports adequacy of this mean structure, not proof that all its assumptions or possible confounding variables have been addressed.
The
predict call asks for a prediction at exposure , sets type="response" to return the fitted probability rather than its log odds, and requests the standard error of that fitted probability. It givesFor , the linear predictor is , and the delta method givesThe intercept-slope covariance is included in this expression. This measures uncertainty in the fitted mean probability; it is not the standard deviation of a new individual's binary disease outcome or of an unspecified new sample proportion.The model's odds at exposure are . Hence , independently of . By invariance of maximum likelihood estimation, estimate this odds ratio by . A Wald confidence interval for is ; exponentiating its endpoints after multiplication by gives the interval for the multiplier. Using the printed coefficient and standard error yieldsThus the estimated odds rise by about per year, or by a factor about per decade. These are changes in odds, not fixed multiplicative changes in probabilities.
The second fit keeps the same independent binomial distributions but permits a quadratic linear predictor,In the sequential analysis, each exposure term adds one coefficient. With the first model's deviances, all nine missing entries are recovered in this completed table:The final reduction is , with rounding to the precision of the printed output. Testing therefore gives on one degree of freedom. At the significance level I would retain the simpler linear-exposure model: it already fits adequately and the extra curvature is not clearly established. The quadratic fit does improve the likelihood somewhat; its Akaike information criterion is about smaller, since . Thus different reasonable selection criteria may weakly prefer different models, but these data do not give strong evidence that the additional term is necessary.