LFD Book Forum  

Go Back   LFD Book Forum > Course Discussions > Online LFD course > Homework 4

Reply
 
Thread Tools Display Modes
  #1  
Old 08-04-2012, 10:37 AM
DeanS DeanS is offline
Member
 
Join Date: Jul 2012
Posts: 16
Default Hw 4, #7

I got my Matlab program to give what I think are the correct bias and var for hypos a - c; at least a and c agreed with the book. I am not sure, however, if it ran correctly on d and e since there were large differences for both bias and var for different runs even at 10000 trials. It seems that these were very unstable. I'm wondering if there are roundoff errors.

Thanks.
Reply With Quote
  #2  
Old 08-04-2012, 04:37 PM
MCN12 MCN12 is offline
Junior Member
 
Join Date: Jul 2012
Posts: 3
Default Re: Hw 4, #7

I'm seeing the same thing in my Matlab program but it makes sense to me. In both cases you're fitting a parabola to two points as an approximation of a sine wave (d uses a fixed vertex, e has a variable vertex). Think about what this means for g_bar of d and e? Given this effect on g_bar, what happens to bais and variance?
Reply With Quote
  #3  
Old 08-04-2012, 07:39 PM
TonySuarez TonySuarez is offline
Member
 
Join Date: Jul 2012
Location: Lisboa, Portugal
Posts: 35
Default Re: Hw 4, #7

I ran the ax^2 model ([d] hypothesis) with N=2E6 points a few times and got a quite stable bias value (even with smaller N values) but indeed, as you mention, a "somewhat" wild variance value is seen in several runs, that is, it is not as "stable" as the bias.

Last edited by TonySuarez; 08-04-2012 at 09:20 PM. Reason: clarification and improvement of the text
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 03:17 AM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
The contents of this forum are to be used ONLY by readers of the Learning From Data book by Yaser S. Abu-Mostafa, Malik Magdon-Ismail, and Hsuan-Tien Lin, and participants in the Learning From Data MOOC by Yaser S. Abu-Mostafa. No part of these contents is to be communicated or made accessible to ANY other person or entity.