Set and . For the Poisson distribution observations, factors independent of can be removed from the likelihood function, leaving
When , the log-likelihood derivative is and its second derivative is negative. The unique positive maximum-likelihood estimator is therefore
There is a genuine boundary qualification: if , the likelihood decreases strictly on , so no maximum is attained in the stated open parameter space. On the closure , its maximizer is . Defining the usual extended maximum-likelihood estimator by the same displayed formula for every allows its statistical consistency to be examined; the all-zero event cannot be ignored because its probability does not tend to zero.
Indeed, sums of independent Poisson distribution variables give , so
Thus the extended maximum-likelihood estimator is inconsistent. More precisely, increases to , and shows that this total count is finite almost surely. Its distribution is Poisson distribution with mean , by taking limits of the finite-sum laws. Hence
This finite-exposure Poisson inconsistency leaves a nondegenerate random limit even with infinitely many observations. Correspondingly, the total Fisher information is , rather than diverging. The common-distribution hypothesis in the introductory maximum likelihood estimation theorem is absent here.
One sufficient maximum likelihood estimation statistical consistency theorem is the following. Let the observations be independent random variables with a common density relative to a fixed measure, let be a compact metric parameter set containing the true value , and suppose that the expected log-likelihood
is finite, continuous, and uniquely maximized at . Assume also the uniform law of large numbers
and assume that a measurable global maximum-likelihood estimator exists. Then every such maximum-likelihood estimator converges in probability to the true parameter. A useful sufficient condition for this uniform law of large numbers is almost-sure continuity of on the compact parameter set and an integrable envelope , . Under these conditions, identifiability supplies uniqueness through the Kullback-Leibler divergence identity
with equality only at .
To see the statistical consistency conclusion, fix . Compactness and the unique maximum give a strictly positive separation gap
whenever the set outside the neighbourhood is nonempty. If denotes the supremum discrepancy in the uniform law of large numbers, maximization of the empirical log-likelihood yields
Hence the probability of is at most , which tends to zero. This is the argmin consistency under uniform convergence in probability argument applied to the negative log-likelihood. These are sufficient conditions, not necessary ones; parameter-dependent support can require a direct argument, and independent observations need not have a common distribution in other models.
For , conditional binomial probabilities can be written
This zero-truncated binomial distribution is an exponential family. Write and . The cumulant identities and , with , give
The maximum likelihood estimation score equation is , or
For and the increasing mean function gives a unique interior solution; and instead give limiting estimates zero and one, respectively. If , always and the parameter is unidentifiable.
For fixed and large , the excluded event has exponentially small probability . Conditioning therefore does not change the central-limit approximation for , and the score equation differs from only by an exponentially small correction with high probability. The binomial central limit theorem consequently gives
The suggested inference after observing one is incorrect for the stated sampling model. Its conditional likelihood is the unconditioned likelihood divided by , a parameter-dependent factor. They are not proportional likelihoods: the unconditioned estimate is , whereas the conditional likelihood for is maximized as for . Knowing that the observed value is positive does not remove the selection mechanism from the model.
Write . Apart from a constant, the log-likelihood is
For each group,
Thus maximum likelihood estimation sets . The corner-point constraint identifies , giving
The baseline mean is the first group mean, rather than the grand mean, because of the chosen identifiability constraint.
Allow each subject to have a separate baseline and slope through a correlated random-intercept and random-slope model:
The subject random effects are independent of all measurement errors, and subjects are independent. The within-person covariance between times is , with an additional when the same reading is used twice.
Prefer the model with a random slope. The maximum likelihood estimation refits improve twice the log-likelihood by while adding two covariance statistical parameters. Both the Akaike information criterion ( to ) and Bayesian information criterion ( to ) strongly favour it. The printed nominal likelihood-ratio test is overwhelming. The usual reference chi-squared distribution with two statistical degrees of freedom is not an exact regular calibration, since zero slope variance is a boundary and the intercept–slope correlation is then unidentified; a design-specific parametric bootstrap could calibrate it. This qualification does not undermine the substantial descriptive improvement shown by both information criteria.
The preferred fit estimates population mean baseline strength kg and weekly gain kg/week. The between-person baseline standard deviation is kg, and the between-person slope standard deviation is kg/week. Their estimated correlation is weakly positive, giving random-effect covariance about kg/week; its uncertainty is not supplied. The measurement-error standard deviation is kg. The printed instead describes the correlation between the estimated fixed effects, not between the subject random effects. These statistical parameter estimates come from restricted maximum likelihood; the model comparison uses the separate maximum likelihood estimation fits.
The population mean fitted trajectory is kg. Hence
Using the reported slope standard error, an approximate 95% confidence interval for the population mean gain is kg; a Student t confidence interval with 499 statistical degrees of freedom is almost identical.
Successful individuals can improve far more than the average. Their latent ten-week gains have fitted normal distribution
A clear estimate for an upper-performing group uses a between-person slope quantile: the 95th percentile is kg, and the 97.5th percentile is about kg. The upper 5% of fitted underlying gains begin around 73 kg. These are person-to-person performance quantiles, not confidence intervals for the population mean. Identifying the best observed trainee would require that person's data or fitted subject random effects; the aggregate output cannot identify a literal maximum. If performance means the observed difference of endpoint readings, add the measurement-error variance to the latent gain variance.
For a finite Gaussian mixture with a common variance, introduce independent latent labels with probabilities , , and conditional responses , with common . The observed density and log-likelihood are
The expectation-maximization algorithm replaces the difficult log of sums by an expected complete-data objective. Choose positive initial weights and variance and separated initial means. At iteration , the E-step computes the mixture responsibilities
The common normalizing factor cancels. For numerical stability the probabilities can be evaluated by subtracting the largest log weight before exponentiating.
With the old responsibilities held fixed, the expected complete-data log-likelihood, up to irrelevant constants, is
Let . A Lagrange multiplier for , weighted least squares for the means, and differentiation in the common variance give the M-step:
The variance update uses the new means and old responsibilities, with denominator , not a residual degrees-of-freedom adjustment: this is maximum likelihood estimation. Repeat the E- and M-steps until the observed log-likelihood and parameters stabilize.
By EM likelihood monotonicity, exact updates do not decrease the observed likelihood. They need not reach its global maximum, so use several starting configurations and keep the best converged fit, checking for empty or nearly empty components and vanishing variance. The labels are interchangeable; sorting means after fitting supplies an interpretable labeling. Distinct starting means do not guarantee that all fitted components remain distinct. With a common variance and the usual fixed small relative to distinct observations the model avoids the individual-component variance-collapse pathology of unrestricted Gaussian mixtures, but degenerate data or too many components still require attention.
This is a generalized linear model with independent Bernoulli distributions for the responses and the logit link. Under treatment coding with colour one as the reference level, the linear predictor is
Colour is a categorical variable, not a numerical trend. Width has the same slope for every colour, since no interaction term is fitted. The parameters are estimated by maximum likelihood estimation.
The approximate Wald confidence interval for the width coefficient is , or approximately . This uses the approximate normal distribution of the maximum-likelihood estimator, rather than a confidence interval for an individual binary response.
For the requested crab, the fitted linear predictor is . Applying the inverse logit link gives . The rounded displayed coefficients need not reproduce the reported test statistics exactly.
Write for a positive-definite matrix. Up to a constant independent of the parameters, the log-likelihood of the multivariate normal distribution is
The identity
shows that, for each , the unique optimizing mean is . Using the matrix trace to rewrite the first quadratic sum, the profile likelihood is
Therefore maximum likelihood estimation of the precision matrix, whenever the maximum exists, is exactly
This is the profile likelihood for a Gaussian precision matrix. The sample covariance matrix here uses divisor , as appropriate for maximum likelihood estimation.
There is an important rank qualification in the printed assumptions. If , differentiation gives , so the unique minimizer is . Uniqueness follows because the negative log-determinant is a strictly convex function on the positive-definite matrices. But full column rank of the uncentered alone does not imply : the rank of a centered sample covariance matrix depends on the centered design. For example, with and raw data matrix ,
Although has full column rank, setting gives objective . Thus an unpenalized maximizer need not exist under the literal raw-rank assumption. The likelihood reduction remains valid; existence requires full column rank of the centered data, equivalently . For the nonsingular Gaussian model this holds almost surely when .
Use the entrywise-penalty convention for the Graphical Lasso:
The sum is the entrywise matrix L1 norm. Its Graphical-Lasso Karush-Kuhn-Tucker conditions are
Here is symmetric; its nonzero-entry values are , and its zero-entry values are any numbers in . These are the subgradient optimality condition for this convex optimization problem. Since a positive-definite matrix has positive diagonal, and . Counting both off-diagonal entries in the penalty and in the trace makes the same appear in their stationarity equations. The common variant penalizing only off-diagonal entries instead sets ; the off-diagonal equations and the column argument below are unchanged.
For the given column problem, abbreviate
Its smooth part expands to plus a constant, because is symmetric and . The matrix is a positive-definite matrix, so this quadratic is a strictly convex function. Adding the convex L1 norm penalty preserves strict convexity, and the objective tends to infinity as . The minimizer exists and is unique. Its Karush-Kuhn-Tucker conditions are
We identify that minimizer directly from the precision matrix. Write and define
The denominator is positive. The off-diagonal part of column of gives
On the other hand, the off-diagonal Graphical-Lasso Karush-Kuhn-Tucker conditions read
Because , the coordinates of have the opposite signs from those of and vanish at exactly the same positions. The subgradient of the absolute value therefore satisfies
It follows that
These are exactly the Lasso column problem's Karush-Kuhn-Tucker conditions. Its unique minimizer must be , yielding
This is the Graphical Lasso column regression identity. The minus sign is essential: it converts the precision-entry subgradient into the regression-coefficient subgradient. The argument uses the inverse identity directly, so it does not require proving the supplied block inverse formula.
Choose knots independently of the eventual validation responses, and let be a natural cubic spline basis as in part (a). A regression spline writes . Define the design matrix . Under the stated normal linear model, maximum likelihood estimation for is the same as ordinary least squares:
Differentiation gives the normal equations . If the design has full column rank,
If it does not, a Moore-Penrose inverse gives the fitted values, but not every coefficient or off-sample prediction is identifiable. Merely choosing distinct knots does not guarantee full rank for an arbitrary set of observed predictor values.
More knots allow greater curvature and reduce approximation bias at the cost of larger estimation variance. Too many or poorly located knots can cause unstable fits. Equally spaced knots are simple; empirical predictor quantiles put more flexibility where observations are dense; subject knowledge can concentrate knots near likely changes. Both the number and positions can be compared using cross-validation or an appropriate penalized model-selection criterion. Adaptive knot selection must be included within validation, since treating a data-selected basis as prespecified understates its flexibility. Boundary knots should cover the region where inference is intended, and natural linear tails do not by themselves justify far-out extrapolation.
The marginal Akaike information criterion is , where counts estimated population parameters. Here they are , so . The realized incubator slopes have been integrated out of the likelihood function; they are not four additional free population coefficients. From the marginal Gaussian log-likelihood, the expression is
All hats here denote the ordinary maximum likelihood estimation fit.
The displayed value is instead a restricted maximum likelihood criterion. Thus it cannot simply be substituted for the ordinary maximum-likelihood deviance. The logLik method defaults to the fitting convention. If one applies AIC(fly.model) directly to the displayed REML object, the default restricted log-likelihood and the same parameter count give the software's restricted-likelihood-based value . This number should be labelled as such; it is not the ordinary marginal AIC derived above. To obtain the latter, refit and calculate
AIC(update(fly.model, REML=FALSE))
The output does not contain that numerical answer. In particular, restricted criteria must not be used to compare models with different fixed-effect designs. A conditional AIC targeting predictions for existing groups is yet another criterion and does not follow by counting each latent slope as an ordinary parameter.
Visits can be missed or rescheduled because of illness, clinic availability or patient choice; follow-up may end through dropout or right censoring. The correct panel-observed multi-state likelihood uses each observed interval length :
Thus the four aggregated one-year counts are generally no longer sufficient; records must retain actual durations. Numerical maximum likelihood estimation uses the corresponding transition probabilities, or a matrix exponential of the generator when a larger model is fitted. One must not treat a two-year interval as a single one-year transition or as two known transitions through an unobserved intermediate state.
This conditional calculation is valid when visit scheduling and loss to follow-up are ignorable given the modeled information. If symptomatic patients are systematically examined earlier or leave the study differently, observation itself may be informative; the visit or dropout process may require a joint statistical model. Simply replacing one year by the actual interval does not correct informative observation.
A potential event time is an allowed support point for the discrete event-time distribution used to derive the Kaplan–Meier estimator. A positive probability mass may be assigned there before fitting, even if no event was observed at that time.
This is a device for nonparametric maximum likelihood estimation from exact event times and right censoring; it does not assert that the underlying biological event time is genuinely discrete. Its estimated mass can be zero at an unobserved potential time.
At an added potential event time with no event and a nonempty risk set, , so maximum likelihood estimation gives . Its factor in the Kaplan–Meier estimator is therefore .
Adding or deleting such times also leaves the risk sets at actual event times unchanged: those depend on the observed event and censoring histories. Consequently the fitted survivor function depends only on observed event times and their risk sets. Beyond the last observed follow-up, the tail is not identified; the standard flat continuation is a convention, rather than an additional consequence of likelihood maximization.
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 , maximize
over , 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 is
In 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.
The risk function of an estimator under the stated quadratic loss is
The multivariate normal density is proportional, as a function of , to
so maximum likelihood estimation gives . Writing with ,
for every .
Apart from terms independent of , the Gaussian log-likelihood is
Differentiating with respect to gives
The unique zero, and hence the maximum-likelihood estimate, is
The same value minimizes the residual sum of squares , since maximizing the Gaussian likelihood for fixed is equivalent to minimizing this sum. It is therefore also the least-squares estimator.
The Gaussian likelihood is proportional to
so maximum likelihood estimation is equivalent to ordinary least squares. If and has rank , then is invertible and the normal equations give
If , then and . A least-squares minimizer always exists, but it is not unique: by rank-deficient ordinary least squares, the complete set is
an affine subspace of dimension . Thus there are uncountably infinitely many likelihood maximizers. In the generic full-row-rank case their dimension is .