Probability and statistics

ex=exp⁡(x)e^{x} = \exp(x) Exponential

The exponential function eˣ, with e ≈ 2.718. Always positive.

In ML papers

exp⁡(x)=ex\exp(x) = e^x, where e≈2.71828e \approx 2.71828. It turns any real number into a positive one and undoes log⁡\log. Softmax exponentiates logits, ezie^{z_i}, so every score becomes a positive weight; energy-based models and Boltzmann distributions write p(x)∝exp⁡(−E(x))p(x) \propto \exp(-E(x)). Papers switch to exp⁡(⋅)\exp(\cdot) when the exponent is too long for a superscript.

How to type it

LaTeXShows
\exp(x)exp⁡(x)\exp(x)
e^{x}exe^{x}

A worked example

e0=1,e1≈2.718,e−2≈0.135e^0 = 1, \quad e^1 \approx 2.718, \quad e^{-2} \approx 0.135

Large negative inputs give tiny positive outputs, never zero.

Equations that use it

Related

log⁡pθ(x)\log p_\theta(x)Logarithmsoftmax⁡(z)i=ezi∑jezj\operatorname{softmax}(\mathbf{z})_i = \frac{e^{z_i}}{\sum_j e^{z_j}}Softmaxx2,  βt,  WQx^2,\; \beta^t,\; W^QSuperscript (power or label)

Decode this example →