Skip to content

Glossary: Probability for ML

Logarithm (log)

Also written: log, natural logarithm, np.log

A function that turns products into sums: log(a × b) = log a + log b. Taking natural logs lets many small probabilities be added instead of multiplied, which avoids underflow.

Where the book teaches it

Related terms

Log-likelihoodUnderflowBits, nats