Is it possible for Stack Exchange to make available $\LaTeX$ abbreviations for \mathrm{E}, \mathrm{Var}, \mathrm{Cov} (possibly with new commands \E, \Var and \Cov)? The problem is that things like $\mathrm{Var}[X\mid Y]$ look much better than $Var[X\mid Y]$, but we end up losing a lot of time typing that.
|
|
||||
|
$\newcommand{\E}{\mathrm{E}}$ $\newcommand{\Var}{\mathrm{Var}}$ $\newcommand{\Cov}{\mathrm{Cov}}$ $\newcommand{\Expect}{{\rm I\kern-.3em E}}$ Here is cardinal's solution. At the beginning of your answer type.
After that, just use it. For example: $$ \Var[X] = \E[\Var[X\mid Y]] + \Var[[\E\mid X]] $$ $$ \Cov[X,Y] = \E[XY] - \E[X]\E[Y] $$ Stask suggested
$$\Expect[X]$$ which looks pretty. |
|||||||||||||||||||
|
\Varwould make life easier for us. I understand that it would not be universally used, since it is not plain $\LaTeX$. – Zen Oct 5 '12 at 18:13\newcommandat the beginning and then use the macro in the rest of the answer. That's often helpful, especially if you need to use it many times. – cardinal Oct 5 '12 at 18:46\newcommandin my answers?!?!?!?!? Whoooaaaa! Problem solved. I'll setup a txt with definitions I normally use. Thank you a lot, Prof.! – Zen Oct 5 '12 at 19:03\newcommand, since it seems that is the answer to this Q, can you make it official, perhaps w/ a brief tutorial re how it would work? – gung Oct 5 '12 at 20:18