Skip to content
latexci
PreviewDiffWord → LaTeXBibTeXSymbolsTableTemplatesAcademics
Sign inFree
PreviewDiffWord → LaTeXBibTeXSymbolsTableTemplatesAcademicsFree
Discord community ↗GitHub ↗
Sign in
LaTeX symbols›Statistics & Probability›Expected value E

Expected value E in LaTeX

The LaTeX command for probability E (𝔼) is \mathbb{E} (expected value).

E\mathbb{E}E
\mathbb{E}
Statistics & Probability · Unicode 𝔼 (U+1D53C) · needs amssymb

Writing a paper? The table generator and the BibTeX cleaner are one click away, no account.

Which command should you use?

CommandPackageUse it when
\mathbb{E}[X] recommendedamssymbBlackboard E, the most common style.
\operatorname{E}[X] amsmathUpright E, as in many statistics journals.
\mathbb{E}_{X \sim p}[f(X)] amssymbWith the distribution in the subscript.
\newcommand{\E}{\mathbb{E}} amssymb (preamble)In the preamble, then write \E[X].
Table 1. Ways to write probability E in LaTeX. Every line was compiled with pdfLaTeX (TeX Live 2026) loading only the package shown.
Common mistake. E[X] with a plain E is set in italics like a variable named E. \mathbb{E} also needs amssymb.

How to type Expected value E

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.

Example
$\mathbb{E}[X] = \sum_{x} x \, P(X = x)$E[X]=∑xx P(X=x)\mathbb{E}[X] = \sum_{x} x \, P(X = x)E[X]=x∑​xP(X=x)

Open this example in the live preview: it renders as you type, with no compiler and no signup.

Related Statistics & Probability symbols

ℙ\mathbb{P}Var\operatorname{Var}Cov\operatorname{Cov}Cor\operatorname{Cor}𝟙\mathds{1}𝒩\mathcal{N}⊥⊥\mathrel{\perp\!\!\!\perp}→d\xrightarrow{d}→p\xrightarrow{p}→a.s.\xrightarrow{a.s.}∼iid\overset{\text{iid}}{\sim}

Statistics and probability symbols in LaTeX: the full table or search all 350+ LaTeX symbols.

FAQ

How do you write probability E (𝔼) in LaTeX?

Use \mathbb{E} in math mode after adding \usepackage{amssymb} to your preamble. For example, $\mathbb{E}[X] = \sum_{x} x \, P(X = x)$.

Which package provides \mathbb{E}?

It comes from the amssymb package: add \usepackage{amssymb} to your preamble.

What is the most common mistake with probability E in LaTeX?

E[X] with a plain E is set in italics like a variable named E. \mathbb{E} also needs amssymb.

latexci

Free LaTeX tools for researchers and students, in any browser. No paid plan, no advertising.

Star on GitHubBuy me a coffee

Tools

Live PreviewBibTeX ToolsDOI → BibTeXarXiv → BibTeXPubMed → BibTeXISBN → BibTeXLaTeX DiffWord → LaTeXSymbol SearchTable GeneratorTemplatesCV Generator

Learn

Academics hubLife after OverleafFreeGitHub

Community

DiscordGitHub IssuesFeature Requests

© 2026 latexci. By Sitraka Forler, sitraka.lu

PrivacyTerms