Solved – Bayes decision boundary of Figure 2.5 in Elements of Statistical Learning

bayesiancomputational-statisticsdecision-theoryk nearest neighbourmachine learning

When I read "Elements of Statistical Learning", I met some difficulty in calculating the Bayes decision boundary of Figure 2.5. In the package ElemStatLearn, it already calculated the probability at each point and used contours to draw the boundary. Can any one tell me how to calculate the probability?

In a traditional Bayes decision problem, the mixture distributions are usually normal distributions, but in this example, it uses two steps to generate the samples, so I have some difficulty in calculating the distribution.

Best Answer

I asked the authors this question, and apparently they no longer are in possession of the code that created the data. So there is no real way to reconstruct the Bayes rule for this particular data set. Otherwise, it would be based on the ratio of the densities that would have been known for the Gaussian mixture distributions that the authors used to create the two classes.