[Tex/LaTex] How to write Mathematical expectation and Probability in the following form

math-modesymbols

What commands should I use to type the following operators
mathematical expectation and probability ?

Best Answer

This looks just like a sans serif font to me. So I would do the following.

% arara: pdflatex

\documentclass{article}
\newcommand*{\expect}{\mathsf{E}}
\newcommand*{\prob}{\mathsf{P}}

\begin{document}
\[\expect X = \int\displaylimits_{\Omega} X(\omega)\prob}(d\omega)\]
\end{document}

enter image description here

  • The \displaylimits is just used in order to get the first image of your referred homepage. I would leave it away.
  • I have not checked, if the new commands are defined by other packages. You could rename them, if you encounter any clash with these.
  • d\omega would look better as \mathrm{d}\omega in my eyes. Matter of taste.

enter image description here