Homepage › Solution manuals › Kevin P. Murphy › Machine Learning: a Probabilistic Perspective › Exercise 7.2 - Multi-output linear regression
Exercise 7.2 - Multi-output linear regression
Answers
For multi-output linear regression, if the outputs are independent, then for each output dimension subscripted by , we have:
then:
The independence implies:
Taking its logarithm and saving terms dependent on , we have:
Interchanging the order of summation helps to decompose the loss into:
where each:
is but the MLE loss for a 1D linear regression. Thus the columns of can be estimated independently by:
where is the design matrix and is a columm matrix with length that embeds the -th component of the output. This is a little different from the symbols from the textbook but simple -reductions would eliminate such difference. Equation (7.90) is incorrect by missing one design matrix.
As a compact way of writing , we would have:
where is a matrix.
For the case in this exercise, we have , , :
Thus:
One can observe that two columns for are identical, which is obvious by examing the two columns from .