The LaTeX command for iid is \overset{\text{iid}}{\sim} (independently and identically distributed).
\overset{\text{iid}}{\sim}Writing a paper? The table generator and the BibTeX cleaner are one click away, no account.
Write \overset{\text{iid}}{\sim} inside math mode, that is between $…$ for inline math or in a \[ … \] or equation block for display math. This symbol needs the amsmath package, so add \usepackage{amsmath} to your preamble.
Notation varies between fields: whichever form of \overset{\text{iid}}{\sim} you choose, define it once with \newcommand and reuse it.
Open this example in the live preview: it renders as you type, with no compiler and no signup.
\mathbb{E}\mathbb{P}\operatorname{Var}\operatorname{Cov}\operatorname{Cor}\mathds{1}\mathcal{N}\mathrel{\perp\!\!\!\perp}\xrightarrow{d}\xrightarrow{p}\xrightarrow{a.s.}Statistics and probability symbols in LaTeX: the full table or search all 350+ LaTeX symbols.
Use \overset{\text{iid}}{\sim} in math mode after adding \usepackage{amsmath} to your preamble. For example, $\overset{\text{iid}}{\sim}$.
It comes from the amsmath package: add \usepackage{amsmath} to your preamble.