In Gaussian discriminant analysis with (the same for both classes) and , show that , the logistic function of a linear function of . Give and . For , , , in one dimension, what is ?
Supervised learning, Gaussian discriminant analysis
Level L3 Intermediate. Length Medium. Nature Th+Mat Both.
What's being asked
Whether you can write the log-odds and see that the quadratic terms cancel.
Key idea
with , so the posterior is a sigmoid.
Steps
- Write the log-odds: .
- Insert the Gaussian densities. The normalising constants are equal (same ) and cancel, leaving .
- Expand. The terms cancel because is shared. What remains: .
- So log-odds with and .
- Since , we get , the logistic regression form.
- Numbers: , . At : , so . The boundary is at , the midpoint of the means.
Common mistakes
- Assuming this holds with different covariances. Then the terms do not cancel and the boundary is quadratic (QDA).
- Thinking the converse holds: a logistic posterior does not imply Gaussian class densities. Many families give the same form.
- Forgetting the prior term in .
How long your answer should be
Half a page; 5 minutes.
Last checked on 4 December 2026.
Read this
Previous in Supervised learning: For two classes, Fisher's criterion is , where are the class means and is the total within-class scatter matrix. Show that the maximiser is . How do you check it for and ?
Next in Supervised learning: In one dimension, class 1 has density and class 2 has density (variance 4), with equal priors. Where are the Bayes decision boundaries, and which class is chosen in each region? Why is the boundary not a single point?