Negative log-likelihood as a loss function: deriving MSE and cross-entropy from probabilistic assumptions
Role: Data Scientist
Category: Statistics & Math
Difficulty: medium
Interview Round: Other
Overview: Asks why negative log-likelihood works as a loss function and how mean squared error and cross-entropy follow from Gaussian and categorical or Bernoulli assumptions about the data. Tests maximum likelihood reasoning, the derivations behind common losses, and how to choose a loss for a given target.