What is the purpose of the log-sum-exp trick when recovering normalized posterior probabilities in Naive Bayes?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: medium
Interview Round: Other
Overview: Explain why Naive Bayes needs the log-sum-exp trick to turn log scores into normalized posterior probabilities. Tests your grasp of floating-point underflow and overflow, the stable normalization identity, and when posteriors are needed beyond a plain argmax.