Problem 4.16 (Maximum likelihood) Assume that we are given an i.i.d. data set from the model

where the function is supposed to be known.

  1. Prove that .

  2. Write , and consider the log-likelihood function

where $p_\theta$ is the joint density over $(X,Y)$ and
$\theta := (\mu_X, \mu_{N_Y}, \sigma_X^2, \sigma_{N_Y}^2)$. Prove
that for some $c_1, c_2 \in \mathbb{R}$ with $c_2 > 0$

where estimates the variance.

Equation (4.20) motivates the comparison of expressions (4.18) and (4.19):

with and the regression residuals. The main difference is that in this exercise, we have used the conditional mean and not the outcome of the regression method.

Solution a) As stated this needs : by linearity of conditional expectation,

Why? Let us use Part A of cond_exp.pdf. Set . This is a regular conditional distribution of given : (K1), (K2) are immediate, and (K3) holds since for Borel

Hence we can write

And the second equals the unconditional mean because , because of lemma 2 (note that the independence is used in second to last equation in the equation chain). So iff . This is a harmless normalization: replacing by with gives the identical joint distribution, so only the sum — that is, the regression function — is identifiable.

Solution b) The joint density factorizes as with and .

Why does the conditional distribution look like that? Left as a gap.

Writing ,

Note the terms are not constant in ; without them the -derivatives would be strictly positive and have no critical point. Note also that must stay free: has four components, and maximizing over the slice is a different (smaller) number in general.

The two blocks have the same form, so it suffices to maximize one, say over . First-order conditions:

(This critical point is the maximum, because the density funciton is smooth and can be checked by having the Hessian minors’ determinants have signs -1, 1. Then we can check that it is a global min) Substituting back, the quadratic term collapses to a constant:

so

The residual block is identical with in place of : , — the free is exactly what centers the residuals, producing the centered rather than : the -condition is ; with free, and this is ; with fixed at it would be and (4.20) would fail as stated. Adding and factoring out :

which is (4.20) with and . The coefficient 1 on each log term pins uniquely — cannot be rescaled to, say, (why?). Since do not depend on the direction of the model, comparing causal directions by maximum likelihood reduces to comparing with its flipped counterpart, i.e. the scores (4.18)/(4.19).