cross-entropy equals negative log-likelihood for classification

Why does knowing the wrong probability help us measure information loss?

Image: Lars Christopher, CC BY-SA 2.0, via Wikimedia Commons

cross-entropy equals negative log-likelihood for classification

Why does knowing the wrong probability help us measure information loss?

Imagine you're guessing someone's birthday. If you're guessing randomly, you're not using any information. But if you guess based on what birthdays are most common, you're using some information. How do we measure how good your guessing is?

The cross-entropy concept measures how much worse your guessing is when you're wrong. It's like a score for how much information you lost by guessing incorrectly.

Example

If you guessed 365 people would have January 1st as their birthday, but only 1 person actually did, you're losing a lot of information.

Remember this

Cross-entropy equals negative log-likelihood because it quantifies the loss in information when our guesses (probabilities) don't match the true probabilities.

Related concepts

Swipe through 100 ML concepts daily

Open Pocket Polymath