The LaTeX command for probability E (𝔼) is \mathbb{E} (expected value).
\mathbb{E}Writing a paper? The table generator and the BibTeX cleaner are one click away, no account.
| Command | Package | Use it when |
|---|---|---|
\mathbb{E}[X] recommended | amssymb | Blackboard E, the most common style. |
\operatorname{E}[X] | amsmath | Upright E, as in many statistics journals. |
\mathbb{E}_{X \sim p}[f(X)] | amssymb | With the distribution in the subscript. |
\newcommand{\E}{\mathbb{E}} | amssymb (preamble) | In the preamble, then write \E[X]. |
Write \mathbb{E} inside math mode, that is between $…$ for inline math or in a \[ … \] or equation block for display math. This symbol needs the amssymb package, so add \usepackage{amssymb} to your preamble.
$\mathbb{E}[X] = \sum_{x} x \, P(X = x)$Open this example in the live preview: it renders as you type, with no compiler and no signup.
\mathbb{P}\operatorname{Var}\operatorname{Cov}\operatorname{Cor}\mathds{1}\mathcal{N}\mathrel{\perp\!\!\!\perp}\xrightarrow{d}\xrightarrow{p}\xrightarrow{a.s.}\overset{\text{iid}}{\sim}Statistics and probability symbols in LaTeX: the full table or search all 350+ LaTeX symbols.
Use \mathbb{E} in math mode after adding \usepackage{amssymb} to your preamble. For example, $\mathbb{E}[X] = \sum_{x} x \, P(X = x)$.
It comes from the amssymb package: add \usepackage{amssymb} to your preamble.
E[X] with a plain E is set in italics like a variable named E. \mathbb{E} also needs amssymb.