Bayesian model evidence Created 2026-09-24 Updated 2026-10-18
The Bayesian model evidence is the prior predictive distribution evaluated at the data . For a statistical model with a normalized prior density , its marginal likelihood is
This is an expected value of the likelihood function under the prior distribution; for discrete statistical parameters, replace the integral by a sum. For continuous observations, is a probability density function value with respect to a specified data reference measure, rather than a probability of one exact observation. Comparisons must use the same data and reference measure. The same normalizes the within-model Bayesian posterior and supplies the between-model comparison in a Bayes factor.[ref]
A normalized prior distribution makes the Bayesian model evidence an average, so it cannot exceed the largest likelihood function value on its support. A broad prior distribution can assign little mass to values that predict the data well, even when one value gives an excellent fit. The worked uniform-alternative binomial Bayes factor below makes the difference between averaging and maximum likelihood estimation explicit.
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]
Kari Lock Morgan 2026-11-05
Kari Lock Morgan studies the design of randomized experiments, especially how to improve baseline covariate balance. Her work on restricted randomization specifies acceptable balance before an experiment and redraws allocations that fail that criterion. Inference must account for the resulting assignment procedure.[ref]
With Fan Li and Alan M. Zaslavsky, she studied propensity score weighting for observational studies. For a logistic propensity score fitted by maximum likelihood estimation with an intercept, their overlap weights exactly balance weighted means of the included covariates under the stated fitting conditions.[ref]
Laplace location and scale maximum likelihood Created 2026-10-18 Updated 2026-10-25
Suppose , , are independent and identically distributed with Laplace distribution , where . For realized values , the likelihood function and log-likelihood function are
For fixed , maximum likelihood estimation of the location therefore minimizes the sum of absolute losses. This connects the Laplace distribution to robust statistics: each observation contributes a cost growing linearly with its distance, whereas squared-error loss grows quadratically.
Why does a sample median minimize ? Between successive order statistics, moving a little to the right increases each distance to a value on the left and decreases each distance to a value on the right. Hence the slope is the number on the left minus the number on the right. It changes from negative to positive at the middle. More precisely, if , all minimizing locations are
For an even sample size, the objective is flat throughout the interval between the two central order statistics. The midpoint convention for the sample median selects one solution; it does not prove uniqueness. [ref] This is the finite-sample counterpart of median minimizes expected absolute loss.
If , maximizing over gives
The derivative is positive below this value and negative above it. Moreover the maximized likelihood function is proportional to wherever , so the same minimizing locations give the joint maximum-likelihood estimates. [ref] The scale estimate divides by ; this formula is not an assertion that it is an unbiased estimator.
The boundary case matters: if all observations equal , choose . Then and as . There is no finite joint maximum-likelihood estimate in the parameter space . In particular, this always occurs for . Writing does not produce an admissible Laplace distribution.
Laplace regression Created 2026-09-24 Updated 2026-10-18
For linear regression with fixed predictor vectors , assume conditionally independent responses with a common scale :
Each conditional median and mean is . The log-likelihood function is , so maximum likelihood estimation minimizes the sum of absolute regression residuals:
This is least absolute deviations. With only an intercept, it reduces to the Laplace location and scale maximum likelihood problem, so a sample median is a fitted intercept. Provided the minimum , the scale estimate is ; the conditional standard deviation is . If the scale is denoted instead of , the conditional standard deviation is .
Minimizing a sum of absolute losses does not automatically give a unique coefficient vector. Even an intercept-only fit to an even sample size can have an interval of solutions, and redundant predictor columns can introduce further nonuniqueness. If a fit makes every regression residual zero, the joint likelihood function is unbounded as , so there is no finite joint maximum-likelihood estimate with positive scale.
The linear growth of absolute loss limits sensitivity to an extreme response at fixed predictors compared with squared-error loss. It does not protect against every outlier: an extreme predictor can have large regression leverage. The numerical example above changes a response in an intercept-only problem, and makes no general claim of immunity to such predictor changes.
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 is
The 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.
Neural language model 2026-11-05
A neural language model uses a neural network to assign a probability distribution to language sequences. An autoregressive model factorizes the probability of words as
Training by maximum likelihood estimation rewards the observed next words; generation repeatedly samples from the conditional distribution. If a two-word sequence has first-word probability and conditional second-word probability , its joint probability is .
Yoshua Bengio and coauthors' 2003 model jointly learned a distributed representation of words and a neural probability predictor. Sharing representation parameters allowed similar contexts to inform one another, rather than treating every observed word sequence as an unrelated event.[ref]
Nonregular identification at a flat mean map occurs when different parameter values give different probability distributions, yet the first derivative of the observable mean vanishes at a parameter of interest. Identifiability is a property of the entire parameter-to-distribution map; a first-order sensitivity calculation can miss it.
Consider an original statistical model with independent observations
The cubic mean map is a strictly increasing function, so equality of the normal distributions implies equality of . The model is globally identifiable, including at . Nevertheless, the single-observation score function and Fisher information are
Thus does not imply nonidentifiability. The rank is zero at the origin and one at every nonzero nearby point. This is precisely why a regular-point assumption matters: Rothenberg's local identification criterion assumes constant information-matrix rank in a neighborhood.[ref]
Maximum likelihood estimation gives , using the real cube root. At the true value zero, write with a standard normal random variable . Then
This is an exact sampling distribution identity for every , not merely a convergence in distribution statement. The estimation error has scale and a nonnormal shape. At a fixed nonzero , the usual delta method instead gives asymptotic variance ; that approximation cannot be extended uniformly through zero.
An exact confidence interval through a cubic mean map follows by applying the strictly increasing function to both endpoints of the ordinary known-variance confidence interval for the mean:
Here is the quantile function of the standard normal distribution. The transformed interval has exact coverage for every . When and the observed sample mean is zero, the 95% interval is approximately . Multiplying by 64 halves its width at that observed mean. A first-order interval based on dividing by the zero mean-map derivative would fail instead.
Figure 1.
Cubic mean map and exact confidence-interval scaling at an observed sample mean of zero; original normal-observation model
. Details.
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.
Parameter estimation 2026-11-05
Parameter estimation uses observations to infer the unknown parameters of a mathematical model. The result depends on both the observations and the model: one must specify which quantities are unknown, how observations relate to them, and how discrepancies are assessed. Least squares and maximum likelihood estimation provide two common criteria.[ref]
For an explicit example, suppose , where the same unknown level applies to all observations. Minimizing
gives
Since , this is the unique minimum for . Observations give the sample mean , with residuals . Independent normal distributions with a common variance also make this estimate the maximum likelihood estimation solution for the level.
An estimate is not the same as a known exact value. Under the independent equal-variance model, its standard error is estimated by , where is the sample variance. For the three illustrative observations, and the estimated standard error is . Correlated errors or a common measurement offset require different accounting; collecting more identically biased readings does not remove the offset.
Identifiability is a separate prerequisite. If a model depends only on , data of that form can estimate their sum but cannot uniquely separate from . Pairs and give the same sum. More repeated observations of that same relationship reduce uncertainty about the sum without identifying both parameters. State what the observations can determine before reporting numerical estimates.
Atomic-resolution cryo-electron microscopy became possible by retaining high-frequency structural information through the whole experiment: specimen preparation, electron optics, detection and computation. The decisive advances improved the information obtained per damaging electron and made it possible to align and average many weak images without averaging away structural differences. A short de Broglie wavelength had always been available; the practical limit was preserving and extracting the information carried by those electrons.
First, vitrification preserves hydrated biological material in a thin noncrystalline layer of water. Rapid freezing avoids the strong periodic scattering and disruption associated with ordinary ice crystals, while cryogenic imaging slows some damage processes. The specimen still suffers radiation damage, and a thicker layer adds background and multiple scattering. Reproducible thin ice, clean grids, stable supports and reduced mechanical drift are therefore prerequisites. The specimen must remain structurally intact and occupy enough orientations for a three-dimensional reconstruction. Adsorption at the air–water interface, preferred orientation and variable thickness can defeat an otherwise excellent microscope. Sample optimization should include independent checks of assembly integrity and activity where feasible.
Second, direct electron detection greatly improved the useful signal relative to earlier indirect cameras. In a counting detector, individual electron events can be localized and recorded without treating the deposited signal merely as a continuous intensity. detective quantum efficiency measures how efficiently the detector preserves the input signal-to-noise ratio as a function of spatial frequency. High efficiency matters particularly because the permissible exposure is limited. At excessive event rates, overlapping events cause coincidence losses, so faster readout permits useful counting at practical collection rates. A nominally smaller camera pixel alone cannot replace a detector that preserves high-frequency information.
Fast detectors also turn an exposure into a sequence of movie frames. Aligning those frames corrects specimen drift and beam-induced movement; local correction handles different movements across the imaged area. Uncorrected movement preferentially smears fine features. dose weighting then combines early and later frames according to the information they retain: later exposure can help low-frequency alignment even after fine structural details have been damaged. [ref] exemplifies this computational use of detector movies. Frame alignment cannot restore chemistry already destroyed by radiation damage, and extremely noisy individual frames require constrained motion estimates.
Third, stable and coherent electron optics increase contrast transfer at the finest spacings. A narrow source energy spread reduces chromatic aberration, because electrons with different energies otherwise focus differently. A cold field emission gun provides one route; a monochromator provides another. An energy filter removes many inelastically scattered electrons that otherwise contribute background. This does not remove all damage or every unwanted scattering event. Improved mechanical and electrical stability, reproducible lens settings, accurate coma-free alignment and calibrated magnification make the information more consistent across images.
The 2020 apoferritin reconstructions illustrate the final hardware step. One study combined a cold source, improved energy filtering and a fast direct camera with advanced correction to obtain a map at about . Another used an instrument with monochromation and aberration correction to reach about .[ref][ref] The two instruments demonstrate complementary ways of preserving coherent high-frequency information. These unusually rigid, symmetric particles are favorable test specimens; their resolutions do not imply that a flexible cellular assembly will reach the same limit.
Fourth, modern reconstruction treats the noisy images statistically. single-particle analysis estimates how many randomly oriented projections correspond to a common three-dimensional structure. Bayesian inference and maximum likelihood estimation permit uncertainty in image orientations and class membership to be handled rather than committing every weak image to a single exact alignment from the beginning. [ref] provides a concrete implementation. Two-dimensional classes reject many damaged or overlapping particles; three-dimensional classification can separate different compositions or conformations. Appropriate symmetry increases the effective information, but an incorrect symmetry assumption can erase a real asymmetric feature.
Refinement increasingly corrects individual particle movements and optical imperfections. Per-particle defocus estimates accommodate height differences in ice. Beam tilt, higher-order aberrations and anisotropic magnification need correction when their accumulated phase errors become important. The contrast transfer function changes the magnitude and sign of Fourier components; combining images recorded with different defocus values recovers information suppressed at particular transfer-function zeros. Near atomic spacings, accounting for Ewald sphere curvature can further improve reconstruction. Such corrections require adequate signal and calibration; simply adding more adjustable parameters to weak data risks fitting noise.
Automation and fast computation make these methods practical. Stable automated acquisition and beam-image-shift strategies collect large image sets; parallel computation permits repeated alignment, classification and refinement. More particles improve the average only if they carry consistent signal. Under an ideal independent-noise model, the amplitude signal-to-noise ratio improves in proportion to ; a systematic alignment error or persistent structural heterogeneity will not disappear by this scaling. For a target spacing and real-space pixel size , Nyquist–Shannon sampling theorem requires . For this gives per pixel, a necessary sampling condition rather than a guarantee of such resolution.
Validation is part of the technological achievement. Split particles into independent halves and refine them independently; calculate their Fourier shell correlation, commonly reporting the spacing at the criterion for independently refined half-maps. Shared high-resolution references, poorly handled masks or correlated data can inflate agreement, so independence and mask correction matter. Inspect directional coverage and local resolution, compare models against held-out map information, and check stereochemistry. The global resolution is a summary: flexible loops, bound lipids and minor components may be much worse than the ordered core.
Finally, distinguish an atomistic model from atomically resolved data. At ordinary near-atomic resolution, side chains and backbone features can support building an atomic model while individual neighboring chemical atoms are not all separated. At true atomic resolution, many individual atomic peaks become distinguishable and some hydrogen contributions may be detectable under favorable conditions. cryo-electron microscopy reconstructs scattering electrostatic potential, so interpretation of very fine features is not identical to interpreting X-ray crystallography electron-density maps. The breakthrough was the combined improvement of specimen quality, counting movies, optical coherence and statistical reconstruction, with independent validation showing that the fine detail was supported by the data.
A point mutation changes an individual nucleotide position, introducing heritable sequence variation. Replication errors and spontaneous chemical damage are possible origins; mutation does not occur because a future change would be useful. Natural selection changes the frequencies of variants through their effects on reproduction, while genetic drift causes random frequency changes, especially in small populations. A sequence difference fixed between lineages is a substitution; many new mutations disappear and never become substitutions. Under a simple neutral diploid model, new neutral variants per generation times fixation probability gives substitution rate , motivating a molecular clock for suitable neutral sites.
To infer a phylogenetic tree, compare homologous, preferably orthologous sequences and align corresponding sites. A nucleotide substitution model converts observed sequence differences into estimated evolutionary branch lengths, allowing for multiple changes at one site. For example, in the equal-frequency, equal-rate Jukes-Cantor model, a site changes to any alternative with rate , where is its total substitution rate. The probability of matching its initial state after elapsed time is . Thus for an evolutionary separation with expected substitutions per site , the observed mismatch fraction is and
For small , ; near saturation , large evolutionary distances become difficult to distinguish. The correction does not rescue fully saturated data. Real analyses may allow unequal nucleotide frequencies, transition biases and variation of rates between sites.
Tree topology and branch lengths can be estimated using maximum likelihood estimation or Bayesian phylogenetic inference, with support assessed from resampling or posterior uncertainty. A gene tree need not equal the species tree, because incomplete lineage sorting, genetic recombination and horizontal gene transfer can produce different histories. Rooting with an appropriate outgroup establishes ancestral direction; pairwise differences alone do not supply a root.
Branch lengths measured in substitutions per site are not yet calendar times. Under a strict molecular clock with rate per site per year, a branch of duration has length ; two contemporaneously sampled descendants separated at time have total path length , hence . Calibration comes from independently dated constraints such as fossil calibration, geological information or sufficiently informative sampling dates. A dated common ancestor is not automatically identical in age to the earliest observed fossil. A relaxed molecular clock permits branch-specific rates while imposing a statistical model on them.
Without an external temporal calibration or an independently known rate, multiplying all times by a constant and dividing all rates by that constant leaves expected sequence divergence unchanged. Absolute dates are therefore unidentifiable from sequence divergence alone. A useful time-calibrated phylogenetic tree reports uncertainty from sequence sampling, substitution models, rate variation, topology and calibration bounds, rather than displaying an unjustified exact date for each ancestor.
Treat the forty-person convenience sample as a pilot, then develop and validate the measure in its intended population. Start by defining whose organizational ability the questionnaire measures and who answers it: lecturer self-reports and student ratings are different measurements. Specify the relevant activities and context. Discuss the candidate items with lecturers and appropriate users, seek expert review, and use cognitive interviewing to find ambiguous wording, double-barreled items and irrelevant content. This establishes content validity rather than assuming that correlations alone identify the intended construct.
Recruit a larger, better-targeted sample covering relevant roles, disciplines and institutions. A convenience sample of adults who cannot meaningfully judge lecturers' organization is not made suitable simply by increasing its size. Plan the sample size using plausible factor loadings, communalities, number of dimensions and indicators, response distributions, missingness and required estimation stability, preferably with simulation. Forty observations for sixteen items offer limited grounds for a stable generalizable structure; no universal participants-per-item cutoff makes this analysis automatically impossible or automatically adequate. If students rate the same lecturers, recognize that the ratings are clustered rather than independent lecturer-level observations.
Check missing responses, item distributions, scoring direction and correlations, identifying redundant or poorly functioning items. If the underlying dimensions are not already well specified, use exploratory factor analysis to model shared variation among items. Principal component analysis instead forms combinations explaining total observed variation; it is not the same latent measurement model. Choose a suitable common-factor estimator, such as principal axis factoring, or maximum likelihood estimation when its assumptions are credible. For ordered response categories, consider an ordinal estimator and polychoric correlations, while checking whether category counts support their estimation. Do not treat those correlations as assumption-free.[ref]
Choose the number of factors using parallel analysis, the scree plot, substantive interpretation and the quality of the resulting model, rather than an eigenvalue-one rule alone. Parallel analysis compares the observed eigenvalues with a reference generated from uncorrelated data of comparable dimensions; its implementation must match the chosen correlation and extraction approach.[ref] Use oblique factor rotation if organizational dimensions can plausibly correlate. Inspect factor loadings, cross-loadings, communalities, factor correlations and model discrepancies, and retain enough substantively relevant indicators for each dimension. Do not repeatedly delete items solely to improve numerical fit at the expense of coverage.
After developing the structure, test it using confirmatory factor analysis in an independently recruited validation sample, with the proposed structure fixed beforehand. Splitting the existing forty participants would not solve the shortage of information. Evaluate model fit and uncertainty, measurement reliability, test-retest reliability where stability is intended, and evidence for construct validity using related, distinct and relevant behavioral measures. Check measurement invariance before comparing scores across groups. Report alternative plausible models, all item decisions, sampling limitations and the distinction between an initial exploratory instrument and an independently validated measure.
The deviance entries are for these fitted models. The completed values are
The likelihood-ratio test compares a model with one age coefficient against its restriction . Its small p-value, approximately , supports a positive age association under the assumed Gaussian linear mixed model. Refitting with maximum likelihood estimation is essential here: restricted maximum likelihood values from models with different fixed-effect design matrices cannot be compared by this likelihood-ratio test.
Under the independent-site Jukes-Cantor model, the number of differences from a known ancestor has a binomial distribution with mismatch probability
For an interior estimate, maximum likelihood estimation gives . Equating this to the model probability and rearranging gives
This is finite for . At , the estimate tends to infinity: the endpoint distribution has reached its limiting saturation and no finite rate can reproduce it exactly. For , the displayed logarithm is not defined as a real number; within this model the constrained likelihood is maximized only as . For the boundary estimate is zero. The corresponding estimate of the actual event mutation rate is .
Put , . The joint normal distribution density can be written as
The 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 maximizer
This 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.
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 therefore
For every college the mean table has odds ratio
Thus 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 counts
Indeed 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 is
with 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.
For the three-coordinate state realization of an ARMA(1,1) process, the observation row and transition matrix are
The 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 covariance
Project through the observation row to get
The 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 written
Thus 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 , giving
Since , the cross-covariance with is zero and that with is . Therefore
Direct 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 gives
Taking minus twice its logarithm shows that maximum likelihood estimation is equivalent to minimizing
with 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 . Hence
This 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, put
Then its negative twice log-likelihood is
For fixed , . Writing
the exact interior score equation is
The stationary initial contribution is order one for a fixed interior parameter, while is order . Discarding this lower-order contribution gives
Conditioning 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 .
For independent observations from a normal distribution with unknown mean and positive variance, the maximum likelihood estimation of the mean gives
Indeed , which is minimized at . The likelihood is
For 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 therefore
The 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.
For this two-sided test at , the cutoff is the percentile of , namely . The data give
Since , do not reject the manufacturer's mean-hardness claim at the level. This is a failure to reject, not proof that the mean equals .
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-likelihood
Let and . The centered sum is zero, and expansion therefore gives
For 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. Then
If are its eigenvalues, the variable part is . The scalar inequality , with equality only at , shows that this is minimized uniquely at , or . Thus
The 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 .