For the normal linear model, the log-likelihood is
The full column rank of the design matrix makes invertible. Differentiating in gives the normal equations . With the minimized residual sum of squares substituted, differentiation in gives
These are the maximum-likelihood estimators almost surely; almost surely when and . The linear transformation of the multivariate normal distribution yields
Define the hat matrix . The fitted values are , the regression residuals are , and . The orthogonal projection has rank and annihilates . By Cochran's theorem,
Consequently , with bias . The unbiased estimator is
Its square root, the reported residual standard error, estimates ; the assertion of unbiasedness applies to the variance, not generally to its square root.
For the paper-strength analysis, let be the measured percentage and . Both normal linear models use independent errors of common variance . Their mean functions are for lm1, and for lm2, with separately fitted coefficients. The reported residual standard errors are and , respectively.
For lm1, the estimated conditional expectation at a new percentage is
The original data mean must be used for centering the new percentage; its numerical value is not supplied in the excerpt. Because , the two columns of this design matrix are orthogonal, and . Hence the coefficient standard errors in the output give
This estimates uncertainty in the mean. Predicting an individual future batch would additionally require the new-error variance, estimated by .
To compare the nested normal linear models, test against within the quadratic model. The Student t-test statistic is
Its two-sided p-value is . Equivalently is a partial F-test statistic with null distribution . Reject the linear restriction and prefer lm2 at the 5% level. Its residual spread is much smaller; the increase in the coefficient of determination from to supports the same conclusion, although the test is the relevant complexity-adjusted comparison.
For regression diagnostics, inspect regression residuals against fitted means and hardwood percentage for omitted curvature, a scale-location plot for nonconstant variance, and a quantile-quantile plot against the normal distribution for departures from the error assumption. Check unusual observations using regression leverage and Cook's distance, and examine residuals in collection or batch order if dependence is plausible. Independence and a common variance require substantive justification as well as these plots; a small p-value for a polynomial term does not itself check the error model.
The Jeffreys prior is proportional to , hence is . Its posterior is , giving
The interior case is used only when . Generally neither rule equals : the mean agrees only at ; the mode agrees at the endpoints and, in the interior, at . For the small experiments , all possible observations happen to be among these cases, so the whole mode rule then coincides with the maximum-likelihood estimator.
The uniform prior has , so the posterior is . Its mean and mode are
Thus the uniform-prior posterior mode is the maximum-likelihood estimator, including . The mean shrinks toward and equals the maximum-likelihood estimator only when .
Writing for the observed counts, independence of the Poisson distributions gives the log-likelihood
Its score function and negative second derivative are
Unless all vanish, , so the log-likelihood is strictly concave. Use Newton method, starting from a finite , with
Stop when the score function or the change in is small; a reduced step can ensure that the log-likelihood increases. Any finite zero of the score function is the unique maximum-likelihood estimator.
Existence needs a qualification. If the nonzero include both signs, decreases from to , so a finite root exists. If all nonzero are positive, a finite root exists exactly when ; otherwise the supremum is approached as . The corresponding condition for all negative is , with a supremum at otherwise. When all , the parameter is unidentifiable. These cases explain when the iterative algorithm actually has a finite estimate to find.
An estimator is consistent if, for every parameter value and every , .
For the proposed root criterion, fix . Convergence in probability at the two points gives
On this event the intermediate value theorem gives a zero between the two points. Since the zero is unique, it is . Therefore , without needing uniform convergence of .
For independent observations, the log-likelihood has derivative and negative second derivative . Its unique maximizer is . Apply the criterion to : the strong law of large numbers gives the limit , with the required signs. Hence the maximum-likelihood estimator is consistent.
In the bivariate model the log-likelihood, apart from constants, is
Minimizing each squared pair gives . Maximizing the resulting likelihood in the variance gives
Each difference is , independently of the others and independently of its unknown mean parameter. Thus the strong law of large numbers gives in probability, not . This is the Neyman-Scott incidental parameter problem: the number of nuisance means grows with the sample size, but each mean is estimated from only two observations. The usual fixed-dimensional likelihood consistency theory therefore does not apply. The corrected estimator is consistent.
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.
Let . Under the usual nondegenerate regression assumption , maximizing the normal likelihood is equivalent to minimizing the residual sum of squares. The normal equations and give the maximum-likelihood estimators
Write and . Then , , and the residual is . Independence of the errors gives
For each ,
Thus the three requested variables are pairwise uncorrelated.
They are linear functions of the jointly normal error vector. More strongly, the whole vector has a multivariate normal distribution, and its block covariances show that , and the residual vector are independent, by uncorrelated jointly normal variables are independent. Independence is preserved when applying a measurable function to the residual block. Hence
The residual projection is , of rank , so additionally . This is the orthogonal projection of a Gaussian vector interpretation of the same result. The printed design conditions alone allow ; then the fit is exact, the positive-variance likelihood has no finite maximizer, and the residual test in part (b) is undefined. The standard testing question therefore needs .
Put for the unrestricted fit. Under , the best slope is still because the design is centered. Orthogonality of the residuals to the constant vector gives
At either fitted mean, the maximum-likelihood estimator of variance is . The ratio used by the generalized likelihood-ratio test is consequently
Small likelihood ratios correspond to large . Under , part (a) gives independent and . Thus has the Student's t-distribution with degrees of freedom. The exact size-5% critical region is
where is the 97.5th percentile of that distribution. The denominator uses the unbiased residual variance estimate, not the likelihood variance denominator .
Under an alternative, the same statistic has the representation
The joint law of is parameter-free, and has disappeared. Therefore
where . This is also the noncentral t-distribution description of the power. As explained in part (a), an exact residual-based test requires .
The fitted values are , so the hat matrix is
It is symmetric, and
It fixes every vector in the column space of , and annihilates its orthogonal complement. Thus is the orthogonal projection onto that column space, has matrix rank and trace , and is the complementary orthogonal projection. Consequently
Since , the covariance matrix between the regression residual vector and the coefficient estimate is
These quantities have a joint normal distribution, so they are also independent, a stronger conclusion than zero covariance.
Now has mean zero. Using the expectation of a quadratic form,
Thus the maximum-likelihood estimator has
The unbiased alternative is
The orthogonal projection of a Gaussian vector also yields , explaining the residual degrees of freedom.
Assume the known covariance matrix is positive definite. The Gaussian likelihood, up to constants, is
Its gradient is . The negative Hessian matrix is positive definite because has full column rank. Thus the unique maximum-likelihood estimator is the generalized least squares estimator
It is unbiased, and multiplication of its linear coefficient matrix by gives
In fact . Equivalently, a whitening transformation premultiplies and by , after which ordinary least squares applies. There is no extra factor when is the complete known covariance; such a factor appears if only a shape matrix is known and .
For observation , the likelihood is proportional to . For , its logarithmic derivative is , vanishing uniquely at ; the logarithm is strictly concave. At or , monotonicity gives the boundary maximum. Thus the maximum-likelihood estimator is
A uniform prior multiplies this likelihood by a constant. The beta-integral normalization therefore gives the posterior distribution
In particular the posterior mean is not automatically the optimal estimator for the weighted loss in the next part.
The support restricts to , and . Within its feasible interior, the likelihood function is proportional to and is strictly increasing in , diverging as . Under the printed infinite-endpoint-density, or extended-likelihood convention, the maximum-likelihood estimator is
A density is defined only almost everywhere. If its value at the singular endpoint is reassigned a finite value, a finite maximum need not exist; the sample-minimum answer uses the stated endpoint/supremum convention.
Independence and on give
The error is positive almost surely, so the estimator is not an unbiased estimator. More explicitly its bias is
With , constrained likelihood maximization minimizes . On the unit sphere this is . By the Cauchy-Schwarz inequality its minimizer is
If , every unit vector is a maximum-likelihood estimator; a specified measurable tie-breaking choice makes an estimator defined everywhere. This event has probability zero in the nonsingular normal model, but the optimization still has that exceptional case.
The maximum-likelihood estimator is
Under the score-outer-product convention stated in the question,
This is the sample covariance matrix with divisor . The strong law of large numbers, applied entrywise, gives
Thus the empirical score outer-product information consistently estimates the per-observation Fisher information.
Put , , , , and form the weighted means
The two equations obtained from the score function are
Consequently the maximum-likelihood estimators are
The Hessian matrix of the log likelihood is
Its first leading principal minor is negative and its determinant is , so it is a negative-definite matrix. Thus the stationary point is the unique global maximum.
For , its probability generating function is
Thus and
The log-likelihood is, up to an additive constant,
so the maximum-likelihood estimator is . The central limit theorem gives
Under the null model, , which is a boundary point of the parameter space. Standard interior-point asymptotic normality of the maximum-likelihood estimator therefore need not apply.
Indeed, put . Under , . For the unconstrained estimator , the central limit theorem gives
Since , the continuous mapping theorem yields
This distribution has probability at zero and a continuous normal half-density on the negative half-line, so it is not normal.
Let . The log-likelihood is
with score function and second derivative . The unique maximum-likelihood estimator is therefore
For an exponential distribution of rate ,
The central limit theorem gives
Applying the delta method to , for which , yields the exponential-rate maximum-likelihood estimator limit
For observations , the likelihood function is
A maximum-likelihood estimator is any measurable choice
For one observation in a regular scalar model, the score function is
and the Fisher information is
where the second identity requires the usual differentiation-under-the-integral regularity. For independent observations, Tensorization of Fisher information gives .