Quote:
Originally Posted by pranav_s
Now, since I have a 'g' on which points do I apply it and then calculate Pr[f!=g] exactly?

On outofsample points, i.e., fresh points generated according to the same (uniform) distribution. You can generate as many of these points as you want to get better accuracy. If you want an exact answer, calculate the area where
and divide by the total area (which is 4).