Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Data Manipulation > Statistics > Descriptive Statistics >
Mathematica > Mathematics and Algorithms > Statistics > Descriptive Statistics >

ExpectedValue

Updated In 7 Graphic
ExpectedValue[f, list]
gives the expected value of the pure function f with respect to the values in list.
ExpectedValue[f, list, x]
gives the expected value of the function f of x with respect to the values of list.
ExpectedValue[f, dist]
gives the expected value of the pure function f with respect to the symbolic distribution dist.
ExpectedValue[f, dist, x]
gives the expected value of the function f of x with respect to the symbolic distribution dist.
  • For the list {x_1,x_2,...,x_n}, the expected value of f is given by .
  • For a continuous distribution dist, the expected value of f is given by intf(x) p(x)dx where p(x) 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 sumf(x) p(x) where p(x) is the probability mass function of dist and summation is over the domain of dist.
  • The following option can be given:
Assumptions$Assumptionsassumptions to make about parameters
Find the expected value of x^4 in a Poisson distribution:
Use a pure function:
Expected value for a list:
Find the expected value of x^4 in a Poisson distribution:
In[1]:=
Click for copyable input
Out[1]=
 
Use a pure function:
In[1]:=
Click for copyable input
Out[1]=
 
Expected value for a list:
In[1]:=
Click for copyable input
Out[1]=
Compute the expected value of any function:
Do the computation numerically:
Obtain expectations with conditions:
Obtain results correct for given assumptions on symbols:
Obtain the raw moments of a distribution:
Construct a mixture density, here a Poisson-inverse Gaussian mixture:
ExpectedValue of a function is the integral or sum of that function times the PDF:
ExpectedValue of a constant is the constant:
ExpectedValue of a random variable is the Mean:
ExpectedValue of the squared difference from the Mean is the Variance:
ExpectedValue for a list is a Mean:
CentralMoment is equivalent to an expected value:
New in 6 | Last modified in 7
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team