ML Notes Mathematics FundamentalsProbability

Entropy, Cross-Entropy, and KL Divergence

Math fundamentals note for ML preparation.

Contents

Core Idea

Key Formulas

H(P)=−∑xP(x)log⁡P(x)H(P)=-\sum_x P(x)\log P(x) DKL(P∥Q)=∑xP(x)log⁡P(x)Q(x)D_{KL}(P\|Q)=\sum_x P(x)\log\frac{P(x)}{Q(x)}

Why This Matters for ML

← Back to Blog