What is the log-sum-exp trick, and why is it needed when maximizing a log-likelihood numerically?
Role: Data Scientist
Category: Statistics & Math
Difficulty: medium
Interview Round: Other
Overview: Asks what the log-sum-exp trick computes and why numerical maximum likelihood needs it. Tests your understanding of floating-point overflow and underflow, where sums of exponentials appear in softmax, mixture and latent-variable likelihoods, and how a single bad value breaks an optimizer.