Re: Calculating Average Hypothesis
I wanted to validate that what I have understood is correct.
1. I calculated the value of "a" for which the which minimizes the least square for two points ( x, sin(pi*x) ), x being between 1 and 1.
2. Repeated the above for 100 times and hence got 100 values of "a"
3. Then I chose a fresh point x3 between [1, 1] and calculated the value of y3 = a*x3 for all 100 points
4. Calculated average value of y3 for 100 points, say y_avg.
5. Calculated "a" for avg hypothesis as : y_avg/x3
Is my method of calculating avg hypothesis correct ? Iam not very confident of the answer I am getting
