Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Solution is given below can you please explain proper solution why we took. transpose Suppose we want to estimate localized linear regression by weighting the

image text in transcribed

Solution is given below can you please explain proper solution why we took. transpose

image text in transcribed

Suppose we want to estimate localized linear regression by weighting the contribution of the data points by their distance to the query point x(q), i.e. using the cost E(x(q))=21i=1m(y(i)h(x(i)))2(x(i)x(q))2 where (x(i)x(q))2=(w(i))2 is the inverse Euclidean distance between the training point x(i) and query (test) point x(q). Derive the modified normal equations for the above cost function E(x(q)). Show all steps. Hint: first, rewrite the cost function in matrix/vector notation, using a diagonal matrix to represent the weights w(i). E(x(i))=21i=1m(y(i)h(x(i))2(x(i))2(x(i)x(i))2(x(i)x(a))2=(w(i))2=21i=1m(y(i)h(x(i)))2((i))2 Rewriting the cost function in Matrix form =21i=1m(xyi)2=21(xy)(xy)=21(xxyyx+yy)((i))2 Taking derivatue ddf(x)(a)=21(xT(i)x(i)(i)+xT(i)x(i)2xT(i)y(i))=xT(i)x(i)(i)xT(i)y(i)=0xT(i)x(i)(i)=xT(i)y(i)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

4. Support and enliven your speech with effective research

Answered: 1 week ago

Question

3. Choose an appropriate topic and develop it

Answered: 1 week ago