Knowledge base dedicated to Linux and applied mathematics.

Home > Latex > FAQ > Latex - FAQ > Latex expected value symbol - expectation

Latex expected value symbol - expectation

All the versions of this article: <English> <français>

Expected value or expectation of a random variable $X$ is defined, if it exists, in a mathematically precise way with respect to a probability space, typically denoted as $(\Omega, \mathcal{A}, \mathbb{P})$, where $\Omega$ is the universe of possibilities, $\mathcal{A}$ the set of possible events (which are the possible values of the random variable $X$) and $\mathbb{P}$ a probability measure such that $\mathbb{P}(\Omega)=1$.

Latex expected value using mathbb function

To use the latex expected value using mathbb function, you must load amssymb package


Next, we use \mathbb function.

Here are five examples using LaTeX to write expected value of a random variable $X$ :

$$ \mathbb{E}[X] = \sum_{i=1}^{n} x_i \cdot p_i $$

$$ \mathbb{E}[X] = \frac{\displaystyle\sum_{i=1}^{n} x_i \cdot p_i}{\displaystyle\sum_{i=1}^{n} p_i} $$

$$ \mathbb{E}[X] = \int_{-\infty}^{\infty} xf(x) \, dx $$

$$ \mathbb{E}[X] = \frac{1}{n} \sum_{i=1}^{n} x_i $$

$$ \mathbb{E}[X] = \int_{-\infty}^{\infty} x \, dF(x) $$

$$ \mathbb{E}[X] = \sum_{i=1}^{n} x_i \cdot p_i $$

$$ \mathbb{E}[X] = \frac{\displaystyle\sum_{i=1}^{n} x_i \cdot p_i}{\displaystyle\sum_{i=1}^{n} p_i} $$

$$ \mathbb{E}[X] = \int_{-\infty}^{\infty} xf(x) \, dx $$

$$ \mathbb{E}[X] = \frac{1}{n} \sum_{i=1}^{n} x_i $$

$$ \mathbb{E}[X] = \int_{-\infty}^{\infty} x \, dF(x) $$

Also in this section

  1. How to write number sets N Z D Q R C with Latex: \mathbb, amsfonts and \mathbf
  2. How to write angle in latex langle, rangle, wedge, angle, measuredangle, sphericalangle
  3. Latex numbering equations: leqno et fleqn, left,right
  4. How to write a vector in Latex ? \vec,\overrightarrow
  5. Latex how to insert a blank or empty page with or without numbering \thispagestyle,\newpage,\usepackage{afterpage}
  6. Latex natural numbers
  7. Latex real numbers
  8. Latex binomial coefficient
  9. Latex overset and underset
  10. Latex absolute value
  11. Latex piecewise function
  12. Latex how to hide page number
  13. How to write algorithm and pseudocode in Latex ?\usepackage{algorithm},\usepackage{algorithmic}
  14. How to display formulas inside a box or frame in Latex ? \boxed
  15. Latex how to write underscore
  16. How to write table in Latex ? begin{tabular}...end{tabular}
  17. Latex norm for vector and sum
  18. Latex infinity symbol
  19. Latex how to write percent
  20. Latex how to write a fraction
  21. Latex how to write bar
  22. Latex how to write text in math mode
  23. Latex rational numbers
  24. Latex quaternion numbers
  25. Latex complex numbers
  26. Latex indicator function
  27. Latex plus or minus symbol
  28. Latex symbol for all x
  29. Latex symbol exists
  30. Latex symbol not exists
  31. Latex horizontal space: qquad,hspace, thinspace,enspace
  32. Latex square root symbol
  33. Latex degree symbol
  34. LateX Derivatives, Limits, Sums, Products and Integrals
  35. Latex copyright, trademark, registered symbols
  36. Latex euro symbol
  37. Horizontal and vertical curly Latex braces: \left\{,\right\},\underbrace{} and \overbrace{}
  38. How to get dots in Latex \ldots,\cdots,\vdots and \ddots
  39. Latex symbol if and only if / equivalence
  40. Latex empty set
  41. Latex normal distribution symbol
  42. Latex gradient symbol
  43. Latex jacobian symbol
  44. Latex arrows
  45. Latex convolution symbol
  46. Latex backslash symbol
  47. Latex tensor product
  48. Latex real part symbol
  49. Latex imaginary part symbol
  50. How to write matrices in Latex ? matrix, pmatrix, bmatrix, vmatrix, Vmatrix
  51. Latex symbol belongs to
  52. Latex symbol not in
  53. Latex symbol multiply
  54. Latex symbol different
  55. Latex symbol not equal
  56. Latex yen symbol
  57. Latex symbol there exists one and only one
  58. Latex Planck constant h
  59. Latex symbol average
  60. Latex symbol checkmark
  61. Latex bra ket notation
  62. Latex parallel symbol
  63. Latex not parallel symbol
  64. Latex expected value symbol - expectation