Exponentials and Logarithms
Exponentials describe multiplicative growth and logarithms undo them. In statistics they are everywhere: log-likelihoods turn products into sums, and log scales tame skewed, multiplicative data.
Exponent rules
For any base :
Negative and fractional exponents extend this: and , so .
The natural base
The constant arises as a limit and as a series:
Logarithm identities
The natural log is the inverse of : and for . Its identities mirror the exponent rules:
Change of base: .
Worked example
Take , . Then , while — the product identity holds. And with , , already close to .
Computing it
R
# Verify the limit for e
n <- 1e6
(1 + 1/n)^n # ~2.718280
exp(1) # 2.718282
# log-of-product identity
all.equal(log(3 * 4), log(3) + log(4)) # TRUE
Python
import numpy as np
n = 10**6
print((1 + 1/n)**n) # ~2.7182804
print(np.e) # 2.718281828...
# log-of-product identity
print(np.isclose(np.log(3 * 4), np.log(3) + np.log(4))) # True
2.7182804690957534
2.718281828459045
True
Julia
n = 10^6
(1 + 1/n)^n # ~2.7182804
exp(1) # 2.718281828...
# log-of-product identity
isapprox(log(3 * 4), log(3) + log(4)) # true
Why it matters for statistics
Likelihoods are products that underflow to zero numerically; taking converts them to sums that are stable and easy to differentiate for maximum likelihood. Log scales also linearize exponential growth (epidemic curves) and symmetrize right-skewed data.