12 commands, each with the package it needs
Abstract
Expectation, variance, independence, distributions and modes of convergence, with the package each one needs. Table 1 lists every symbol of the category with its rendered glyph, the command to type and the package to load; each name links to a page with a worked example, and 4 of them to a note comparing the commands that compile.
| Glyph | Command | Package | Page |
|---|---|---|---|
\mathbb{E} | amssymb | Expected value E | |
\mathbb{P} | amssymb | Probability P | |
\operatorname{Var} | amsmath | Variance | |
\operatorname{Cov} | amsmath | Covariance Cov | |
\operatorname{Cor} | amsmath | Correlation Cor | |
\mathds{1} | dsfont | Indicator Function | |
\mathcal{N} | none | Normal Distribution | |
\mathrel{\perp\!\!\!\perp} | none | Independent | |
\xrightarrow{d} | amsmath | Convergence In Distribution | |
\xrightarrow{p} | amsmath | Converges In Probability | |
\xrightarrow{a.s.} | amsmath | Almost Surely | |
\overset{\text{iid}}{\sim} | amsmath | Iid |
Table 1. Statistics and probability symbols in LaTeX: glyph, command, package (none means built into LaTeX) and the page for each symbol. Commands go inside math mode unless the page says otherwise.
The same table exists for every family of symbols. To find one by name or by pasting the character, use the symbol search.