Thread: Q4) h(x) = ax
View Single Post
  #13  
Old 02-03-2013, 01:50 AM
gah44 gah44 is offline
Invited Guest
 
Join Date: Jul 2012
Location: Seattle, WA
Posts: 153
Default Re: Q4) h(x) = ax

Quote:
Originally Posted by Axonymous View Post
I calculated what I think is the best approximation by minimizing the derivative over a of the integral of the sine function minus the line y=ax. When I compare this to the result of my simulation, there's a difference of about 30% between the two possible values for a.

Which problem is that for?

Like the lecture and the book, you consider a best fit for two points (least squares), and then average over all sets of two points (but not two of the same point). Then a in this case, or (a,b) in the book case, is/are the average over all such pairs of points.

I might believe that is 30% different from the one you mention.

You could also minimize the integral of the square of the sin()-ax.
Reply With Quote