Quote:
Originally Posted by nellie
I correctly approximated the P(f(x) != g(x)) by generating a lot of sample points. However, how do you calculate the probability exactly? Thank you in advance for your help!

You can compute the total area of misclassification divided by 4 (the total area of the input space). The area of misclassifcation will be that of points for which
and
give different values. In one of the theory lectures, there will be a figure depicting this area. It is easier to compute it numerically as you did.