BUILT-IN WOLFRAM LANGUAGE SYMBOL

# Moment

Moment[list,r]
gives the r sample moment of the elements in list.

Moment[dist,r]
gives the r moment of the symbolic distribution dist.

Moment[,{r1,r2,}]
gives the {r1,r2,} multivariate moment.

Moment[r]
represents the r formal moment.

## DetailsDetails

• Moment is also known as a raw moment.
• Moment handles both numerical and symbolic data.
• For the list {x1,x2,,xn}, the r moment is given by .
• Moment[{{x1,y1,},,{xn,yn,}},{rx,ry,}] gives .
• Moment works with SparseArray objects.
• For a symbolic distribution dist, the r moment is given by Expectation[xr,xdist].
• For a multivariate symbolic distribution dist, the {r1,r2,} moment is given by Expectation[x1r1x2r2,{x1,x2,}dist].
• Moment[r] can be used in functions such as MomentConvert and MomentEvaluate, etc.

## ExamplesExamplesopen allclose all

### Basic Examples  (2)Basic Examples  (2)

Compute moments from data:

 In[1]:=
 Out[1]=

Use symbolic data:

 In[2]:=
 Out[2]=
 In[1]:=
 Out[1]=

Compute the second moment of a univariate distribution:

 In[1]:=
 Out[1]=

The moment for a multivariate distribution:

 In[2]:=
 Out[2]=