Two classes have densities N(μ0,Σ) and N(μ1,Σ) with equal priors. Show that the Bayes error is Φ(−Δ/2), where Δ2=(μ1−μ0)⊤Σ−1(μ1−μ0) and Φ is the standard normal cdf. What is its value for μ0=(0,0), μ1=(2,2), Σ=(10.50.51), 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 w⊤x+b is a normal random variable under each class with mean ±Δ2/2 and variance Δ2, so the error is Φ(−Δ/2).

Steps

  1. With equal priors and a shared covariance, the Bayes rule is w⊤x>w⊤μ0+μ12 with w=Σ−1(μ1−μ0). Define z=w⊤(x−μ0+μ12), so we choose class 1 when z>0.
  2. Under class 1, z is a linear function of a Gaussian, so it is normal with mean w⊤μ1−μ02=Δ22 and variance w⊤Σw=(μ1−μ0)⊤Σ−1(μ1−μ0)=Δ2.
  3. Under class 0, z is normal with mean −Δ22 and the same variance Δ2.
  4. Error under class 1 is P(z<0)=Φ ⁣(0−Δ2/2Δ)=Φ(−Δ/2). By symmetry, the same under class 0. Averaging with equal priors, R∗=Φ(−Δ/2).
  5. Numbers: d=(2,2). Σ−1=(4/3−2/3−2/34/3), so Σ−1d=(4/3,4/3) and Δ2=83+83=163, Δ=2.309.
  6. R∗=Φ(−1.155)≈0.124. If we wrongly used the identity covariance, we would get Δ=8=2.83 and Φ(−1.414)≈0.079. This is too optimistic because it ignores the positive correlation along the direction of the mean shift.
  7. Bhattacharyya bound: R∗≤P0P1 e−k with k=Δ2/8=23 for equal-covariance Gaussians. So R∗≤0.5 e−2/3≈0.257. This is a valid but loose upper bound (true value 0.124).

Common mistakes

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 k=kn does the k-NN classifier approach the Bayes error as n→∞? Why does a fixed k not suffice, and why is k≈n a sensible choice?
Next in Supervised learning: Derive why the directions that maximise the multi-class Fisher criterion are the leading eigenvectors of SW−1SB. Start with a single direction w and maximise w⊤SBww⊤SWw. How do you show that for two classes the result reduces to w∝SW−1(m1−m0)?