Re: bias and variance  definition of g bar
I'm having doubts about the variance value in example 2.8 since it indicates that the root mean square deviation of the test data from the sinusoid line is 1.3= sqrt(1.69). So the magnitude of the average (a*x+b) difference from (a_mean*x+b_mean) evaluated at a given point on the sinusoid is bigger than the root mean square value (.7071) of the sinusoid that generated the data point in the first place? I'm inclined to doubt that.
The mean square deviation between the slope of each generated line and a_mean is larger than 1.69 so at this point I have no idea where that variance number came from. 
Re: bias and variance  definition of g bar
Quote:

Re: bias and variance  definition of g bar
Yes, I can see that on the charts for example 2.8 but those outlying points do not exert an effect (at a given x) for the averaged g(D)[x] calculation I am using. So I am wrong on both counts!
A careful rereading of page 63 has led me to try averaging over the calculated data set g's at an arbitrary (generic?) point x and using that to calculate the variance of g(D)[x]. This seems to be a step in the right direction since the calculated variance is now a function of that arbitrary x point and has a minimum around x=0 just like the chart in the example 2.8 but based on the values at the extremes and in the middle I can't see how my average variance over the domain [1,1] would be as low as 1.69. We shall see. Thanks so much for your helpful comments, they are really appreciated and this is a great class even if I am a little dense in absorbing some of the material. Have a great day. 
Re: bias and variance  definition of g bar
Finally got it. Thanks to magdon for confirming one part of my calculation, so that I did not need to waste time poring over it. Thanks also to yaser for a tip, in another thread, that helped me a lot. It turns out that I was incorrectly reusing the sample dataset to calculate (via simulation) the variance. Instead, I needed to generate a fresh dataset for that.
It's funny how sometimes making mistakes at first leads to a much more solid understanding later! 
Re: bias and variance  definition of g bar
I've got it too! Repeatedly evaluate var[ g(D)[x] ] over the entire data set with x ranging from 1 to 1 and average those values to get 1.69 ! ! ! Feeling a sense of real accomplishment here.

All times are GMT 7. The time now is 01:38 PM. 
Powered by vBulletin® Version 3.8.3
Copyright ©2000  2022, Jelsoft Enterprises Ltd.
The contents of this forum are to be used ONLY by readers of the Learning From Data book by Yaser S. AbuMostafa, Malik MagdonIsmail, and HsuanTien Lin, and participants in the Learning From Data MOOC by Yaser S. AbuMostafa. No part of these contents is to be communicated or made accessible to ANY other person or entity.