Coursera lecture summary Cost function We can measure the accuracy of our hypothesis fufnction by using a cost functon. This takes an acerage difference (actually a fancier version of an average) of all the results of the hypothesis with inputs from x's and the actual output y's To break it apart, it is 1/2x where x is the mean of the squares of h@(Xi)-yi, or the difference between the predicted..