Calculating The "Average" Function Of Xn
Page 63 seems to be saying this:
For each data set, evaluate the hypothesis for that data and save it somewhere. When all of the data has been processed take each data point and calculate the "average" value of that data point evaluated against each of the previously generated hypotheses. That average value can be used to calculate the variance of the data set. So this is just a straightforward averaging calculation, is it not? I'm having some difficulty duplicating the variance values shown in the examples from the book and suspect that this calculation may be the source of the problem. Thanks for your attention. 
Re: Calculating The "Average" Function Of Xn
Thanks for your quick reply. I have managed to duplicate the variance result for hypothesis zero of example 2.8. The error had nothing to do with averaging. I don't use a generic x but simply calculate the average of all of the g's generated by the test data sets. This averaged g is evaluated at each data point where comparison with g(x) is required. It seems to work for the constant value case.
The book says that the average g is calculated for "a particular x" and is interpreted as the expected value of the random variable gbar(X). Is this particular x value the "generic" value? 
Re: Calculating The "Average" Function Of Xn
Quote:

All times are GMT 7. The time now is 08:19 PM. 
Powered by vBulletin® Version 3.8.3
Copyright ©2000  2021, 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.