Question: PLEASE DO NOT USE CHATGPT / AI ! ( I ' ll know if you do ) Consider a linear regression problem with weights. Specifically,

PLEASE DO NOT USE CHATGPT/AI!(I'll know if you do)
Consider a linear regression problem with weights. Specifically, given training data
with feature x1,dots,xNinRd and outcome y1,dots,yNinR suppose we want to find winRd that
minimizes
L(w):=12i=1Nri(wTTxi-yt)2
where r1,dots,rN>0 are positive weights. Note that we worked out the unweighted setting
for all {:i) in the class. In this problem, we will generalize some of those ideas to the
weighted setting where the weight ri can be different for each of the training examples. (Hint:
check your answer when ri=1 for all i)
(a) Show that L(w)=(xw-Y)TTR(xw-Y) for an appropriate definition of x,Y and R
with respect to xi,yi,ri for i=1,dots,N.
(b) Recall that if all ri's are 1, we showed that L(w*)=minwL(w) when w*=(xTTx)-1xTTy.
By computing the derivative gradwL(w) and setting that to zero, generalize the above result
to the weighted setting and give the new value of w* that minimizes L(w) in closed form
as a function of x,R, and Y.
(c) Suppose we have a training set (xi,yi)i=1,dots,N where xi are fixed and the distribution of yi
is
In other words, yi has mean wTTxi and variance i2. Show that finding the maximum
likelihood estimate of w reduces to solving a weighted linear regression problem. State
clearly what ri's are in terms of i's.
PLEASE DO NOT USE CHATGPT / AI ! ( I ' ll know if

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!