Two classes have densities and with equal priors. Show that the Bayes error is , where and is the standard normal cdf. What is its value for , , , and how does it compare with the Bhattacharyya bound?
Supervised learning, Bayes error
Level L4 Advanced. Length Long. Nature Mat Mathematical.
What's being asked
Whether you can reduce a multivariate problem to one dimension via the discriminant, and compute an exact error.
Key idea
The log-odds is a normal random variable under each class with mean and variance , so the error is .
Steps
- With equal priors and a shared covariance, the Bayes rule is with . Define , so we choose class 1 when .
- Under class 1, is a linear function of a Gaussian, so it is normal with mean and variance .
- Under class 0, is normal with mean and the same variance .
- Error under class 1 is . By symmetry, the same under class 0. Averaging with equal priors, .
- Numbers: . , so and , .
- . If we wrongly used the identity covariance, we would get and . This is too optimistic because it ignores the positive correlation along the direction of the mean shift.
- Bhattacharyya bound: with for equal-covariance Gaussians. So . This is a valid but loose upper bound (true value ).
Common mistakes
- Using the Euclidean distance between the means instead of the Mahalanobis distance. The covariance matters.
- Forgetting to divide by 2: the error is , not , because the boundary is half-way between the means.
- Using the formula when priors are unequal. Then the threshold moves and the error is a sum of two different tails.
How long your answer should be
One page; 10 minutes.
Last checked on 4 December 2026.
Read this
Previous in Supervised learning: Under what conditions on does the k-NN classifier approach the Bayes error as ? Why does a fixed not suffice, and why is a sensible choice?
Next in Supervised learning: Derive why the directions that maximise the multi-class Fisher criterion are the leading eigenvectors of . Start with a single direction and maximise . How do you show that for two classes the result reduces to ?