ExpectedValue
✖
ExpectedValue
gives the expected value of the pure function f with respect to the values in list.
gives the expected value of the function f of x with respect to the values of list.
gives the expected value of the pure function f with respect to the symbolic distribution dist.
gives the expected value of the function f of x with respect to the symbolic distribution dist.
Details and Options

- For the list
, the expected value of f is given by
.
- For a continuous distribution dist, the expected value of f is given by
where
is the probability density function of dist and the integral is taken over the domain of dist.
- For a discrete distribution dist, the expected value of f is given by
where
is the probability mass function of dist and summation is over the domain of dist.
- The following option can be given:
-
Assumptions $Assumptions assumptions to make about parameters
Examples
open allclose allBasic Examples (3)Summary of the most common use cases
Scope (3)Survey of the scope of standard use cases
Compute the expected value of any function:

https://wolfram.com/xid/0rs07jqyi-cnnfq

Do the computation numerically:

https://wolfram.com/xid/0rs07jqyi-hbkpj4

Obtain expectations with conditions:

https://wolfram.com/xid/0rs07jqyi-cy28hz


https://wolfram.com/xid/0rs07jqyi-kb9rl2

Options (1)Common values & functionality for each option
Applications (2)Sample problems that can be solved with this function
Properties & Relations (7)Properties of the function, and connections to other functions
ExpectedValue of a function is the integral or sum of that function times the PDF:

https://wolfram.com/xid/0rs07jqyi-nfzfd


https://wolfram.com/xid/0rs07jqyi-lj99yt


https://wolfram.com/xid/0rs07jqyi-g90uia


https://wolfram.com/xid/0rs07jqyi-feeiza

ExpectedValue of for real t is the CharacteristicFunction:

https://wolfram.com/xid/0rs07jqyi-lzo4k4


https://wolfram.com/xid/0rs07jqyi-gfjvu

ExpectedValue of a constant is the constant:

https://wolfram.com/xid/0rs07jqyi-jvs9l8

ExpectedValue of a random variable is the Mean:

https://wolfram.com/xid/0rs07jqyi-gt0wra


https://wolfram.com/xid/0rs07jqyi-i9kg

ExpectedValue of the squared difference from the Mean is the Variance:

https://wolfram.com/xid/0rs07jqyi-feku3d


https://wolfram.com/xid/0rs07jqyi-hksozh

ExpectedValue for a list is a Mean:

https://wolfram.com/xid/0rs07jqyi-ba2oj3


https://wolfram.com/xid/0rs07jqyi-hemld8

CentralMoment is equivalent to an expected value:

https://wolfram.com/xid/0rs07jqyi-mmuq7i

https://wolfram.com/xid/0rs07jqyi-morekx

Wolfram Research (2007), ExpectedValue, Wolfram Language function, https://reference.wolfram.com/language/ref/ExpectedValue.html (updated 2008).
Text
Wolfram Research (2007), ExpectedValue, Wolfram Language function, https://reference.wolfram.com/language/ref/ExpectedValue.html (updated 2008).
Wolfram Research (2007), ExpectedValue, Wolfram Language function, https://reference.wolfram.com/language/ref/ExpectedValue.html (updated 2008).
CMS
Wolfram Language. 2007. "ExpectedValue." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2008. https://reference.wolfram.com/language/ref/ExpectedValue.html.
Wolfram Language. 2007. "ExpectedValue." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2008. https://reference.wolfram.com/language/ref/ExpectedValue.html.
APA
Wolfram Language. (2007). ExpectedValue. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ExpectedValue.html
Wolfram Language. (2007). ExpectedValue. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ExpectedValue.html
BibTeX
@misc{reference.wolfram_2025_expectedvalue, author="Wolfram Research", title="{ExpectedValue}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/ExpectedValue.html}", note=[Accessed: 29-March-2025
]}
BibLaTeX
@online{reference.wolfram_2025_expectedvalue, organization={Wolfram Research}, title={ExpectedValue}, year={2008}, url={https://reference.wolfram.com/language/ref/ExpectedValue.html}, note=[Accessed: 29-March-2025
]}