Model1 is the simple linear regression
Model2 is a random-intercept linear mixed model
with the random intercepts and errors mutually independent.
Repeated measurements from one person can share persistent unobserved spending tendencies, violating model1's independent-error assumption and shifting that person's baseline. Model2 represents this clustered data through a common random intercept , which induces within-person covariance for .
The residual deviance of a Gaussian GLM is its residual sum of squares, . Thus the empirical training error for squared-error loss is
If training error is defined as the unnormalized total loss, its value is .
The first column of the model matrix is the all-ones intercept column. Hence .
The second cross-product entry is . Regressing earned on the ten person indicators without an intercept makes the mean of that person's ten earned values. Therefore
Let , let
and recover the sufficient cross-products from the model1 normal equations by setting and . Then
is the total squared residual about the fixed line. The squared sum of the ten residuals within each person, summed across people, is
For one person's ten observations, the marginal covariance matrix is . The matrix determinant lemma and Sherman–Morrison formula therefore give, up to an additive constant, twice the negative marginal log-likelihood
Because the model was fitted with REML = FALSE, it minimizes this ordinary marginal maximum-likelihood objective. Thus belongs to the stated argmin over and .

Articles by others on the same topic (0)

There are currently no matching articles.