2

Is there an elegant way of writing "iidN()" in LaTex, other than just writing it "iidN()"?

That is, is there a macro for "iid" and/or for normal distribution "N" symbols?

  • 2
    Scrap that. I meant i.i.d. $X \sim \mathcal{N}(\mu,\sigma^2)$. – jub0bs May 9 '13 at 18:54
7

I'd recommend defining macros to reduce the number of keystrokes for i.i.d. and \mathcal N, if you use them a lot: this will.allow you to quickly type them out, and quickly change the way they're typeset if you decide to. For instance:

\newcommand\iid{i.i.d.}
\newcommand\pN{\mathcal{N}}

\iid~$X \sim \pN(\mu, \sigma^2)$

If you want to write i.i.d. without a nonbreaking space, I'd recommend \iid\ (note the space).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.