# Expected value

If the probability distribution of $$X$$ admits a probability density function $$f(x)$$, then the expected value can be computed as $\operatorname{E}[X] = \int_{-\infty}^\infty x f(x)\, \mathrm{d}x .$