Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Suppose that we are given three points in the (x,y) plane, with the following coordinates: x1=1,x2=0,x3=1,y1=2,y2=0,y3=1. We wish to find a straight line approximation y^=w0+w1x

image text in transcribed

image text in transcribed

Suppose that we are given three points in the (x,y) plane, with the following coordinates: x1=1,x2=0,x3=1,y1=2,y2=0,y3=1. We wish to find a straight line approximation y^=w0+w1x that minimizes Ein(w0,w1)=31i=13(yiy^i)2, where y^i=w0+w1xi is the estimate of yi. (a) Rewrite the above problem specifications based on xi to get the problem into the standard form of a least squares problem: w=argminwR231Xwy2. Specifically, specify the data matrix X and the target vector y, where w=(w0,w1)T. (b) Find the least squares solution w=(w0,w1) in part (a). Sketch the line y^=w0+w1x on the following plot. (c) Suppose we decide to fit a quadratic function: y^=w0+w1x+w2x2. What data-matrix X should you now use in the least squares formulation? What will be the error Ein(w) attained by the optimal solution

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

Advanced Oracle Solaris 11 System Administration

Authors: Bill Calkins

1st Edition

0133007170, 9780133007176

More Books

Students also viewed these Databases questions