Quote:
Originally Posted by sayan751
1. Please let me know whether I am proceeding in the right direction or not.
2. When I am trying to repeat this process with a polynomial model instead of linear model, my calculated bias for the polynomial model varies in great margin, even if the sample data points doesn't change. For polynomial as well, I took the mean of the coefficients, but still my answer (both g bar and bias) varies greatly with each run. What I am missing here?

1. Your approach is correct. While sampling from a fixed 1000point set is not the same as sampling from the whole domain, it should be close enough.
2. Not sure if this is the reason, but if you are still using a 2point training set, a polynomial model will have too many parameters, leading to nonunique solutions that could vary wildly.